element-easy
Version:
crud for element ui
32 lines (31 loc) • 737 B
JavaScript
export default {
methods: {
clearSelection () {
this.$refs.table.clearSelection()
},
toggleRowSelection (row, selected) {
this.$refs.table.toggleRowSelection(row, selected)
},
toggleAllSelection () {
this.$refs.table.toggleAllSelection()
},
toggleRowExpansion (row, expanded) {
this.$refs.table.toggleRowExpansion(row, expanded)
},
setCurrentRow (row) {
this.$refs.table.setCurrentRow(row)
},
clearSort () {
this.$refs.table.clearSort()
},
clearFilter () {
this.$refs.table.clearFilter()
},
doLayout () {
this.$refs.table.doLayout()
},
sort () {
this.$refs.table.sort()
}
}
}