Merge pull request #1141 from nwind/fix-headcell

fix: Dark 模式下 header 的展现
This commit is contained in:
liaoxuezhi 2020-12-07 17:04:26 +08:00 committed by GitHub
commit 8b3c3e936f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -227,7 +227,7 @@ export class HeadCellFilterDropDown extends React.Component<
? filterOptions.map((option: any, index) => ( ? filterOptions.map((option: any, index) => (
<li <li
key={index} key={index}
className={cx('DropDown-divider', { className={cx({
'is-selected': option.selected 'is-selected': option.selected
})} })}
onClick={this.handleClick.bind(this, option.value)} onClick={this.handleClick.bind(this, option.value)}
@ -236,7 +236,7 @@ export class HeadCellFilterDropDown extends React.Component<
</li> </li>
)) ))
: filterOptions.map((option: any, index) => ( : filterOptions.map((option: any, index) => (
<li key={index} className={cx('DropDown-divider')}> <li key={index}>
<Checkbox <Checkbox
classPrefix={ns} classPrefix={ns}
onChange={this.handleCheck.bind(this, option.value)} onChange={this.handleCheck.bind(this, option.value)}
@ -248,7 +248,6 @@ export class HeadCellFilterDropDown extends React.Component<
))} ))}
<li <li
key="DropDown-menu-reset" key="DropDown-menu-reset"
className={cx('DropDown-divider')}
onClick={this.handleReset.bind(this)} onClick={this.handleReset.bind(this)}
> >
{__('重置')} {__('重置')}