tdesign-vue-next
Version:
TDesign Component for vue-next
110 lines (106 loc) • 3.8 kB
JavaScript
/**
* tdesign v1.19.2
* (c) 2026 tdesign
* @license MIT
*/
import { computed } from 'vue';
import { u as usePrefixClass } from '../../_chunks/dep-fbeb2963.mjs';
import { COMPONENT_NAME } from '../constants/index.mjs';
import 'lodash-es';
import '../../_chunks/dep-47c3cae9.mjs';
import '../../_chunks/dep-b0b422fe.mjs';
import '../../_chunks/dep-e1c62679.mjs';
import '../../_chunks/dep-feed89df.mjs';
import '../../_chunks/dep-5b510fcd.mjs';
import '../../config-provider/hooks/useConfig.mjs';
import '../../config-provider/utils/context.mjs';
import '../../_chunks/dep-e0ab6d55.mjs';
import '../../_chunks/dep-75f265c4.mjs';
import '../../_chunks/dep-67ffcfeb.mjs';
import '../../_chunks/dep-f558ebb8.mjs';
import '../../_chunks/dep-edab0e6a.mjs';
import '../../_chunks/dep-76dddedf.mjs';
import '../../_chunks/dep-d92220c4.mjs';
import '../../_chunks/dep-466a8f31.mjs';
import '../../_chunks/dep-ba214d75.mjs';
import '../../_chunks/dep-e66c0337.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