29 lines
657 B
JavaScript
29 lines
657 B
JavaScript
"use strict";
|
|
|
|
Object.defineProperty(exports, "__esModule", {
|
|
value: true
|
|
});
|
|
exports.default = void 0;
|
|
const genStatusStyle = token => {
|
|
const {
|
|
componentCls,
|
|
menuCls,
|
|
colorError,
|
|
colorTextLightSolid
|
|
} = token;
|
|
const itemCls = `${menuCls}-item`;
|
|
return {
|
|
[`${componentCls}, ${componentCls}-menu-submenu`]: {
|
|
[`${menuCls} ${itemCls}`]: {
|
|
[`&${itemCls}-danger:not(${itemCls}-disabled)`]: {
|
|
color: colorError,
|
|
'&:hover': {
|
|
color: colorTextLightSolid,
|
|
backgroundColor: colorError
|
|
}
|
|
}
|
|
}
|
|
}
|
|
};
|
|
};
|
|
var _default = exports.default = genStatusStyle; |