tdesign-vue-next
Version:
TDesign Component for vue-next
110 lines (106 loc) • 3.79 kB
JavaScript
/**
* tdesign v1.13.2
* (c) 2025 tdesign
* @license MIT
*/
import { computed } from 'vue';
import { u as usePrefixClass } from '../../_chunks/dep-9c4aef07.mjs';
import { COMPONENT_NAME } from '../consts/index.mjs';
import 'lodash-es';
import '../../_chunks/dep-b981148e.mjs';
import '../../_chunks/dep-f1895f5a.mjs';
import '../../_chunks/dep-a81129ec.mjs';
import '../../utils/render-tnode.mjs';
import '../../config-provider/hooks/useConfig.mjs';
import '../../config-provider/utils/context.mjs';
import '../../_chunks/dep-466a0666.mjs';
import '../../_chunks/dep-24ce1cec.mjs';
import '../../_chunks/dep-160caab6.mjs';
import '../../_chunks/dep-e497214e.mjs';
import '../../_chunks/dep-98cd1e2d.mjs';
import '../../_chunks/dep-23a929e8.mjs';
import '../../_chunks/dep-48e13ca0.mjs';
import '../../_chunks/dep-033df8e6.mjs';
import '../../utils/dom.mjs';
import '../../_chunks/dep-20550dcc.mjs';
import '../../_chunks/dep-0bb39574.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