修复Windows下的样式错误
This commit is contained in:
maplemei
2019-09-23 10:13:26 +08:00
parent 5b84e95638
commit 342217669b
5 changed files with 21 additions and 22 deletions

View File

@@ -181,11 +181,13 @@ class General extends Component{
arr = arr.map(item => {
const selected = !!sels.find(sel => sel[value] == item[value])
const iconStyle = {
color: selected ? theme.color : '',
const iconStyle = selected ? {
color: theme.color,
border: 'none',
fontSize: '18px'
} : {
borderColor: theme.color,
}
// const className = 'xm-option' + (item.disabled ? ' disabled' : '');
};
const className = ['xm-option', (item[disabled] ? ' disabled' : ''), (selected ? ' selected' : '')].join(' ');
return (