UNPKG

tdesign-vue-next

Version:
44 lines (40 loc) 1.64 kB
/** * tdesign v1.11.5 * (c) 2025 tdesign * @license MIT */ import _defineProperty from '@babel/runtime/helpers/defineProperty'; import { defineComponent, createVNode } from 'vue'; import props from './props.js'; import { usePrefixClass } from '../hooks/useConfig.js'; import { a as useContent } from '../_chunks/dep-7c56a7f5.js'; import '../config-provider/hooks/useConfig.js'; import 'lodash-es'; import '../config-provider/utils/context.js'; import '../_chunks/dep-c75b9b8e.js'; import '@babel/runtime/helpers/typeof'; import '../_chunks/dep-caecb55d.js'; import 'dayjs'; import '../utils/render-tnode.js'; var _Divider = defineComponent({ name: "TDivider", props: props, setup: function setup(props2) { var COMPONENT_NAME = usePrefixClass("divider"); var renderContent = useContent(); return function () { var layout = props2.layout, dashed = props2.dashed, align = props2.align; var children = renderContent("default", "content"); var dividerClassNames = ["".concat(COMPONENT_NAME.value), ["".concat(COMPONENT_NAME.value, "--").concat(layout)], _defineProperty(_defineProperty(_defineProperty({}, "".concat(COMPONENT_NAME.value, "--dashed"), !!dashed), "".concat(COMPONENT_NAME.value, "--with-text"), !!children), "".concat(COMPONENT_NAME.value, "--with-text-").concat(align), !!children)]; return createVNode("div", { "class": dividerClassNames }, [children && createVNode("span", { "class": "".concat(COMPONENT_NAME.value, "__inner-text") }, [children])]); }; } }); export { _Divider as default }; //# sourceMappingURL=divider.js.map