File tree Expand file tree Collapse file tree
packages/designer/src/designer Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -36,6 +36,10 @@ class Clipboard implements IClipboard {
3636
3737 private waitFn ?: ( data : any , e : ClipboardEvent ) => void ;
3838
39+ constructor ( ) {
40+ this . injectCopyPaster ( document ) ;
41+ }
42+
3943 isCopyPasteEvent ( e : Event ) {
4044 this . isCopyPaster ( e . target ) ;
4145 }
Original file line number Diff line number Diff line change @@ -4,7 +4,6 @@ import BuiltinDragGhostComponent from './drag-ghost';
44import { Designer , DesignerProps } from './designer' ;
55import { ProjectView } from '../project' ;
66import './designer.less' ;
7- import { clipboard } from './clipboard' ;
87
98type IProps = DesignerProps & {
109 designer ?: Designer ;
@@ -44,7 +43,6 @@ export class DesignerView extends Component<IProps> {
4443 if ( onMount ) {
4544 onMount ( this . designer ) ;
4645 }
47- clipboard . injectCopyPaster ( document ) ;
4846 this . designer . postEvent ( 'mount' , this . designer ) ;
4947 }
5048
You can’t perform that action at this time.
0 commit comments