2022-04-25 10:54:00 +08:00
|
|
|
import type { DropdownToken } from '.';
|
2022-06-27 14:25:59 +08:00
|
|
|
import type { GenerateStyle } from '../../theme';
|
2022-04-25 10:54:00 +08:00
|
|
|
|
|
|
|
const genStatusStyle: GenerateStyle<DropdownToken> = token => {
|
|
|
|
const { componentCls, menuCls, colorError, colorTextLightSolid } = token;
|
|
|
|
|
|
|
|
const itemCls = `${menuCls}-item`;
|
|
|
|
|
|
|
|
return {
|
|
|
|
[`${componentCls}, ${componentCls}-menu-submenu`]: {
|
|
|
|
[`${menuCls} ${itemCls}`]: {
|
|
|
|
[`&${itemCls}-danger`]: {
|
|
|
|
color: colorError,
|
|
|
|
|
|
|
|
'&:hover': {
|
|
|
|
color: colorTextLightSolid,
|
|
|
|
backgroundColor: colorError,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
export default genStatusStyle;
|