motionUtil.js 379 B

123456789101112131415161718192021222324
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", {
  3. value: true
  4. });
  5. exports.getMotion = getMotion;
  6. function getMotion(_ref) {
  7. let {
  8. prefixCls,
  9. animation,
  10. transitionName
  11. } = _ref;
  12. if (animation) {
  13. return {
  14. name: `${prefixCls}-${animation}`
  15. };
  16. }
  17. if (transitionName) {
  18. return {
  19. name: transitionName
  20. };
  21. }
  22. return {};
  23. }