From cfa31e1083c3882f76965fdaa74440431938efa3 Mon Sep 17 00:00:00 2001 From: vdpAdmin Date: Tue, 12 Apr 2022 19:30:11 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A1=A5=E5=85=85=E4=B8=8A=E4=BC=A0=E4=BF=AE?= =?UTF-8?q?=E6=94=B9=E7=9A=84card-widget.vue=E6=96=87=E4=BB=B6=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/extension/samples/card/card-widget.vue | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/extension/samples/card/card-widget.vue b/src/extension/samples/card/card-widget.vue index d4caae7..f090af5 100644 --- a/src/extension/samples/card/card-widget.vue +++ b/src/extension/samples/card/card-widget.vue @@ -37,11 +37,13 @@ import Draggable from 'vuedraggable' import ContainerWrapper from "@/components/form-designer/form-widget/container-widget/container-wrapper" import FieldComponents from '@/components/form-designer/form-widget/field-widget/index' + import refMixinDesign from "@/components/form-designer/refMixinDesign" export default { name: "card-widget", componentName: 'ContainerWidget', - mixins: [i18n, containerMixin], + mixins: [i18n, containerMixin, refMixinDesign], + inject: ['refList'], components: { Draggable, ContainerWrapper, @@ -64,6 +66,9 @@ }, }, + created() { + this.initRefList() + }, methods: { /** * 检查接收哪些组件拖放,如不接受某些组件拖放,则根据组件类型判断后返回false