option2.mjs 1.4 KB

1234567891011121314151617181920212223242526
  1. import _plugin_vue_export_helper_default from "../../../_virtual/_plugin-vue_export-helper.mjs";
  2. import option_vue_vue_type_script_lang_default from "./option.vue_vue_type_script_lang.mjs";
  3. import { createElementBlock, createElementVNode, normalizeClass, openBlock, renderSlot, toDisplayString, vShow, withDirectives, withModifiers } from "vue";
  4. //#region ../../packages/components/select/src/option.vue
  5. const _hoisted_1 = [
  6. "id",
  7. "aria-disabled",
  8. "aria-selected"
  9. ];
  10. function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
  11. return withDirectives((openBlock(), createElementBlock("li", {
  12. id: _ctx.id,
  13. class: normalizeClass(_ctx.containerKls),
  14. role: "option",
  15. "aria-disabled": _ctx.isDisabled || void 0,
  16. "aria-selected": _ctx.itemSelected,
  17. onMousemove: _cache[0] || (_cache[0] = (...args) => _ctx.hoverItem && _ctx.hoverItem(...args)),
  18. onClick: _cache[1] || (_cache[1] = withModifiers((...args) => _ctx.selectOptionClick && _ctx.selectOptionClick(...args), ["stop"]))
  19. }, [renderSlot(_ctx.$slots, "default", {}, () => [createElementVNode("span", null, toDisplayString(_ctx.currentLabel), 1)])], 42, _hoisted_1)), [[vShow, _ctx.visible]]);
  20. }
  21. var option_default = /* @__PURE__ */ _plugin_vue_export_helper_default(option_vue_vue_type_script_lang_default, [["render", _sfc_render]]);
  22. //#endregion
  23. export { option_default as default };
  24. //# sourceMappingURL=option2.mjs.map