ivue-material-plus
Version:
A high quality UI components Library with Vue.js
41 lines (36 loc) • 1.94 kB
JavaScript
'use strict';
Object.defineProperty(exports, '__esModule', { value: true });
var menu_vue_vue_type_script_lang = require('./menu.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_menu_item = vue.resolveComponent("menu-item");
const _component_ivue_cascader_menu = vue.resolveComponent("ivue-cascader-menu");
return vue.openBlock(), vue.createElementBlock("span", null, [
_ctx.options && _ctx.options.length ? (vue.openBlock(), vue.createElementBlock("ul", {
key: 0,
class: vue.normalizeClass(_ctx.prefixCls)
}, [
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(_ctx.options, (item, index) => {
return vue.openBlock(), vue.createBlock(_component_menu_item, {
item,
tmpItem: _ctx.data.tmpItem,
key: index,
onClick: _ctx.handleClickItem,
onMouseenter: _ctx.handleHoverItem
}, null, 8, ["item", "tmpItem", "onClick", "onMouseenter"]);
}), 128))
], 2)) : vue.createCommentVNode("v-if", true),
_ctx.data.sublist && _ctx.data.sublist.length ? (vue.openBlock(), vue.createBlock(_component_ivue_cascader_menu, {
key: 1,
ref: "menu",
options: _ctx.data.sublist,
disabled: _ctx.disabled,
trigger: _ctx.trigger,
changeOnSelect: _ctx.changeOnSelect
}, null, 8, ["options", "disabled", "trigger", "changeOnSelect"])) : vue.createCommentVNode("v-if", true)
]);
}
var IvueCascaderMenu = /* @__PURE__ */ _pluginVue_exportHelper["default"](menu_vue_vue_type_script_lang["default"], [["render", _sfc_render], ["__file", "D:\\louise\\person\\project\\GitHub\\ivue-ui-plus\\src\\components\\ivue-cascader\\menu.vue"]]);
exports["default"] = IvueCascaderMenu;
//# sourceMappingURL=menu.js.map