mirror of
https://github.com/tusen-ai/naive-ui.git
synced 2024-12-21 04:50:14 +08:00
docs(table): fix enUS controlled sorter demo
This commit is contained in:
parent
b313057b80
commit
d61f4e1f60
@ -92,13 +92,14 @@ export default {
|
||||
},
|
||||
methods: {
|
||||
sortName (order) {
|
||||
nameColumn.sortOrder = order
|
||||
this.nameColumn.sortOrder = order
|
||||
},
|
||||
clearSorter () {
|
||||
nameColumn.sortOrder = false
|
||||
this.nameColumn.sortOrder = false
|
||||
this.ageColumn.sortOrder = false
|
||||
},
|
||||
handleSorterChange (sorter) {
|
||||
columns.forEach(column => {
|
||||
this.columns.forEach(column => {
|
||||
/** column.sortOrder !== undefined means it is uncontrolled */
|
||||
if (column.sortOrder === undefined) return
|
||||
if (!sorter) {
|
||||
|
Loading…
Reference in New Issue
Block a user