diff --git a/mockServer/assets/json/bundle.json b/mockServer/assets/json/bundle.json index 95c91c0da..6dc3f724a 100644 --- a/mockServer/assets/json/bundle.json +++ b/mockServer/assets/json/bundle.json @@ -4318,7 +4318,7 @@ "defaultValue": "" } }, - "onBeforeMount": "console.log('table on load'); this.options = source.data" + "onBeforeMount": "this.options = source.data" }, "configure": { "loop": true, @@ -5832,6 +5832,7 @@ "required": true, "readOnly": false, "disabled": false, + "onChange": "function(val) { this.setPropertyProps('modelValue', { 'options': val }) }", "defaultValue": "", "cols": 12, "bindState": false, @@ -5842,7 +5843,7 @@ "description": { "zh_CN": "tabs" }, - "labelPosition": "none" + "labelPosition": "top" }, { "property": "modelValue", @@ -5856,13 +5857,25 @@ "disabled": false, "cols": 12, "widget": { - "component": "MetaInput", - "props": {} + "component": "MetaSelect", + "props": { + "clearable": false, + "options": [ + { + "label": "标签页1", + "value": "first" + }, + { + "label": "标签页2", + "value": "second" + } + ] + } }, "description": { "zh_CN": "绑定值,选中选项卡的 name" }, - "labelPosition": "left" + "labelPosition": "top" }, { "property": "with-add", @@ -7536,7 +7549,7 @@ "contentMenu": { "actions": ["create symbol"] }, - "onBeforeMount": "console.log('table on load'); this.pager = source.pager; this.fetchData = source.fetchData; this.data = source.data ;this.columns = source.columns" + "onBeforeMount": "this.pager = source.pager; this.fetchData = source.fetchData; this.data = source.data ;this.columns = source.columns" }, "configure": { "loop": true, @@ -9819,7 +9832,17 @@ "schema": { "componentName": "TinyTabs", "props": { - "modelValue": "first" + "modelValue": "first", + "tabs": [ + { + "label": "标签页1", + "value": "first" + }, + { + "label": "标签页2", + "value": "second" + } + ] }, "children": [ { diff --git a/packages/common/component/ConfigItem.vue b/packages/common/component/ConfigItem.vue index c0fd195e7..07776bf33 100644 --- a/packages/common/component/ConfigItem.vue +++ b/packages/common/component/ConfigItem.vue @@ -364,7 +364,7 @@ export default { const executeRelationAction = (value, preValue) => { const { onChange, rules } = props.property - const { setProp, delProp } = useProperties() + const { setProp, delProp, setPropertyProps } = useProperties() // 关联 if (onChange && propsObj) { @@ -374,6 +374,7 @@ export default { config: { ...widget.value?.props }, + setPropertyProps, setProp: setProp, delProp }) diff --git a/packages/common/component/MetaContainer.vue b/packages/common/component/MetaContainer.vue index be0e300b4..32ffc13a2 100644 --- a/packages/common/component/MetaContainer.vue +++ b/packages/common/component/MetaContainer.vue @@ -4,7 +4,7 @@ @@ -20,7 +20,7 @@ diff --git a/packages/common/component/MetaSelect.vue b/packages/common/component/MetaSelect.vue index d9a59b8f9..9de76d55d 100644 --- a/packages/common/component/MetaSelect.vue +++ b/packages/common/component/MetaSelect.vue @@ -4,7 +4,7 @@ :multiple="multi" :is-drop-inherit-width="true" :show-alloption="false" - :clearable="true" + :clearable="clearable" @change="handleChange" >