UNPKG

hongluan-ui

Version:
33 lines (30 loc) 959 B
import { defineComponent, inject, renderSlot, createVNode } from 'vue'; import '../../../../tokens/index.mjs'; import { basicCellProps } from '../props/basic-cell.mjs'; import { ROOT_PICKER_INJECTION_KEY } from '../../../../tokens/date-picker.mjs'; var HlDatePickerCell = defineComponent({ name: "DatePickerCell", props: basicCellProps, setup(props) { const { slots } = inject(ROOT_PICKER_INJECTION_KEY); return () => { const { cell } = props; return renderSlot(slots, "default", { ...cell }, () => { var _a; return [createVNode("div", { "class": "date-table-cell" }, [createVNode("span", { "class": "date-table-cell-text" }, [(_a = cell == null ? void 0 : cell.renderText) != null ? _a : cell == null ? void 0 : cell.text])])]; }); }; } }); export { HlDatePickerCell as default }; //# sourceMappingURL=basic-cell-render.mjs.map