tdesign-vue-next
Version:
TDesign Component for vue-next
53 lines (49 loc) • 2.01 kB
JavaScript
/**
* tdesign v1.15.2
* (c) 2025 tdesign
* @license MIT
*/
import { defineComponent, createVNode } from 'vue';
import { _ as _defineProperty } from '../_chunks/dep-0bd8597f.mjs';
import props from './props.mjs';
import { u as usePrefixClass, b as useContent } from '../_chunks/dep-465c43e8.mjs';
import '../_chunks/dep-612a2c2b.mjs';
import '../_chunks/dep-15464fee.mjs';
import 'lodash-es';
import '../_chunks/dep-d0add92f.mjs';
import '../_chunks/dep-32b59907.mjs';
import '../_chunks/dep-d58b61b6.mjs';
import '../_chunks/dep-779bddf7.mjs';
import '../config-provider/hooks/useConfig.mjs';
import '../config-provider/utils/context.mjs';
import '../_chunks/dep-afae046d.mjs';
import '../_chunks/dep-8a6c1499.mjs';
import '../_chunks/dep-5c28ada1.mjs';
import '../_chunks/dep-614f307d.mjs';
import '../_chunks/dep-d913bc66.mjs';
import '../_chunks/dep-1690abc9.mjs';
import '../_chunks/dep-62c11543.mjs';
import '../_chunks/dep-27c2b283.mjs';
import '../_chunks/dep-67238d91.mjs';
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.mjs.map