From d61f4e1f600d3057ee9783abf880df5e34745b30 Mon Sep 17 00:00:00 2001 From: 07akioni <07akioni2@gmail.com> Date: Tue, 8 Dec 2020 00:06:44 +0800 Subject: [PATCH] docs(table): fix enUS controlled sorter demo --- .../components/data-table/enUS/controlled-sorter.demo.md | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/demo/documentation/components/data-table/enUS/controlled-sorter.demo.md b/demo/documentation/components/data-table/enUS/controlled-sorter.demo.md index 059f8d6d9..0258d378c 100644 --- a/demo/documentation/components/data-table/enUS/controlled-sorter.demo.md +++ b/demo/documentation/components/data-table/enUS/controlled-sorter.demo.md @@ -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) {