表格列的filter功能,选中才显示重置按钮

This commit is contained in:
2betop 2020-12-24 11:19:00 +08:00
parent 216feb4b43
commit 13d3fe97a3

View File

@ -246,12 +246,14 @@ export class HeadCellFilterDropDown extends React.Component<
</Checkbox>
</li>
))}
{filterOptions.some((item: any) => item.selected) ? (
<li
key="DropDown-menu-reset"
onClick={this.handleReset.bind(this)}
>
{__('重置')}
</li>
) : null}
</ul>
) : null}
</PopOver>