UNPKG

xdesign-vue-next

Version:

XDesign Component for vue-next

44 lines (38 loc) 1.63 kB
/** * xdesign v1.0.6 * (c) 2023 xdesign * @license MIT */ 'use strict'; Object.defineProperty(exports, '__esModule', { value: true }); require('vue'); var configProvider_useConfig = require('../config-provider/useConfig.js'); var configProvider_context = require('../config-provider/context.js'); require('lodash/isFunction'); require('lodash/cloneDeep'); require('lodash/isString'); require('lodash/mergeWith'); require('lodash/merge'); require('../_common/js/global-config/default-config.js'); require('../_common/js/global-config/locale/en_US.js'); require('../_chunks/dep-8d10b59f.js'); require('lodash/isArray'); var expand = configProvider_context.EAnimationType.expand, ripple = configProvider_context.EAnimationType.ripple, fade = configProvider_context.EAnimationType.fade; function useKeepAnimation() { var _useConfig = configProvider_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