Skip to content

Commit

Permalink
tabCol only for talbe.
Browse files Browse the repository at this point in the history
  • Loading branch information
aborn committed Nov 10, 2024
1 parent 1ff2ec8 commit 1571b51
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions src/components/VFG/form/utils/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -163,12 +163,14 @@ export const eleRenderSetFormat = function (conf: any) {
eles.push(opt)
}

const tabCol = eleRenderFormat(helper.input_table('列配置', conf.props.header), '__table__')
if (tabCol && tabCol.formItem) {
eles.push({ tag: "el-divider", slots: { default: "表格列配置" } });
tabCol.formItem.label = undefined
tabCol.formItem.labelWidth = '1'
eles.push(tabCol)
if (conf.tag === 'vfg-table' || conf.tag === 'el-table') {
const tabCol = eleRenderFormat(helper.input_table('列配置', conf.props.header), '__table__')
if (tabCol && tabCol.formItem) {
eles.push({ tag: "el-divider", slots: { default: "表格列配置" } });
tabCol.formItem.label = undefined
tabCol.formItem.labelWidth = '1'
eles.push(tabCol)
}
}
console.log(eles)
return eles;
Expand Down

0 comments on commit 1571b51

Please sign in to comment.