Commit b44acde9 by zhangdaiscott

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

parent db467f22
...@@ -53,6 +53,7 @@ export const JEditableTableMixin = { ...@@ -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 = { ...@@ -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') {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment