UNPKG

tdesign-vue-next

Version:
110 lines (106 loc) 3.8 kB
/** * tdesign v1.20.3 * (c) 2026 tdesign * @license MIT */ import { computed } from 'vue'; import { u as usePrefixClass } from '../../_chunks/dep-5975d369.mjs'; import { COMPONENT_NAME } from '../constants/index.mjs'; import 'lodash-es'; import '../../_chunks/dep-adf8ce39.mjs'; import '../../_chunks/dep-390963eb.mjs'; import '../../_chunks/dep-d84a2ec7.mjs'; import '../../_chunks/dep-12b4e978.mjs'; import '../../_chunks/dep-0841ee8f.mjs'; import '../../config-provider/hooks/useConfig.mjs'; import '../../config-provider/utils/context.mjs'; import '../../_chunks/dep-cf105282.mjs'; import '../../_chunks/dep-dcbc09c5.mjs'; import '../../_chunks/dep-9fc6972b.mjs'; import '../../_chunks/dep-ff183185.mjs'; import '../../_chunks/dep-a1cbfaae.mjs'; import '../../_chunks/dep-3f53eff0.mjs'; import '../../_chunks/dep-4c65e11b.mjs'; import '../../_chunks/dep-46776e3b.mjs'; import '../../_chunks/dep-07d8f2aa.mjs'; import '../../_chunks/dep-8aebe545.mjs'; function useCalendarClass(props, state) { var prefixClass = usePrefixClass(COMPONENT_NAME); var body = computed(function () { return ["".concat(prefixClass.value), "".concat(prefixClass.value, "--").concat(props.theme)]; }); var panel = computed(function () { return ["".concat(prefixClass.value, "__panel"), "".concat(prefixClass.value, "__panel--").concat(state.curSelectedMode)]; }); var control = computed(function () { return ["".concat(prefixClass.value, "__control")]; }); var title = computed(function () { return ["".concat(prefixClass.value, "__title")]; }); var controlSection = computed(function () { return ["".concat(prefixClass.value, "__control-section")]; }); var controlSectionCell = computed(function () { return ["".concat(prefixClass.value, "__control-section-cell")]; }); var controlTag = computed(function () { return ["".concat(prefixClass.value, "__control-tag")]; }); var table = computed(function () { return ["".concat(prefixClass.value, "__table")]; }); var tableHead = computed(function () { return ["".concat(prefixClass.value, "__table-head")]; }); var tableHeadRow = computed(function () { return ["".concat(prefixClass.value, "__table-head-row")]; }); var tableHeadCell = computed(function () { return ["".concat(prefixClass.value, "__table-head-cell")]; }); var tableBody = computed(function () { return ["".concat(prefixClass.value, "__table-body")]; }); var tableBodyRow = computed(function () { return ["".concat(prefixClass.value, "__table-body-row")]; }); return { body: body, panel: panel, control: control, title: title, controlSection: controlSection, controlSectionCell: controlSectionCell, controlTag: controlTag, table: table, tableHead: tableHead, tableHeadRow: tableHeadRow, tableHeadCell: tableHeadCell, tableBody: tableBody, tableBodyRow: tableBodyRow }; } function useCalendarCellClass() { var prefixClass = usePrefixClass(COMPONENT_NAME); var tableBodyCell = computed(function () { return ["".concat(prefixClass.value, "__table-body-cell")]; }); var tableBodyCell4Now = computed(function () { return "".concat(prefixClass.value, "__table-body-cell--now"); }); var tableBodyCellDisplay = computed(function () { return ["".concat(prefixClass.value, "__table-body-cell-display")]; }); var tableBodyCellCsontent = computed(function () { return ["".concat(prefixClass.value, "__table-body-cell-content")]; }); return { tableBodyCell: tableBodyCell, tableBodyCell4Now: tableBodyCell4Now, tableBodyCellDisplay: tableBodyCellDisplay, tableBodyCellCsontent: tableBodyCellCsontent }; } export { useCalendarCellClass, useCalendarClass }; //# sourceMappingURL=useCalendarClass.mjs.map