diff --git a/src/resources/plugins/TsSheet/TsSheet.vue b/src/resources/plugins/TsSheet/TsSheet.vue index 0935d65686ea805b6c20fa34a963a1162abae9fe..4068f56712f32215fa42cdf2f0ba7021cf9cee67 100644 --- a/src/resources/plugins/TsSheet/TsSheet.vue +++ b/src/resources/plugins/TsSheet/TsSheet.vue @@ -316,6 +316,7 @@ :formExtendData="formExtendData" :isClearSpecifiedAttr="isClearSpecifiedAttr" :externalData="externalData" + :extendConfigList="extendConfigList" :rowUuid="rowUuid" class="padding-xs" @changeConfig="addHistory()" @@ -517,7 +518,12 @@ export default { type: Object, default: () => {} }, - rowUuid: String //表单子组件行uuid + rowUuid: String, //表单子组件行uuid + defaultExtendConfigList: { + // 扩展配置列表 + type: Array, + default: () => [] + } }, data() { return { @@ -561,7 +567,8 @@ export default { currentEventItem: null, //当前单元格获取的新组件 actionType: '', //当前操作类型,'add'新增组件,'copy'复制组件 windowKeypressHandler: null, // 用于存储事件处理函数的引用 - formStyleData: {} //表单样式设置 + formStyleData: {}, //表单样式设置 + extendConfigList: this.defaultExtendConfigList || [] //扩展配置列表 }; }, beforeCreate() { @@ -702,6 +709,9 @@ export default { //初始化表格 initSheet() { this.hideComponentList = this.value?.hideComponentList || []; + if (this.value && this.value.formCustomExtendConfig && !this.$utils.isEmpty(this.value.formCustomExtendConfig.extendConfigList)) { + this.extendConfigList = this.value.formCustomExtendConfig.extendConfigList; + } if (this.value && this.value.lefterList && this.value.headerList && this.value.tableList) { /** * 编辑模式下,直接将外部数据赋值给config,这样在外部对数据做了修改,也能触发表格控件发生变化。 diff --git a/src/resources/plugins/TsSheet/form-edit.vue b/src/resources/plugins/TsSheet/form-edit.vue index 1947328399070d8707dc6a5a98f54d06716df2e5..c1df61859ade569de6286614ad00175210916281 100644 --- a/src/resources/plugins/TsSheet/form-edit.vue +++ b/src/resources/plugins/TsSheet/form-edit.vue @@ -148,10 +148,15 @@
- +
- +