button.js 699 B

123456789101112131415161718192021222324252627282930
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", {
  3. value: true
  4. });
  5. exports.default = void 0;
  6. const genButtonStyle = token => {
  7. const {
  8. componentCls,
  9. antCls,
  10. paddingXS,
  11. opacityLoading
  12. } = token;
  13. return {
  14. [`${componentCls}-button`]: {
  15. whiteSpace: 'nowrap',
  16. [`&${antCls}-btn-group > ${antCls}-btn`]: {
  17. [`&-loading, &-loading + ${antCls}-btn`]: {
  18. cursor: 'default',
  19. pointerEvents: 'none',
  20. opacity: opacityLoading
  21. },
  22. [`&:last-child:not(:first-child):not(${antCls}-btn-icon-only)`]: {
  23. paddingInline: paddingXS
  24. }
  25. }
  26. }
  27. };
  28. };
  29. var _default = exports.default = genButtonStyle;