偏右
5 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with
3 additions and
2 deletions
-
components/table/filterDropdown.tsx
-
components/table/interface.tsx
-
components/table/style/index.less
|
|
@ -206,7 +206,7 @@ class FilterMenu<T> extends React.Component<FilterMenuProps<T>, FilterMenuState< |
|
|
|
} |
|
|
|
|
|
|
|
const dropdownIconClass = classNames({ |
|
|
|
[`${prefixCls}-selected`]: filtered, |
|
|
|
[`${prefixCls}-selected`]: 'filtered' in column ? column.filtered : filtered, |
|
|
|
[`${prefixCls}-open`]: this.getDropdownVisible(), |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
@ -56,6 +56,7 @@ export interface ColumnProps<T> { |
|
|
|
fixed?: boolean | typeof ColumnFixedPlacements[number]; |
|
|
|
filterIcon?: React.ReactNode | ((filtered: boolean) => React.ReactNode); |
|
|
|
filteredValue?: any[] | null; |
|
|
|
filtered?: boolean; |
|
|
|
defaultFilteredValue?: any[]; |
|
|
|
sortOrder?: SortOrder | boolean; |
|
|
|
children?: ColumnProps<T>[]; |
|
|
|
|
|
@ -75,7 +75,7 @@ |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
.@{table-prefix-cls}-filter-selected.@{iconfont-css-prefix}-filter { |
|
|
|
.@{table-prefix-cls}-filter-selected.@{iconfont-css-prefix} { |
|
|
|
color: @primary-color; |
|
|
|
} |
|
|
|
|
|
|
|