ivue-material-plus
Version:
A high quality UI components Library with Vue.js
31 lines (28 loc) • 1.65 kB
JavaScript
import _sfc_main from './option.vue_vue_type_script_lang.mjs';
import { resolveDirective, withDirectives, openBlock, createElementBlock, normalizeClass, normalizeStyle, withModifiers, renderSlot, createTextVNode, toDisplayString, vShow } from 'vue';
import _export_sfc from '../../_virtual/_plugin-vue_export-helper.mjs';
const _hoisted_1 = ["data-visible"];
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
const _directive_ripple = resolveDirective("ripple");
return withDirectives((openBlock(), createElementBlock("li", {
"data-visible": _ctx.data.visible,
"data-select": "select-item",
class: normalizeClass(_ctx.classes),
style: normalizeStyle(_ctx.styles),
onClick: _cache[0] || (_cache[0] = withModifiers((...args) => _ctx.handleOptionClick && _ctx.handleOptionClick(...args), ["stop"])),
onMousedown: _cache[1] || (_cache[1] = withModifiers(() => {
}, ["prevent"])),
onMouseenter: _cache[2] || (_cache[2] = (...args) => _ctx.handleMouseenter && _ctx.handleMouseenter(...args)),
onMouseleave: _cache[3] || (_cache[3] = (...args) => _ctx.handleMouseleave && _ctx.handleMouseleave(...args))
}, [
renderSlot(_ctx.$slots, "default", {}, () => [
createTextVNode(toDisplayString(_ctx.showLabel), 1)
])
], 46, _hoisted_1)), [
[vShow, _ctx.data.visible],
[_directive_ripple, _ctx.ripple]
]);
}
var IvueOption = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "D:\\louise\\person\\project\\GitHub\\ivue-ui-plus\\src\\components\\ivue-select\\option.vue"]]);
export { IvueOption as default };
//# sourceMappingURL=option.mjs.map