motionUtil.js 434 B

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