[vue.js] v-data-table 정렬이 안되는 것 같을때 해결방법

cateto·2021년 3월 29일
0
post-thumbnail

내부적으로 sort에 ascending(오름차 순) / descending(내림차 순) / unsorted (미정렬) 상태가 존재 한다.

따라서, data table 컬럼에 sortable을 true로 한 컬럼은 세 가지 상태를 준수하게 된다.
=> 미정렬 상태로 인해 sort가 안되는 것 처럼 보이지만 제대로 작동하는 것
=> 이 부분이 거슬린다면 must-sort를 True로 변경하면 미정렬 상태는 없음

출처 : https://dojinchoi.blogspot.com/2019/04/vue-data-table.html

profile
Curious for Everything

0개의 댓글