status.js 657 B

1234567891011121314151617181920212223242526272829
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", {
  3. value: true
  4. });
  5. exports.default = void 0;
  6. const genStatusStyle = token => {
  7. const {
  8. componentCls,
  9. menuCls,
  10. colorError,
  11. colorTextLightSolid
  12. } = token;
  13. const itemCls = `${menuCls}-item`;
  14. return {
  15. [`${componentCls}, ${componentCls}-menu-submenu`]: {
  16. [`${menuCls} ${itemCls}`]: {
  17. [`&${itemCls}-danger:not(${itemCls}-disabled)`]: {
  18. color: colorError,
  19. '&:hover': {
  20. color: colorTextLightSolid,
  21. backgroundColor: colorError
  22. }
  23. }
  24. }
  25. }
  26. };
  27. };
  28. var _default = exports.default = genStatusStyle;