You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
41 lines
1.5 KiB
41 lines
1.5 KiB
import { defineComponent, openBlock, createElementBlock, normalizeClass, normalizeStyle, toDisplayString, createElementVNode } from 'vue';
|
|
import '../../../hooks/index.mjs';
|
|
import _export_sfc from '../../../_virtual/plugin-vue_export-helper.mjs';
|
|
import { useNamespace } from '../../../hooks/use-namespace/index.mjs';
|
|
|
|
const _sfc_main = defineComponent({
|
|
props: {
|
|
item: {
|
|
type: Object,
|
|
required: true
|
|
},
|
|
style: Object,
|
|
height: Number
|
|
},
|
|
setup() {
|
|
const ns = useNamespace("select");
|
|
return {
|
|
ns
|
|
};
|
|
}
|
|
});
|
|
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
return _ctx.item.isTitle ? (openBlock(), createElementBlock("div", {
|
|
key: 0,
|
|
class: normalizeClass(_ctx.ns.be("group", "title")),
|
|
style: normalizeStyle([_ctx.style, { lineHeight: `${_ctx.height}px` }])
|
|
}, toDisplayString(_ctx.item.label), 7)) : (openBlock(), createElementBlock("div", {
|
|
key: 1,
|
|
class: normalizeClass(_ctx.ns.be("group", "split")),
|
|
style: normalizeStyle(_ctx.style)
|
|
}, [
|
|
createElementVNode("span", {
|
|
class: normalizeClass(_ctx.ns.be("group", "split-dash")),
|
|
style: normalizeStyle({ top: `${_ctx.height / 2}px` })
|
|
}, null, 6)
|
|
], 6));
|
|
}
|
|
var GroupItem = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "/home/runner/work/element-plus/element-plus/packages/components/select-v2/src/group-item.vue"]]);
|
|
|
|
export { GroupItem as default };
|
|
//# sourceMappingURL=group-item.mjs.map
|
|
|