|
@@ -21,11 +21,12 @@ export const View = defineComponent({
|
|
compId: string().isRequired,
|
|
compId: string().isRequired,
|
|
editlayer: bool().def(true),
|
|
editlayer: bool().def(true),
|
|
showMask: bool().def(false),
|
|
showMask: bool().def(false),
|
|
|
|
+ meta: bool().def(true),
|
|
},
|
|
},
|
|
emits: ["dblclick", "click"],
|
|
emits: ["dblclick", "click"],
|
|
setup(props, { slots, emit, attrs }) {
|
|
setup(props, { slots, emit, attrs }) {
|
|
const { store, actions, helper, controls } = useEditor();
|
|
const { store, actions, helper, controls } = useEditor();
|
|
- const compRef = useCompRef(props.compId);
|
|
|
|
|
|
+ const compRef = useCompRef(props.compId, props.meta);
|
|
const editorLayerRef = props.editlayer
|
|
const editorLayerRef = props.editlayer
|
|
? useCompEditLayerRef(props.compId)
|
|
? useCompEditLayerRef(props.compId)
|
|
: ref();
|
|
: ref();
|