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

dev
zhangdaiscott 4 years ago
parent db467f22a7
commit b44acde9b5

@ -53,6 +53,7 @@ export const JEditableTableMixin = {
this.tableReset(); this.tableReset();
resolve(); resolve();
}).then(() => { }).then(() => {
if (typeof this.addBefore === 'function') this.addBefore()
// 默认新增空数据 // 默认新增空数据
let rowNum = this.addDefaultRowNum let rowNum = this.addDefaultRowNum
if (typeof rowNum !== 'number') { if (typeof rowNum !== 'number') {

@ -51,6 +51,7 @@ export const JEditableTableModelMixin = {
this.tableReset(); this.tableReset();
resolve(); resolve();
}).then(() => { }).then(() => {
if (typeof this.addBefore === 'function') this.addBefore()
// 默认新增空数据 // 默认新增空数据
let rowNum = this.addDefaultRowNum let rowNum = this.addDefaultRowNum
if (typeof rowNum !== 'number') { if (typeof rowNum !== 'number') {

Loading…
Cancel
Save