tdesign-vue-next
Version:
TDesign Component for vue-next
110 lines (106 loc) • 3.8 kB
JavaScript
/**
* tdesign v1.20.5
* (c) 2026 tdesign
* @license MIT
*/
import { computed } from 'vue';
import { u as usePrefixClass } from '../../_chunks/dep-84e0bbb7.mjs';
import { COMPONENT_NAME } from '../constants/index.mjs';
import 'lodash-es';
import '../../_chunks/dep-60644c95.mjs';
import '../../_chunks/dep-f14f9069.mjs';
import '../../_chunks/dep-e66c752e.mjs';
import '../../_chunks/dep-6713c79b.mjs';
import '../../_chunks/dep-7a893b4c.mjs';
import '../../config-provider/hooks/useConfig.mjs';
import '../../config-provider/utils/context.mjs';
import '../../_chunks/dep-a9e2592c.mjs';
import '../../_chunks/dep-ffc4bb92.mjs';
import '../../_chunks/dep-9f0aa3ce.mjs';
import '../../_chunks/dep-2aa526c5.mjs';
import '../../_chunks/dep-4909e0c1.mjs';
import '../../_chunks/dep-ba782c68.mjs';
import '../../_chunks/dep-623bf97e.mjs';
import '../../_chunks/dep-f91e6e9f.mjs';
import '../../_chunks/dep-5fb4f56f.mjs';
import '../../_chunks/dep-d12cc5f8.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