From 6fc227cffc1963e450f4d56fd31ab7d85fd42dde Mon Sep 17 00:00:00 2001 From: vdpAdmin Date: Wed, 16 Mar 2022 17:59:12 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0formId=E5=B1=9E=E6=80=A7?= =?UTF-8?q?=E4=BB=A5=E9=98=B2=E6=AD=A2=E4=BD=BF=E7=94=A8=E5=A4=9A=E4=B8=AA?= =?UTF-8?q?v-form-render=E7=BB=84=E4=BB=B6=E6=97=B6=E5=87=BA=E7=8E=B0?= =?UTF-8?q?=E5=86=B2=E7=AA=81=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 +- .../form-designer/toolbar-panel/index.vue | 5 +++++ .../container-item/containerItemMixin.js | 6 ++++++ src/components/form-render/index.vue | 17 +++++++++++----- src/extension/extension-loader.js | 6 +++++- src/utils/util.js | 20 +++++++++++++------ 7 files changed, 49 insertions(+), 13 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 856e0d6..fc0f2b1 100644 --- a/src/components/form-designer/form-widget/container-widget/containerMixin.js +++ b/src/components/form-designer/form-widget/container-widget/containerMixin.js @@ -82,5 +82,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 a9c150e..6602024 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 @@