ant-design-vue
ant-design-vue copied to clipboard
[Bug Report] `defaultSortOrder` does not take effect in parent table head
trafficstars
- [x] I have searched the issues of this repository and believe that this is not a duplicate.
Version
3.3.0-beta.2
Environment
Reproduction link
https://github.com/vueComponent/ant-design-vue/blob/fa53e89e5104f2e5caebc0af5cf0d3d9330301d2/components/table/hooks/useSorter.tsx#L77-L106
Steps to reproduce
Set defaultSortOrder to a column with children.
What is expected?
The defaultSortOrder should also be handled in the if ((column as ColumnGroupType<RecordType>).children) branch
What is actually happening?
The defaultSortOrder is only handled in the else if (column.sorter) branch