docs(table): fix enUS controlled sorter demo

This commit is contained in:
07akioni 2020-12-08 00:06:44 +08:00
parent b313057b80
commit d61f4e1f60

View File

@ -92,13 +92,14 @@ export default {
}, },
methods: { methods: {
sortName (order) { sortName (order) {
nameColumn.sortOrder = order this.nameColumn.sortOrder = order
}, },
clearSorter () { clearSorter () {
nameColumn.sortOrder = false this.nameColumn.sortOrder = false
this.ageColumn.sortOrder = false
}, },
handleSorterChange (sorter) { handleSorterChange (sorter) {
columns.forEach(column => { this.columns.forEach(column => {
/** column.sortOrder !== undefined means it is uncontrolled */ /** column.sortOrder !== undefined means it is uncontrolled */
if (column.sortOrder === undefined) return if (column.sortOrder === undefined) return
if (!sorter) { if (!sorter) {