ether-admin/node_modules/ant-design-vue/lib/vc-trigger/utils/motionUtil.js

24 lines
379 B
JavaScript

"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.getMotion = getMotion;
function getMotion(_ref) {
let {
prefixCls,
animation,
transitionName
} = _ref;
if (animation) {
return {
name: `${prefixCls}-${animation}`
};
}
if (transitionName) {
return {
name: transitionName
};
}
return {};
}