UNPKG

ivue-material-plus

Version:

A high quality UI components Library with Vue.js

35 lines (32 loc) 1.78 kB
import _sfc_main from './menu-item.vue_vue_type_script_lang.mjs'; import { resolveComponent, resolveDirective, openBlock, createElementBlock, normalizeClass, withModifiers, createTextVNode, toDisplayString, withDirectives, createVNode, withCtx, vShow, createCommentVNode } from 'vue'; import _export_sfc from '../../_virtual/_plugin-vue_export-helper.mjs'; function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) { const _component_ivue_icon = resolveComponent("ivue-icon"); const _directive_ivue_loading = resolveDirective("ivue-loading"); return openBlock(), createElementBlock("li", { class: normalizeClass(_ctx.classes), onClick: _cache[0] || (_cache[0] = withModifiers((...args) => _ctx.handleClickItem && _ctx.handleClickItem(...args), ["stop"])), onMouseenter: _cache[1] || (_cache[1] = withModifiers((...args) => _ctx.handleHoverItem && _ctx.handleHoverItem(...args), ["stop"])) }, [ createTextVNode(toDisplayString(_ctx.item.label) + " ", 1), withDirectives(createVNode(_component_ivue_icon, null, { default: withCtx(() => [ createTextVNode(toDisplayString(_ctx.childrenIcon), 1) ]), _: 1 }, 512), [ [vShow, _ctx.showArrow] ]), createCommentVNode(" loading "), _ctx.showLoading ? withDirectives((openBlock(), createElementBlock("div", { key: 0, class: normalizeClass(`${_ctx.prefixCls}-loading`) }, null, 2)), [ [_directive_ivue_loading, true] ]) : createCommentVNode("v-if", true) ], 34); } var MenuItem = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "D:\\louise\\person\\project\\GitHub\\ivue-ui-plus\\src\\components\\ivue-cascader\\menu-item.vue"]]); export { MenuItem as default }; //# sourceMappingURL=menu-item.mjs.map