ivue-material-plus
Version:
A high quality UI components Library with Vue.js
39 lines (34 loc) • 1.85 kB
JavaScript
;
Object.defineProperty(exports, '__esModule', { value: true });
var menuItem_vue_vue_type_script_lang = require('./menu-item.vue_vue_type_script_lang.js');
var vue = require('vue');
var _pluginVue_exportHelper = require('../../_virtual/_plugin-vue_export-helper.js');
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
const _component_ivue_icon = vue.resolveComponent("ivue-icon");
const _directive_ivue_loading = vue.resolveDirective("ivue-loading");
return vue.openBlock(), vue.createElementBlock("li", {
class: vue.normalizeClass(_ctx.classes),
onClick: _cache[0] || (_cache[0] = vue.withModifiers((...args) => _ctx.handleClickItem && _ctx.handleClickItem(...args), ["stop"])),
onMouseenter: _cache[1] || (_cache[1] = vue.withModifiers((...args) => _ctx.handleHoverItem && _ctx.handleHoverItem(...args), ["stop"]))
}, [
vue.createTextVNode(vue.toDisplayString(_ctx.item.label) + " ", 1),
vue.withDirectives(vue.createVNode(_component_ivue_icon, null, {
default: vue.withCtx(() => [
vue.createTextVNode(vue.toDisplayString(_ctx.childrenIcon), 1)
]),
_: 1
}, 512), [
[vue.vShow, _ctx.showArrow]
]),
vue.createCommentVNode(" loading "),
_ctx.showLoading ? vue.withDirectives((vue.openBlock(), vue.createElementBlock("div", {
key: 0,
class: vue.normalizeClass(`${_ctx.prefixCls}-loading`)
}, null, 2)), [
[_directive_ivue_loading, true]
]) : vue.createCommentVNode("v-if", true)
], 34);
}
var MenuItem = /* @__PURE__ */ _pluginVue_exportHelper["default"](menuItem_vue_vue_type_script_lang["default"], [["render", _sfc_render], ["__file", "D:\\louise\\person\\project\\GitHub\\ivue-ui-plus\\src\\components\\ivue-cascader\\menu-item.vue"]]);
exports["default"] = MenuItem;
//# sourceMappingURL=menu-item.js.map