UNPKG

tdesign-vue-next

Version:
64 lines (58 loc) 2.46 kB
/** * tdesign v1.11.5 * (c) 2025 tdesign * @license MIT */ 'use strict'; Object.defineProperty(exports, '__esModule', { value: true }); require('vue'); var configProvider_hooks_useConfig = require('../config-provider/hooks/useConfig.js'); var configProvider_utils_context = require('../_chunks/dep-b4c4a54b.js'); require('../_chunks/dep-61a7e281.js'); require('../_chunks/dep-b6c192db.js'); require('../_chunks/dep-ba2090c8.js'); require('../_chunks/dep-b27d3215.js'); require('../_chunks/dep-ed572eb3.js'); require('../_chunks/dep-047617bf.js'); require('../_chunks/dep-bbe343d7.js'); require('@babel/runtime/helpers/typeof'); require('../_chunks/dep-0a510359.js'); require('../_chunks/dep-50a41d31.js'); require('../_chunks/dep-be3c3d53.js'); require('../_chunks/dep-0c2ad01b.js'); require('../_chunks/dep-5ad8a2ab.js'); require('../_chunks/dep-8b98fa07.js'); require('../_chunks/dep-b0b4fff1.js'); require('../_chunks/dep-7a21da5b.js'); require('../_chunks/dep-49fa220e.js'); require('../_chunks/dep-02ebb419.js'); require('../_chunks/dep-ecbaedee.js'); require('../_chunks/dep-9de7d250.js'); require('../_chunks/dep-6f8a66a3.js'); require('../_chunks/dep-b8b9c2a3.js'); require('../_chunks/dep-f8ff548f.js'); require('../_chunks/dep-30fb1b25.js'); require('dayjs'); require('../_chunks/dep-feae46a3.js'); require('../_chunks/dep-abf21389.js'); require('../_chunks/dep-7f32423d.js'); require('../_chunks/dep-7c9e3d93.js'); var expand = configProvider_utils_context.EAnimationType.expand, ripple = configProvider_utils_context.EAnimationType.ripple, fade = configProvider_utils_context.EAnimationType.fade; function useKeepAnimation() { var _useConfig = configProvider_hooks_useConfig.useConfig("animation"), globalConfig = _useConfig.globalConfig; var keepAnimation = function keepAnimation(type) { var _animationConfig$excl, _animationConfig$incl; var animationConfig = globalConfig.value; return animationConfig && !((_animationConfig$excl = animationConfig.exclude) !== null && _animationConfig$excl !== void 0 && _animationConfig$excl.includes(type)) && ((_animationConfig$incl = animationConfig.include) === null || _animationConfig$incl === void 0 ? void 0 : _animationConfig$incl.includes(type)); }; return { keepExpand: keepAnimation(expand), keepRipple: keepAnimation(ripple), keepFade: keepAnimation(fade) }; } exports["default"] = useKeepAnimation; //# sourceMappingURL=useKeepAnimation.js.map