【更新】修复slot为空数据表格报错
This commit is contained in:
parent
2b852ab3db
commit
bc13879099
@ -127,7 +127,6 @@ export default {
|
|||||||
return range[0] + '-' + range[1] + '共' + total + '条'
|
return range[0] + '-' + range[1] + '共' + total + '条'
|
||||||
}
|
}
|
||||||
}) || false
|
}) || false
|
||||||
// console.log('this.localPagination', this.localPagination)
|
|
||||||
this.needTotalList = this.initTotalList(this.columns)
|
this.needTotalList = this.initTotalList(this.columns)
|
||||||
this.loadData()
|
this.loadData()
|
||||||
this.columnsSetting = this.columns
|
this.columnsSetting = this.columns
|
||||||
@ -293,7 +292,6 @@ export default {
|
|||||||
) */
|
) */
|
||||||
},
|
},
|
||||||
columnChange(val) {
|
columnChange(val) {
|
||||||
console.log(val)
|
|
||||||
this.columnsSetting = val
|
this.columnsSetting = val
|
||||||
},
|
},
|
||||||
renderHeader () {
|
renderHeader () {
|
||||||
@ -356,7 +354,7 @@ export default {
|
|||||||
return (
|
return (
|
||||||
<div class="s-table-tool">
|
<div class="s-table-tool">
|
||||||
<div class="s-table-tool-left">
|
<div class="s-table-tool-left">
|
||||||
{this.$scopedSlots.operator()}
|
{this.$scopedSlots.operator && this.$scopedSlots.operator()}
|
||||||
</div>
|
</div>
|
||||||
<div class="s-table-tool-right">
|
<div class="s-table-tool-right">
|
||||||
{
|
{
|
||||||
@ -407,7 +405,6 @@ export default {
|
|||||||
if (k === 'rowSelection') {
|
if (k === 'rowSelection') {
|
||||||
if (showAlert && this.rowSelection) {
|
if (showAlert && this.rowSelection) {
|
||||||
// 如果需要使用alert,则重新绑定 rowSelection 事件
|
// 如果需要使用alert,则重新绑定 rowSelection 事件
|
||||||
// console.log('this.rowSelection', this.rowSelection)
|
|
||||||
props[k] = {
|
props[k] = {
|
||||||
...this.rowSelection,
|
...this.rowSelection,
|
||||||
selectedRows: this.selectedRows,
|
selectedRows: this.selectedRows,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user