Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

table add sortway to support column sort with single or multiple way #778

Merged
merged 4 commits into from
Jan 24, 2021

Conversation

cqgis
Copy link
Contributor

@cqgis cqgis commented Nov 11, 2020

🤔 This is a ...

  • New feature
  • Bug fix
  • Site / documentation update
  • Demo update
  • Component style update
  • Bundle size optimization
  • Performance optimization
  • Refactoring
  • Code style optimization
  • Test Case
  • Branch merge
  • Other (about what?)

🔗 Related issue link

#682

💡 Background and solution

Table列排序目前使用的是追加的方式,这在处理复杂列表时非常有用。但此功能对一些用户来说逻辑上相对复杂。请在Table中加入一个属性,可以控制把排序变成“单选”模式,即:在点列头排序时,把之前的列排序清除。

📝 Changelog

Language Changelog
🇺🇸 English table column sort support single or multiple
🇨🇳 Chinese 表格增加 sortway属性,用于支持排序时,切换单选还是多选

☑️ Self Check before Merge

⚠️ Please check all items below before review. ⚠️

  • Doc is updated/provided or not needed
  • Demo is updated/provided or not needed
  • Changelog is provided or not needed

@codecov-io
Copy link

codecov-io commented Jan 23, 2021

Codecov Report

Merging #778 (7abe3ab) into master (ca7dac7) will decrease coverage by 0.00%.
The diff coverage is 0.00%.

Impacted file tree graph

@@            Coverage Diff            @@
##           master    #778      +/-   ##
=========================================
- Coverage    5.49%   5.48%   -0.01%     
=========================================
  Files         426     426              
  Lines       23110   23152      +42     
=========================================
  Hits         1270    1270              
- Misses      21840   21882      +42     
Impacted Files Coverage Δ
components/calendar/internal/CalendarHeader.razor 0.00% <ø> (ø)
components/core/SortDirection.cs 0.00% <0.00%> (ø)
components/table/Column.razor 0.00% <0.00%> (ø)
components/table/Column.razor.cs 0.00% <0.00%> (ø)
components/table/Internal/ColumnDataIndexHelper.cs 0.00% <0.00%> (ø)
components/table/Table.razor.cs 0.00% <0.00%> (ø)
components/table/TableModels/DataIndexSortModel.cs 0.00% <0.00%> (ø)
components/table/TableModels/SortModel.cs 0.00% <0.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update ca7dac7...7abe3ab. Read the comment docs.

@ElderJames ElderJames merged commit aef407b into ant-design-blazor:master Jan 24, 2021
@ElderJames ElderJames linked an issue Jan 24, 2021 that may be closed by this pull request
ElderJames added a commit that referenced this pull request Apr 23, 2022
* feat: table  column sort add sortway support singleness or mutiple

* fix: error method name

* add sort directions

* delete useless property

Co-authored-by: ElderJames <shunjiey@hotmail.com>
ElderJames added a commit that referenced this pull request Apr 30, 2022
* feat: table  column sort add sortway support singleness or mutiple

* fix: error method name

* add sort directions

* delete useless property

Co-authored-by: ElderJames <shunjiey@hotmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Table 列排序 增加"单选"模式
3 participants