tdesign-react
Version:
TDesign Component for React
34 lines (29 loc) • 1.56 kB
JavaScript
/**
* tdesign v1.15.1
* (c) 2025 tdesign
* @license MIT
*/
;
Object.defineProperty(exports, '__esModule', { value: true });
var getTransitionParams = function getTransitionParams(_ref) {
var classPrefix = _ref.classPrefix,
expandAnimation = _ref.expandAnimation,
fadeAnimation = _ref.fadeAnimation;
if (!fadeAnimation) return {};
var popupAnimationClassPrefix = expandAnimation ? "".concat(classPrefix, "-popup--animation-expand") : "".concat(classPrefix, "-popup--animation");
return {
classNames: {
appear: "".concat(popupAnimationClassPrefix, "-enter ").concat(popupAnimationClassPrefix, "-enter-active"),
appearActive: "".concat(popupAnimationClassPrefix, "-enter-active"),
appearDone: "".concat(popupAnimationClassPrefix, "-enter-active ").concat(popupAnimationClassPrefix, "-enter-to"),
enter: "".concat(popupAnimationClassPrefix, "-enter ").concat(popupAnimationClassPrefix, "-enter-active"),
enterActive: "".concat(popupAnimationClassPrefix, "-enter-active"),
enterDone: "".concat(popupAnimationClassPrefix, "-enter-active ").concat(popupAnimationClassPrefix, "-enter-to"),
exit: "".concat(popupAnimationClassPrefix, "-leave ").concat(popupAnimationClassPrefix, "-leave-active"),
exitActive: "".concat(popupAnimationClassPrefix, "-leave-active"),
exitDone: "".concat(popupAnimationClassPrefix, "-leave-active ").concat(popupAnimationClassPrefix, "-leave-to")
}
};
};
exports.getTransitionParams = getTransitionParams;
//# sourceMappingURL=transition.js.map