Open zongwong opened 5 years ago
描述 Describe <elx-editable ref="elxEditable" class="manual-table3" border :data.sync="list" :edit-rules="validRules" :edit-config="{trigger: 'manual', mode: 'row', autoClearActive: false}" style="width: 100%" show-summary :span-method="SpanMethod"
合并函数 let prevRow = this.list[rowIndex - 1]; let nextRow = this.list[rowIndex + 1]; const count = this.list.filter(x => x.code === row.code).length; console.log(column) if (column.property === "code") { if (prevRow && prevRow.code === row.code) { return { rowspan: 0, colspan: 0 }; } if (nextRow && nextRow.code === row.code) { return { rowspan: count, colspan: 1 }; } } 合并之后,点编辑行报错 Uncaught (in promise) TypeError: Cannot read property 'data' of undefined at VueComponent._isDisabledEdit (index.common.js:7531) at index.common.js:7554 at new Promise () at new F (index.common.js:2707) at VueComponent._triggerActive (index.common.js:7553) at VueComponent._toValidError (index.common.js:7840) at index.common.js:7783 请提供能重现问题的链接(jsfiddle、jsrun) Expected behavior
请填写以下版本信息 please complete the following information vue: ? element-ui: ? vue-element-extends: ?
手动模式列合并似乎不能setActiveRow,只有合并的第一行可以,试了click模式确实是这样,合并项在手动模式非第一行会报错
列编辑,数组对象嵌套对象报错咋整啊?
描述 Describe <elx-editable ref="elxEditable" class="manual-table3" border :data.sync="list" :edit-rules="validRules" :edit-config="{trigger: 'manual', mode: 'row', autoClearActive: false}" style="width: 100%" show-summary :span-method="SpanMethod"
请填写以下版本信息 please complete the following information vue: ? element-ui: ? vue-element-extends: ?