From c78e2e555201789537bf176a349bbb34f8c0ca8f Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期二, 27 十二月 2022 13:58:00 +0800 Subject: [PATCH] 2022-12-27 --- src/menu/components/table/base-table/index.jsx | 33 +++++++++++++++++++++++++++++++++ 1 files changed, 33 insertions(+), 0 deletions(-) diff --git a/src/menu/components/table/base-table/index.jsx b/src/menu/components/table/base-table/index.jsx index 5b982cd..a1d88d9 100644 --- a/src/menu/components/table/base-table/index.jsx +++ b/src/menu/components/table/base-table/index.jsx @@ -99,6 +99,39 @@ MKEmitter.removeListener('completeSave', this.completeSave) } + // updateFix = (card) => { + // let fixs = {} + + // card.cols.forEach(col => { + // if (!col.field) return + // if (col.postfix || col.prefix) { + // fixs[col.field] = col + // } + // }) + + // card.cols.forEach(col => { + // if (col.type === 'custom') { + // col.elements.forEach(cell => { + // if (cell.datatype === 'dynamic') { + // cell.height = '' + // cell.innerHeight = 'auto' + + // if (fixs[cell.field]) { + // if (!cell.prefix && fixs[cell.field].prefix) { + // cell.prefix = fixs[cell.field].prefix + // } + // if (!cell.postfix && fixs[cell.field].postfix) { + // cell.postfix = fixs[cell.field].postfix + // } + // } + // } + // }) + // } + // }) + + // return card + // } + completeSave = () => { const { card } = this.state -- Gitblit v1.8.0