【issues/2939】JEditable 下子表 addBefore()方法,在其中自定义调用其他方法不生效

pull/3100/head
zhangdaiscott 2021-08-31 22:28:04 +08:00
parent db467f22a7
commit b44acde9b5
2 changed files with 2 additions and 0 deletions

View File

@ -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') {

View File

@ -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') {