UNPKG

tdesign-mobile-vue

Version:
59 lines (55 loc) 2.21 kB
/** * tdesign v1.9.3 * (c) 2025 TDesign Group * @license MIT */ import { computed } from 'vue'; import { useConfig } from '../config-provider/useConfig.js'; import '@babel/runtime/helpers/defineProperty'; import 'lodash-es'; import '../config-provider/context.js'; import '../_common/js/global-config/mobile/default-config.js'; import '../_common/js/global-config/mobile/locale/zh_CN.js'; import '../_chunks/dep-f785f3d3.js'; import '@babel/runtime/helpers/typeof'; import '../_chunks/dep-0d44b254.js'; import 'dayjs'; function useCommonClassName() { var _useConfig = useConfig("classPrefix"), classPrefix = _useConfig.classPrefix; return { classPrefix: classPrefix, SIZE: computed(function () { return { small: "".concat(classPrefix.value, "-size-s"), medium: "".concat(classPrefix.value, "-size-m"), large: "".concat(classPrefix.value, "-size-l"), default: "", xs: "".concat(classPrefix.value, "-size-xs"), xl: "".concat(classPrefix.value, "-size-xl"), block: "".concat(classPrefix.value, "-size-full-width") }; }), STATUS: computed(function () { return { loading: "".concat(classPrefix.value, "-is-loading"), loadMore: "".concat(classPrefix.value, "-is-load-more"), disabled: "".concat(classPrefix.value, "-is-disabled"), focused: "".concat(classPrefix.value, "-is-focused"), success: "".concat(classPrefix.value, "-is-success"), error: "".concat(classPrefix.value, "-is-error"), warning: "".concat(classPrefix.value, "-is-warning"), selected: "".concat(classPrefix.value, "-is-selected"), active: "".concat(classPrefix.value, "-is-active"), checked: "".concat(classPrefix.value, "-is-checked"), current: "".concat(classPrefix.value, "-is-current"), hidden: "".concat(classPrefix.value, "-is-hidden"), visible: "".concat(classPrefix.value, "-is-visible"), expanded: "".concat(classPrefix.value, "-is-expanded"), indeterminate: "".concat(classPrefix.value, "-is-indeterminate") }; }) }; } export { useCommonClassName }; //# sourceMappingURL=useCommonClassName.js.map