UNPKG

antd

Version:

An enterprise-class UI design language and React components implementation

23 lines (22 loc) • 544 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = void 0; const genCollapseMotion = token => { const { componentCls, antCls, motionDurationMid, motionEaseInOut } = token; return { [componentCls]: { [`${antCls}-motion-collapse`]: { overflow: 'hidden', transition: `${['height', 'opacity'].map(prop => `${prop} ${motionDurationMid} ${motionEaseInOut}`).join(', ')} !important` } } }; }; var _default = exports.default = genCollapseMotion;