From b44acde9b55cdab4c610dd29801ad4f0771cd054 Mon Sep 17 00:00:00 2001 From: zhangdaiscott Date: Tue, 31 Aug 2021 22:28:04 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90issues/2939=E3=80=91JEditable=20?= =?UTF-8?q?=E4=B8=8B=E5=AD=90=E8=A1=A8=20addBefore()=E6=96=B9=E6=B3=95?= =?UTF-8?q?=EF=BC=8C=E5=9C=A8=E5=85=B6=E4=B8=AD=E8=87=AA=E5=AE=9A=E4=B9=89?= =?UTF-8?q?=E8=B0=83=E7=94=A8=E5=85=B6=E4=BB=96=E6=96=B9=E6=B3=95=E4=B8=8D?= =?UTF-8?q?=E7=94=9F=E6=95=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ant-design-vue-jeecg/src/mixins/JEditableTableMixin.js | 1 + ant-design-vue-jeecg/src/mixins/JEditableTableModelMixin.js | 1 + 2 files changed, 2 insertions(+) diff --git a/ant-design-vue-jeecg/src/mixins/JEditableTableMixin.js b/ant-design-vue-jeecg/src/mixins/JEditableTableMixin.js index d6138905..fa178278 100644 --- a/ant-design-vue-jeecg/src/mixins/JEditableTableMixin.js +++ b/ant-design-vue-jeecg/src/mixins/JEditableTableMixin.js @@ -53,6 +53,7 @@ export const JEditableTableMixin = { this.tableReset(); resolve(); }).then(() => { + if (typeof this.addBefore === 'function') this.addBefore() // 默认新增空数据 let rowNum = this.addDefaultRowNum if (typeof rowNum !== 'number') { diff --git a/ant-design-vue-jeecg/src/mixins/JEditableTableModelMixin.js b/ant-design-vue-jeecg/src/mixins/JEditableTableModelMixin.js index 293f9c7e..2bad82d3 100644 --- a/ant-design-vue-jeecg/src/mixins/JEditableTableModelMixin.js +++ b/ant-design-vue-jeecg/src/mixins/JEditableTableModelMixin.js @@ -51,6 +51,7 @@ export const JEditableTableModelMixin = { this.tableReset(); resolve(); }).then(() => { + if (typeof this.addBefore === 'function') this.addBefore() // 默认新增空数据 let rowNum = this.addDefaultRowNum if (typeof rowNum !== 'number') {