group-item.mjs 1009 B

1234567891011121314151617181920212223242526272829303132
  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("div", {
  24. class: normalizeClass(_ctx.ns.be("group", "title")),
  25. style: normalizeStyle({ ..._ctx.style, lineHeight: `${_ctx.height}px` })
  26. }, toDisplayString(_ctx.item.label), 7);
  27. }
  28. var GroupItem = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "group-item.vue"]]);
  29. export { GroupItem as default };
  30. //# sourceMappingURL=group-item.mjs.map