fixed(advance-table): currentSortColumn.type misspelling

This commit is contained in:
JiwenBai 2019-10-11 11:42:08 +08:00
parent 62373a1344
commit 84cde6a7ad

View File

@ -31,7 +31,10 @@
<slot name="table-operation-search-right" /> <slot name="table-operation-search-right" />
</div> </div>
</div> </div>
<div ref="tbodyWrapper" class="n-advance-table__tbody"> <div
ref="tbodyWrapper"
class="n-advance-table__tbody"
>
<n-table <n-table
ref="header" ref="header"
style="padding:0;border-bottom-left-radius:0;border-bottom-right-radius:0;" style="padding:0;border-bottom-left-radius:0;border-bottom-right-radius:0;"
@ -713,7 +716,7 @@ export default {
if (!this.currentSortColumn) { if (!this.currentSortColumn) {
return null return null
} }
const isCustom = (this.currentSortColumn.sortable === 'custom' && this.currentFilterColumn.type !== null) const isCustom = (this.currentSortColumn.sortable === 'custom' && this.currentSortColumn.type !== null)
return isCustom ? this.currentSortColumn : null return isCustom ? this.currentSortColumn : null
}, },
useRemoteChange () { useRemoteChange () {