83 lines
2.2 KiB
JavaScript
83 lines
2.2 KiB
JavaScript
import {
|
|
_export_sfc
|
|
} from "./chunk-MUJDDH7P.js";
|
|
import {
|
|
buildProps,
|
|
definePropType,
|
|
useNamespace,
|
|
withInstall
|
|
} from "./chunk-R2OGZABH.js";
|
|
import {
|
|
computed,
|
|
createCommentVNode,
|
|
createElementBlock,
|
|
defineComponent,
|
|
openBlock,
|
|
renderSlot,
|
|
unref
|
|
} from "./chunk-AAHVYXXY.js";
|
|
import {
|
|
normalizeClass,
|
|
normalizeStyle
|
|
} from "./chunk-OWZYVOTZ.js";
|
|
|
|
// ../node_modules/.pnpm/element-plus@2.11.7_vue@3.5.24_typescript@5.9.3_/node_modules/element-plus/es/components/divider/src/divider.mjs
|
|
var dividerProps = buildProps({
|
|
direction: {
|
|
type: String,
|
|
values: ["horizontal", "vertical"],
|
|
default: "horizontal"
|
|
},
|
|
contentPosition: {
|
|
type: String,
|
|
values: ["left", "center", "right"],
|
|
default: "center"
|
|
},
|
|
borderStyle: {
|
|
type: definePropType(String),
|
|
default: "solid"
|
|
}
|
|
});
|
|
|
|
// ../node_modules/.pnpm/element-plus@2.11.7_vue@3.5.24_typescript@5.9.3_/node_modules/element-plus/es/components/divider/src/divider2.mjs
|
|
var __default__ = defineComponent({
|
|
name: "ElDivider"
|
|
});
|
|
var _sfc_main = defineComponent({
|
|
...__default__,
|
|
props: dividerProps,
|
|
setup(__props) {
|
|
const props = __props;
|
|
const ns = useNamespace("divider");
|
|
const dividerStyle = computed(() => {
|
|
return ns.cssVar({
|
|
"border-style": props.borderStyle
|
|
});
|
|
});
|
|
return (_ctx, _cache) => {
|
|
return openBlock(), createElementBlock("div", {
|
|
class: normalizeClass([unref(ns).b(), unref(ns).m(_ctx.direction)]),
|
|
style: normalizeStyle(unref(dividerStyle)),
|
|
role: "separator"
|
|
}, [
|
|
_ctx.$slots.default && _ctx.direction !== "vertical" ? (openBlock(), createElementBlock("div", {
|
|
key: 0,
|
|
class: normalizeClass([unref(ns).e("text"), unref(ns).is(_ctx.contentPosition)])
|
|
}, [
|
|
renderSlot(_ctx.$slots, "default")
|
|
], 2)) : createCommentVNode("v-if", true)
|
|
], 6);
|
|
};
|
|
}
|
|
});
|
|
var Divider = _export_sfc(_sfc_main, [["__file", "divider.vue"]]);
|
|
|
|
// ../node_modules/.pnpm/element-plus@2.11.7_vue@3.5.24_typescript@5.9.3_/node_modules/element-plus/es/components/divider/index.mjs
|
|
var ElDivider = withInstall(Divider);
|
|
|
|
export {
|
|
dividerProps,
|
|
ElDivider
|
|
};
|
|
//# sourceMappingURL=chunk-SHVY6NQV.js.map
|