UNPKG

tdesign-vue-next

Version:
51 lines (47 loc) 1.95 kB
/** * tdesign v1.15.2 * (c) 2025 tdesign * @license MIT */ import { defineComponent, createVNode } from 'vue'; import _defineProperty from '@babel/runtime/helpers/defineProperty'; import props from './props.js'; import 'lodash-es'; import '@babel/runtime/helpers/toConsumableArray'; import '@babel/runtime/helpers/typeof'; import '../_chunks/dep-e604a5ce.js'; import { a as useContent } from '../_chunks/dep-1d44782f.js'; import { u as usePrefixClass } from '../_chunks/dep-79c44a11.js'; import '@babel/runtime/helpers/slicedToArray'; import '../_chunks/dep-7324137b.js'; import '../_chunks/dep-7fac49fa.js'; import '../_chunks/dep-1f7ad104.js'; import '../_chunks/dep-6c13cc0e.js'; import '../config-provider/hooks/useConfig.js'; import '../config-provider/utils/context.js'; import '../_chunks/dep-3b49fbbe.js'; import 'dayjs'; import '@babel/runtime/helpers/createClass'; import '@babel/runtime/helpers/classCallCheck'; 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