From 4de0acf2a232ae29f2b5bd7bb2ee61a238c5d2d0 Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期二, 24 十月 2023 17:31:55 +0800 Subject: [PATCH] 2023-10-24 --- src/tabviews/custom/components/table/edit-table/index.jsx | 4 ++++ src/menu/components/table/edit-table/options.jsx | 3 ++- src/tabviews/custom/components/table/edit-table/normalTable/index.jsx | 4 ++++ 3 files changed, 10 insertions(+), 1 deletions(-) diff --git a/src/menu/components/table/edit-table/options.jsx b/src/menu/components/table/edit-table/options.jsx index 18fc7a4..cfaf7a2 100644 --- a/src/menu/components/table/edit-table/options.jsx +++ b/src/menu/components/table/edit-table/options.jsx @@ -105,12 +105,13 @@ field: 'commit', label: '鏁版嵁鎻愪氦', initval: wrap.commit || 'all', - tooltip: '鍗曢」鎻愪氦鎸囧湪琛ㄥ崟涓洖杞︽垨鍒犻櫎琛屾椂锛岃缃负鍗曢」鏃跺鐐瑰嚮鎻愪氦鎸夐挳锛屼細鎻愪氦淇敼椤广��', + tooltip: '鍗曢」鎻愪氦鎸囧湪琛ㄥ崟涓洖杞︽垨鍒犻櫎琛屾椂锛岃缃负鍗曢」鏃跺鐐瑰嚮鎻愪氦鎸夐挳锛屼細鎻愪氦淇敼椤广�傚け鍘荤劍鐐规彁浜ゆ椂浼氶獙璇佹暟鎹槸鍚︿慨鏀癸紝鏈慨鏀圭殑鏁版嵁涓嶄細鎻愪氦銆�', required: false, options: [ {value: 'all', label: '鍏ㄩ儴'}, {value: 'change', label: '淇敼椤�'}, {value: 'simple', label: '鍗曢」'}, + {value: 'blur', label: '澶卞幓鐒︾偣'}, ], controlFields: [ {field: 'standard', values: ['change', 'simple']}, diff --git a/src/tabviews/custom/components/table/edit-table/index.jsx b/src/tabviews/custom/components/table/edit-table/index.jsx index 3922902..9d5d2cb 100644 --- a/src/tabviews/custom/components/table/edit-table/index.jsx +++ b/src/tabviews/custom/components/table/edit-table/index.jsx @@ -86,6 +86,10 @@ item.tableId = setting.tableId + if (setting.commit === 'blur') { + item.blur = true + } + if (item.type === 'colspan') { item.subcols = getColumns(item.subcols) diff --git a/src/tabviews/custom/components/table/edit-table/normalTable/index.jsx b/src/tabviews/custom/components/table/edit-table/normalTable/index.jsx index 710d647..15760a7 100644 --- a/src/tabviews/custom/components/table/edit-table/normalTable/index.jsx +++ b/src/tabviews/custom/components/table/edit-table/normalTable/index.jsx @@ -747,6 +747,10 @@ if (value !== record[col.field]) { MKEmitter.emit('changeRecord', col.tableId, {...record, [col.field]: val}) } + + // if (col.blur) { + // MKEmitter.emit('subLine', col, record) + // } } onSwitchChange = (val, label) => { -- Gitblit v1.8.0