motionUtil.js 330 B

12345678910111213141516
  1. export function getMotion(_ref) {
  2. var prefixCls = _ref.prefixCls,
  3. animation = _ref.animation,
  4. transitionName = _ref.transitionName;
  5. if (animation) {
  6. return {
  7. name: "".concat(prefixCls, "-").concat(animation)
  8. };
  9. }
  10. if (transitionName) {
  11. return {
  12. name: transitionName
  13. };
  14. }
  15. return {};
  16. }