From 60f06997d89fe09a2bdc7be0c9e9162d0fb469c8 Mon Sep 17 00:00:00 2001 From: xuliangzhan Date: Tue, 20 Apr 2021 20:39:50 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E9=9D=9E=E7=A9=BA=E6=A0=A1?= =?UTF-8?q?=E9=AA=8C=E9=94=99=E8=AF=AF=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- examples/api/table.js | 17 +++++++--- examples/views/input/Input.vue | 4 +-- examples/views/modal/Modal.vue | 12 +++---- examples/views/table/advanced/Event.vue | 8 ++--- package.json | 2 +- packages/header/src/header.js | 2 +- packages/table/src/body.js | 2 +- packages/table/src/methods.js | 4 +-- packages/validator/src/mixin.js | 45 ++++++++++++++++++------- styles/input.scss | 6 ++-- styles/modal.scss | 12 +++---- 11 files changed, 70 insertions(+), 44 deletions(-) diff --git a/examples/api/table.js b/examples/api/table.js index c1633a1c4..6055bae25 100644 --- a/examples/api/table.js +++ b/examples/api/table.js @@ -2083,7 +2083,7 @@ const apis = [ }, { name: 'extendSetMethod', - desc: '只对 extendByCopy 启用后有效,重写单元格扩展区域赋值的方法', + desc: '只对 extendByCopy | extendByCalc 启用后有效,重写单元格扩展区域赋值的方法', version: 'pro', type: '({ cellValue, row, column, rows, cols, targetValues, targetRows, targetCols, extendRows, extendCols, direction }) => void', enum: '', @@ -2092,12 +2092,21 @@ const apis = [ }, { name: 'beforeExtendSetMethod', - desc: '只对 extendByCopy 启用后有效,自定义单元格扩展区域赋值之前的方法,可以通过返回 false 阻止扩展行为', + desc: '只对 extendByCopy | extendByCalc 启用后有效,自定义单元格扩展区域赋值之前的方法,可以通过返回 false 阻止扩展区域赋值行为', version: 'pro', type: '({ rows, cols, targetValues, targetRows, targetCols, extendRows, extendCols, direction }) => boolean', enum: '', defVal: '', list: [] + }, + { + name: 'afterExtendSetMethod', + desc: '只对 extendByCopy | extendByCalc 启用后有效,自定义单元格扩展区域赋值之后的方法', + version: 'pro', + type: '(params: { rows, cols, targetValues, targetRows, targetCols, extendValues, extendRows, extendCols, direction }) => void', + enum: '', + defVal: '', + list: [] } ] }, @@ -3160,7 +3169,7 @@ const apis = [ version: 'pro', type: '', enum: '', - defVal: '{ row, rowIndex, $rowIndex, column, columnIndex, $columnIndex, cell, $event}', + defVal: '{ row, rowIndex, $rowIndex, column, columnIndex, $columnIndex, cell, targetRows, targetCols, $event}', list: [] }, { @@ -3169,7 +3178,7 @@ const apis = [ version: 'pro', type: '', enum: '', - defVal: '{ rows, cols, $event}', + defVal: '{ rows, cols, targetRows, targetCols, returnValue, $event}', list: [] } ] diff --git a/examples/views/input/Input.vue b/examples/views/input/Input.vue index e1c128016..29d3d75ac 100644 --- a/examples/views/input/Input.vue +++ b/examples/views/input/Input.vue @@ -32,7 +32,7 @@ - + @@ -229,7 +229,7 @@ export default { - + diff --git a/examples/views/modal/Modal.vue b/examples/views/modal/Modal.vue index 8fec34360..a3253efd2 100644 --- a/examples/views/modal/Modal.vue +++ b/examples/views/modal/Modal.vue @@ -94,8 +94,8 @@