From d40b6e8d2da156c068bc0c62c2a540dcf289f61a Mon Sep 17 00:00:00 2001 From: vdpAdmin Date: Wed, 16 Mar 2022 17:52:22 +0800 Subject: [PATCH] =?UTF-8?q?1.=20=E5=A2=9E=E5=8A=A0formId=E5=B1=9E=E6=80=A7?= =?UTF-8?q?=E4=BB=A5=E9=98=B2=E6=AD=A2=E5=8C=85=E5=90=AB=E4=BD=BF=E7=94=A8?= =?UTF-8?q?=E5=A4=9A=E4=B8=AAv-form-render=E7=BB=84=E4=BB=B6=E6=97=B6?= =?UTF-8?q?=E5=86=B2=E7=AA=81=EF=BC=9B=202.=20=E4=BF=AE=E5=A4=8Dname?= =?UTF-8?q?=E5=B1=9E=E6=80=A7=E7=BC=96=E8=BE=91=E7=9A=84=E5=BF=85=E5=A1=AB?= =?UTF-8?q?=E6=A0=A1=E9=AA=8C=E9=94=99=E8=AF=AF=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../container-widget/containerMixin.js | 6 ++ .../property-editor/name-editor.vue | 2 +- .../container-item/containerItemMixin.js | 13 ++++ .../container-item/sub-form-item.vue | 4 ++ src/components/form-render/index.vue | 66 +++++++++++++++++-- src/utils/util.js | 20 ++++-- 6 files changed, 99 insertions(+), 12 deletions(-) diff --git a/src/components/form-designer/form-widget/container-widget/containerMixin.js b/src/components/form-designer/form-widget/container-widget/containerMixin.js index c3224a0..4f9d272 100644 --- a/src/components/form-designer/form-widget/container-widget/containerMixin.js +++ b/src/components/form-designer/form-widget/container-widget/containerMixin.js @@ -90,5 +90,11 @@ export default { } }, + setWidgetOption(optionName, optionValue) { //通用组件选项修改API + if (this.widget.options.hasOwnProperty(optionName)) { + this.widget.options[optionName] = optionValue + } + }, + } } diff --git a/src/components/form-designer/setting-panel/property-editor/name-editor.vue b/src/components/form-designer/setting-panel/property-editor/name-editor.vue index e7dbddb..25fe965 100644 --- a/src/components/form-designer/setting-panel/property-editor/name-editor.vue +++ b/src/components/form-designer/setting-panel/property-editor/name-editor.vue @@ -1,5 +1,5 @@