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
feat(table): add filterOnClose
prop for Column
#47451
feat(table): add filterOnClose
prop for Column
#47451
Conversation
Run & review this pull request in StackBlitz Codeflow. |
👁 Visual Regression Report for PR #47451 Passed ✅
🎊 Congrats! No visual-regression diff found. |
This pull request is automatically built and testable in CodeSandbox. To see build info of the built libraries, click here or the icon next to each commit SHA. |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## feature #47451 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 732 734 +2
Lines 12548 12596 +48
Branches 3291 3300 +9
=========================================
+ Hits 12548 12596 +48 ☔ View full report in Codecov by Sentry. |
@@ -192,6 +192,7 @@ One of the Table `columns` prop for describing the table's columns, Column has t | |||
| filtered | Whether the `dataSource` is filtered | boolean | false | | | |||
| filteredValue | Controlled filtered value, filter icon will highlight | string\[] | - | | | |||
| filterIcon | Customized filter icon | ReactNode \| (filtered: boolean) => ReactNode | - | | | |||
| filterOnClose | Whether to trigger filter when the filter menu closes | boolean | true | | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
版本号没写
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
阿巴阿巴🤦♀️
@@ -193,6 +193,7 @@ const columns = [ | |||
| filtered | 标识数据是否经过过滤,筛选图标会高亮 | boolean | false | | | |||
| filteredValue | 筛选的受控属性,外界可用此控制列的筛选状态,值为已筛选的 value 数组 | string\[] | - | | | |||
| filterIcon | 自定义 filter 图标。 | ReactNode \| (filtered: boolean) => ReactNode | false | | | |||
| filterOnClose | 是否在筛选菜单关闭时触发筛选 | boolean | true | | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
同上
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
* feat(table): add `filterOnClose` prop for `Column` * docs(table): add `filterOnClose` into `Column`'s API
[中文版模板 / Chinese template]
🤔 This is a ...
🔗 Related issue link
close #43908
💡 Background and solution
📝 Changelog
☑️ Self-Check before Merge