|
|
@ -97,6 +97,11 @@ Component> { |
|
|
return this.opts.config.frameView; |
|
|
return this.opts.config.frameView; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
get createDoc() { |
|
|
|
|
|
const doc = this.frameView?.getDoc() || document; |
|
|
|
|
|
return this.opts.config?.useFrameDoc ? doc : document; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
__isDraggable() { |
|
|
__isDraggable() { |
|
|
const { model, config } = this; |
|
|
const { model, config } = this; |
|
|
const { draggable } = model.attributes; |
|
|
const { draggable } = model.attributes; |
|
|
@ -516,6 +521,10 @@ Component> { |
|
|
this.$el.data({ model, collection, view }); |
|
|
this.$el.data({ model, collection, view }); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
_createElement(tagName: string): Node { |
|
|
|
|
|
return this.createDoc.createElement(tagName); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
/** |
|
|
/** |
|
|
* Render children components |
|
|
* Render children components |
|
|
* @private |
|
|
* @private |
|
|
|