group-item.mjs 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. import { defineComponent, openBlock, createElementBlock, normalizeClass, normalizeStyle, toDisplayString } from 'vue';
  2. import _export_sfc from '../../../_virtual/plugin-vue_export-helper.mjs';
  3. import { useNamespace } from '../../../hooks/use-namespace/index.mjs';
  4. const _sfc_main = defineComponent({
  5. props: {
  6. item: {
  7. type: Object,
  8. required: true
  9. },
  10. style: {
  11. type: Object
  12. },
  13. height: Number
  14. },
  15. setup() {
  16. const ns = useNamespace("select");
  17. return {
  18. ns
  19. };
  20. }
  21. });
  22. function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
  23. return openBlock(), createElementBlock(
  24. "div",
  25. {
  26. class: normalizeClass(_ctx.ns.be("group", "title")),
  27. style: normalizeStyle({ ..._ctx.style, lineHeight: `${_ctx.height}px` })
  28. },
  29. toDisplayString(_ctx.item.label),
  30. 7
  31. );
  32. }
  33. 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"]]);
  34. export { GroupItem as default };
  35. //# sourceMappingURL=group-item.mjs.map