xdesign-vue-next
Version:
XDesign Component for vue-next
108 lines (102 loc) • 3.71 kB
JavaScript
/**
* xdesign v1.0.6
* (c) 2023 xdesign
* @license MIT
*/
;
Object.defineProperty(exports, '__esModule', { value: true });
var vue = require('vue');
var hooks_useConfig = require('../../hooks/useConfig.js');
var calendar_const = require('../const.js');
require('../../config-provider/useConfig.js');
require('lodash/isFunction');
require('lodash/cloneDeep');
require('lodash/isString');
require('../../config-provider/context.js');
require('lodash/mergeWith');
require('lodash/merge');
require('../../_common/js/global-config/default-config.js');
require('../../_common/js/global-config/locale/en_US.js');
require('../../_chunks/dep-8d10b59f.js');
require('lodash/isArray');
function useCalendarClass(props, state) {
var prefixClass = hooks_useConfig.usePrefixClass(calendar_const.COMPONENT_NAME);
var body = vue.computed(function () {
return ["".concat(prefixClass.value), "".concat(prefixClass.value, "--").concat(props.theme)];
});
var panel = vue.computed(function () {
return ["".concat(prefixClass.value, "__panel"), "".concat(prefixClass.value, "__panel--").concat(state.curSelectedMode)];
});
var control = vue.computed(function () {
return ["".concat(prefixClass.value, "__control")];
});
var title = vue.computed(function () {
return ["".concat(prefixClass.value, "__title")];
});
var controlSection = vue.computed(function () {
return ["".concat(prefixClass.value, "__control-section")];
});
var controlSectionCell = vue.computed(function () {
return ["".concat(prefixClass.value, "__control-section-cell")];
});
var controlTag = vue.computed(function () {
return ["".concat(prefixClass.value, "__control-tag")];
});
var table = vue.computed(function () {
return ["".concat(prefixClass.value, "__table")];
});
var tableHead = vue.computed(function () {
return ["".concat(prefixClass.value, "__table-head")];
});
var tableHeadRow = vue.computed(function () {
return ["".concat(prefixClass.value, "__table-head-row")];
});
var tableHeadCell = vue.computed(function () {
return ["".concat(prefixClass.value, "__table-head-cell")];
});
var tableBody = vue.computed(function () {
return ["".concat(prefixClass.value, "__table-body")];
});
var tableBodyRow = vue.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 = hooks_useConfig.usePrefixClass(calendar_const.COMPONENT_NAME);
var tableBodyCell = vue.computed(function () {
return ["".concat(prefixClass.value, "__table-body-cell")];
});
var tableBodyCell4Now = vue.computed(function () {
return "".concat(prefixClass.value, "__table-body-cell--now");
});
var tableBodyCellDisplay = vue.computed(function () {
return ["".concat(prefixClass.value, "__table-body-cell-display")];
});
var tableBodyCellCsontent = vue.computed(function () {
return ["".concat(prefixClass.value, "__table-body-cell-content")];
});
return {
tableBodyCell: tableBodyCell,
tableBodyCell4Now: tableBodyCell4Now,
tableBodyCellDisplay: tableBodyCellDisplay,
tableBodyCellCsontent: tableBodyCellCsontent
};
}
exports.useCalendarCellClass = useCalendarCellClass;
exports.useCalendarClass = useCalendarClass;
//# sourceMappingURL=useCalendarClass.js.map