Skip to content

Commit

Permalink
fix: sort and filter compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
tinymins committed May 31, 2024
1 parent 4c6f5ad commit e817b00
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions docs/demo-data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,7 @@ export const initSchema: DripTableSchema<CustomColumnSchema, SubtableDataSourceK
{ text: '已售罄', value: 'soldOut' },
],
defaultFilteredValue: ['onSale', 'soldOut'],
sorter: 'return props.leftValue == props.rightValue ? 0 : props.leftValue > props.rightValue ? 1 : -1',
component: 'text',
options: {
mode: 'single',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
&-toolbox {
flex: 0 0 auto;
user-select: none;
display: inline-flex;

&-icon {
position: relative;
Expand Down

0 comments on commit e817b00

Please sign in to comment.