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 @@