mirror of
https://gitee.com/baidu/amis.git
synced 2024-11-30 02:58:05 +08:00
Merge pull request #1241 from 2betop/1224
Table列的 filter 功能如果没有选中的值,不要显示 重置按钮
This commit is contained in:
commit
130bb09dd1
@ -345,7 +345,7 @@ export default class VirtualList extends React.PureComponent<Props, State> {
|
||||
|
||||
if (typeof start !== 'undefined' && typeof stop !== 'undefined') {
|
||||
for (let index = start; index <= stop; index++) {
|
||||
if (stickyIndices != null && stickyIndices.includes(index)) {
|
||||
if (stickyIndices != null && ~stickyIndices.indexOf(index)) {
|
||||
continue;
|
||||
}
|
||||
|
||||
|
@ -246,12 +246,14 @@ export class HeadCellFilterDropDown extends React.Component<
|
||||
</Checkbox>
|
||||
</li>
|
||||
))}
|
||||
<li
|
||||
key="DropDown-menu-reset"
|
||||
onClick={this.handleReset.bind(this)}
|
||||
>
|
||||
{__('重置')}
|
||||
</li>
|
||||
{filterOptions.some((item: any) => item.selected) ? (
|
||||
<li
|
||||
key="DropDown-menu-reset"
|
||||
onClick={this.handleReset.bind(this)}
|
||||
>
|
||||
{__('重置')}
|
||||
</li>
|
||||
) : null}
|
||||
</ul>
|
||||
) : null}
|
||||
</PopOver>
|
||||
|
Loading…
Reference in New Issue
Block a user