collapse.js 767 B

123456789101112131415161718192021222324
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", {
  3. value: true
  4. });
  5. exports.default = void 0;
  6. const genCollapseMotion = token => ({
  7. [token.componentCls]: {
  8. // For common/openAnimation
  9. [`${token.antCls}-motion-collapse-legacy`]: {
  10. overflow: 'hidden',
  11. '&-active': {
  12. transition: `height ${token.motionDurationMid} ${token.motionEaseInOut},
  13. opacity ${token.motionDurationMid} ${token.motionEaseInOut} !important`
  14. }
  15. },
  16. [`${token.antCls}-motion-collapse`]: {
  17. overflow: 'hidden',
  18. transition: `height ${token.motionDurationMid} ${token.motionEaseInOut},
  19. opacity ${token.motionDurationMid} ${token.motionEaseInOut} !important`
  20. }
  21. }
  22. });
  23. var _default = exports.default = genCollapseMotion;