Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

vue3-menus

Package Overview
Dependencies
Maintainers
1
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vue3-menus - npm Package Compare versions

Comparing version 1.0.7 to 1.0.8

196

dist/vue3-menus.common.js

@@ -90,16 +90,45 @@ module.exports =

/***/ "21a1":
/***/ "1b6f":
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony import */ var _node_modules_vue_style_loader_index_js_ref_6_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_6_oneOf_1_1_node_modules_vue_loader_v16_dist_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_2_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_v16_dist_index_js_ref_0_1_MenusItem_vue_vue_type_style_index_0_id_1cef264a_lang_css__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("1d2f");
/* harmony import */ var _node_modules_vue_style_loader_index_js_ref_6_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_6_oneOf_1_1_node_modules_vue_loader_v16_dist_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_2_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_v16_dist_index_js_ref_0_1_MenusItem_vue_vue_type_style_index_0_id_1cef264a_lang_css__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_vue_style_loader_index_js_ref_6_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_6_oneOf_1_1_node_modules_vue_loader_v16_dist_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_2_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_v16_dist_index_js_ref_0_1_MenusItem_vue_vue_type_style_index_0_id_1cef264a_lang_css__WEBPACK_IMPORTED_MODULE_0__);
/* unused harmony reexport * */
/***/ }),
/***/ "1d2f":
/***/ (function(module, exports, __webpack_require__) {
// Imports
var ___CSS_LOADER_API_IMPORT___ = __webpack_require__("24fb");
exports = ___CSS_LOADER_API_IMPORT___(false);
// Module
exports.push([module.i, ".menus-item{display:flex;line-height:2rem;padding:0 1rem;margin:0;font-size:.8rem;outline:0;align-items:center;transition:.2s;box-sizing:border-box;list-style:none;border-bottom:1px solid transparent}.menus-item-divided{border-bottom-color:#ebeef5}.menus-item .menus-item-icon{display:flex;margin-right:.6rem;width:1rem}.menus-item .menus-item-label{flex:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.menus-item .menus-item-suffix{margin-left:1.5rem;font-size:.39rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.menus-item-available{color:#606266;cursor:pointer}.menus-item-available:hover{background:#ecf5ff;color:#409eff}.menus-item-disabled{color:#c0c4cc;cursor:not-allowed}.menus-item-active{background:#ecf5ff;color:#409eff}.menus-item-tip{font-size:9px;color:#999}", ""]);
// Exports
module.exports = exports;
// style-loader: Adds some css to the DOM by adding a <style> tag
// load the styles
var content = __webpack_require__("c26e");
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__("499e").default
var update = add("61ee5938", content, true, {"sourceMap":false,"shadowMode":false});
/***/ }),
/***/ "21f3":
/***/ (function(module, exports, __webpack_require__) {
// style-loader: Adds some css to the DOM by adding a <style> tag
// load the styles
var content = __webpack_require__("86e0");
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__("499e").default
var update = add("15551234", content, true, {"sourceMap":false,"shadowMode":false});
/***/ }),
/***/ "24fb":

@@ -472,9 +501,12 @@ /***/ (function(module, exports, __webpack_require__) {

/***/ "4db7":
/***/ (function(module, __webpack_exports__, __webpack_require__) {
/***/ "86e0":
/***/ (function(module, exports, __webpack_require__) {
"use strict";
/* harmony import */ var _node_modules_vue_style_loader_index_js_ref_6_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_6_oneOf_1_1_node_modules_vue_loader_v16_dist_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_2_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_v16_dist_index_js_ref_0_1_Menus_vue_vue_type_style_index_0_id_4450c50e_scoped_true_lang_css__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("b27b");
/* harmony import */ var _node_modules_vue_style_loader_index_js_ref_6_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_6_oneOf_1_1_node_modules_vue_loader_v16_dist_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_2_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_v16_dist_index_js_ref_0_1_Menus_vue_vue_type_style_index_0_id_4450c50e_scoped_true_lang_css__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_vue_style_loader_index_js_ref_6_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_6_oneOf_1_1_node_modules_vue_loader_v16_dist_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_2_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_v16_dist_index_js_ref_0_1_Menus_vue_vue_type_style_index_0_id_4450c50e_scoped_true_lang_css__WEBPACK_IMPORTED_MODULE_0__);
/* unused harmony reexport * */
// Imports
var ___CSS_LOADER_API_IMPORT___ = __webpack_require__("24fb");
exports = ___CSS_LOADER_API_IMPORT___(false);
// Module
exports.push([module.i, ".menus[data-v-79f25910]{position:fixed;box-shadow:0 2px 4px rgba(0,0,0,.12),0 0 6px rgba(0,0,0,.04);background:#fff;border-radius:4px;padding:8px 0;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;box-sizing:border-box}.menus_body[data-v-79f25910]{display:block}.menus-fade-enter-active[data-v-79f25910],.menus-fade-leave-active[data-v-79f25910]{transition:opacity .1s ease-in-out}.menus-fade-enter-from[data-v-79f25910],.menus-fade-leave-to[data-v-79f25910]{opacity:0}", ""]);
// Exports
module.exports = exports;

@@ -576,8 +608,8 @@

/***/ "92c7":
/***/ "c00a":
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony import */ var _node_modules_vue_style_loader_index_js_ref_6_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_6_oneOf_1_1_node_modules_vue_loader_v16_dist_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_2_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_v16_dist_index_js_ref_0_1_MenusItem_vue_vue_type_style_index_0_id_11a672fa_lang_css__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("d1aa");
/* harmony import */ var _node_modules_vue_style_loader_index_js_ref_6_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_6_oneOf_1_1_node_modules_vue_loader_v16_dist_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_2_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_v16_dist_index_js_ref_0_1_MenusItem_vue_vue_type_style_index_0_id_11a672fa_lang_css__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_vue_style_loader_index_js_ref_6_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_6_oneOf_1_1_node_modules_vue_loader_v16_dist_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_2_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_v16_dist_index_js_ref_0_1_MenusItem_vue_vue_type_style_index_0_id_11a672fa_lang_css__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var _node_modules_vue_style_loader_index_js_ref_6_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_6_oneOf_1_1_node_modules_vue_loader_v16_dist_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_2_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_v16_dist_index_js_ref_0_1_Menus_vue_vue_type_style_index_0_id_79f25910_scoped_true_lang_css__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("21f3");
/* harmony import */ var _node_modules_vue_style_loader_index_js_ref_6_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_6_oneOf_1_1_node_modules_vue_loader_v16_dist_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_2_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_v16_dist_index_js_ref_0_1_Menus_vue_vue_type_style_index_0_id_79f25910_scoped_true_lang_css__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_vue_style_loader_index_js_ref_6_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_6_oneOf_1_1_node_modules_vue_loader_v16_dist_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_2_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_v16_dist_index_js_ref_0_1_Menus_vue_vue_type_style_index_0_id_79f25910_scoped_true_lang_css__WEBPACK_IMPORTED_MODULE_0__);
/* unused harmony reexport * */

@@ -588,21 +620,5 @@

/***/ "b27b":
/***/ "c26e":
/***/ (function(module, exports, __webpack_require__) {
// style-loader: Adds some css to the DOM by adding a <style> tag
// load the styles
var content = __webpack_require__("b53e");
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__("499e").default
var update = add("3995fa16", content, true, {"sourceMap":false,"shadowMode":false});
/***/ }),
/***/ "b53e":
/***/ (function(module, exports, __webpack_require__) {
// Imports

@@ -612,3 +628,3 @@ var ___CSS_LOADER_API_IMPORT___ = __webpack_require__("24fb");

// Module
exports.push([module.i, ".menus[data-v-4450c50e]{position:fixed;box-shadow:0 2px 4px rgba(0,0,0,.12),0 0 6px rgba(0,0,0,.04);background:#fff;border-radius:4px;padding:8px 0;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;box-sizing:border-box}.menus_body[data-v-4450c50e]{display:block}.menus-fade-enter-active[data-v-4450c50e],.menus-fade-leave-active[data-v-4450c50e]{transition:opacity .1s ease-in-out}.menus-fade-enter-from[data-v-4450c50e],.menus-fade-leave-to[data-v-4450c50e]{opacity:0}", ""]);
exports.push([module.i, ".menus-item{display:flex;line-height:2rem;padding:0 1rem;margin:0;font-size:.8rem;outline:0;align-items:center;transition:.2s;box-sizing:border-box;list-style:none;border-bottom:1px solid transparent}.menus-item-divided{border-bottom-color:#ebeef5}.menus-item .menus-item-icon{display:flex;margin-right:.6rem;width:1rem}.menus-item .menus-item-label{flex:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.menus-item .menus-item-suffix{margin-left:1.5rem;font-size:.39rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.menus-item-available{color:#606266;cursor:pointer}.menus-item-available:hover{background:#ecf5ff;color:#409eff}.menus-item-disabled{color:#c0c4cc;cursor:not-allowed}.menus-item-active{background:#ecf5ff;color:#409eff}.menus-item-tip{font-size:9px;color:#999}", ""]);
// Exports

@@ -620,18 +636,2 @@ module.exports = exports;

/***/ "d1aa":
/***/ (function(module, exports, __webpack_require__) {
// style-loader: Adds some css to the DOM by adding a <style> tag
// load the styles
var content = __webpack_require__("21a1");
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__("499e").default
var update = add("10b4684a", content, true, {"sourceMap":false,"shadowMode":false});
/***/ }),
/***/ "fb15":

@@ -676,11 +676,11 @@ /***/ (function(module, __webpack_exports__, __webpack_require__) {

// CONCATENATED MODULE: ./node_modules/vue-loader-v16/dist/templateLoader.js??ref--5!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader-v16/dist??ref--0-1!./package/components/Menus.vue?vue&type=template&id=4450c50e&scoped=true
// CONCATENATED MODULE: ./node_modules/vue-loader-v16/dist/templateLoader.js??ref--5!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader-v16/dist??ref--0-1!./lib/components/Menus.vue?vue&type=template&id=79f25910&scoped=true
const _withId = /*#__PURE__*/Object(external_commonjs_vue_commonjs2_vue_root_Vue_["withScopeId"])("data-v-4450c50e")
const _withId = /*#__PURE__*/Object(external_commonjs_vue_commonjs2_vue_root_Vue_["withScopeId"])("data-v-79f25910")
Object(external_commonjs_vue_commonjs2_vue_root_Vue_["pushScopeId"])("data-v-4450c50e")
Object(external_commonjs_vue_commonjs2_vue_root_Vue_["pushScopeId"])("data-v-79f25910")
const _hoisted_1 = { class: "menus_body" }
Object(external_commonjs_vue_commonjs2_vue_root_Vue_["popScopeId"])()
const Menusvue_type_template_id_4450c50e_scoped_true_render = /*#__PURE__*/_withId(function render(_ctx, _cache, $props, $setup, $data, $options) {
const Menusvue_type_template_id_79f25910_scoped_true_render = /*#__PURE__*/_withId(function render(_ctx, _cache, $props, $setup, $data, $options) {
const _component_MenusItem = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["resolveComponent"])("MenusItem")

@@ -757,8 +757,8 @@

})
// CONCATENATED MODULE: ./package/components/Menus.vue?vue&type=template&id=4450c50e&scoped=true
// CONCATENATED MODULE: ./lib/components/Menus.vue?vue&type=template&id=79f25910&scoped=true
// CONCATENATED MODULE: ./node_modules/vue-loader-v16/dist/templateLoader.js??ref--5!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader-v16/dist??ref--0-1!./package/components/MenusItem.vue?vue&type=template&id=11a672fa
// CONCATENATED MODULE: ./node_modules/vue-loader-v16/dist/templateLoader.js??ref--5!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader-v16/dist??ref--0-1!./lib/components/MenusItem.vue?vue&type=template&id=1cef264a
const MenusItemvue_type_template_id_11a672fa_hoisted_1 = {
const MenusItemvue_type_template_id_1cef264a_hoisted_1 = {
key: 0,

@@ -775,3 +775,3 @@ class: "menus-item-icon"

function MenusItemvue_type_template_id_11a672fa_render(_ctx, _cache, $props, $setup, $data, $options) {
function MenusItemvue_type_template_id_1cef264a_render(_ctx, _cache, $props, $setup, $data, $options) {
const _component_MenusIcon = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["resolveComponent"])("MenusIcon")

@@ -801,3 +801,3 @@

(_ctx.hasIcon)
? (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createBlock"])("div", MenusItemvue_type_template_id_11a672fa_hoisted_1, [
? (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createBlock"])("div", MenusItemvue_type_template_id_1cef264a_hoisted_1, [
(_ctx.slots.icon)

@@ -854,5 +854,5 @@ ? Object(external_commonjs_vue_commonjs2_vue_root_Vue_["renderSlot"])(_ctx.$slots, "icon", {

}
// CONCATENATED MODULE: ./package/components/MenusItem.vue?vue&type=template&id=11a672fa
// CONCATENATED MODULE: ./lib/components/MenusItem.vue?vue&type=template&id=1cef264a
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader-v16/dist??ref--0-1!./package/components/MenusIcon.vue?vue&type=script&lang=js
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader-v16/dist??ref--0-1!./lib/components/MenusIcon.vue?vue&type=script&lang=js

@@ -881,5 +881,5 @@

// CONCATENATED MODULE: ./package/components/MenusIcon.vue?vue&type=script&lang=js
// CONCATENATED MODULE: ./lib/components/MenusIcon.vue?vue&type=script&lang=js
// CONCATENATED MODULE: ./package/components/MenusIcon.vue
// CONCATENATED MODULE: ./lib/components/MenusIcon.vue

@@ -889,3 +889,3 @@

/* harmony default export */ var MenusIcon = (MenusIconvue_type_script_lang_js);
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader-v16/dist??ref--0-1!./package/components/MenusItem.vue?vue&type=script&lang=js
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader-v16/dist??ref--0-1!./lib/components/MenusItem.vue?vue&type=script&lang=js

@@ -954,8 +954,8 @@

// CONCATENATED MODULE: ./package/components/MenusItem.vue?vue&type=script&lang=js
// CONCATENATED MODULE: ./lib/components/MenusItem.vue?vue&type=script&lang=js
// EXTERNAL MODULE: ./package/components/MenusItem.vue?vue&type=style&index=0&id=11a672fa&lang=css
var MenusItemvue_type_style_index_0_id_11a672fa_lang_css = __webpack_require__("92c7");
// EXTERNAL MODULE: ./lib/components/MenusItem.vue?vue&type=style&index=0&id=1cef264a&lang=css
var MenusItemvue_type_style_index_0_id_1cef264a_lang_css = __webpack_require__("1b6f");
// CONCATENATED MODULE: ./package/components/MenusItem.vue
// CONCATENATED MODULE: ./lib/components/MenusItem.vue

@@ -966,6 +966,6 @@

MenusItemvue_type_script_lang_js.render = MenusItemvue_type_template_id_11a672fa_render
MenusItemvue_type_script_lang_js.render = MenusItemvue_type_template_id_1cef264a_render
/* harmony default export */ var MenusItem = (MenusItemvue_type_script_lang_js);
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader-v16/dist??ref--0-1!./package/components/Menus.vue?vue&type=script&lang=js
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader-v16/dist??ref--0-1!./lib/components/Menus.vue?vue&type=script&lang=js

@@ -1157,8 +1157,8 @@

// CONCATENATED MODULE: ./package/components/Menus.vue?vue&type=script&lang=js
// CONCATENATED MODULE: ./lib/components/Menus.vue?vue&type=script&lang=js
// EXTERNAL MODULE: ./package/components/Menus.vue?vue&type=style&index=0&id=4450c50e&scoped=true&lang=css
var Menusvue_type_style_index_0_id_4450c50e_scoped_true_lang_css = __webpack_require__("4db7");
// EXTERNAL MODULE: ./lib/components/Menus.vue?vue&type=style&index=0&id=79f25910&scoped=true&lang=css
var Menusvue_type_style_index_0_id_79f25910_scoped_true_lang_css = __webpack_require__("c00a");
// CONCATENATED MODULE: ./package/components/Menus.vue
// CONCATENATED MODULE: ./lib/components/Menus.vue

@@ -1169,7 +1169,7 @@

Menusvue_type_script_lang_js.render = Menusvue_type_template_id_4450c50e_scoped_true_render
Menusvue_type_script_lang_js.__scopeId = "data-v-4450c50e"
Menusvue_type_script_lang_js.render = Menusvue_type_template_id_79f25910_scoped_true_render
Menusvue_type_script_lang_js.__scopeId = "data-v-79f25910"
/* harmony default export */ var Menus = (Menusvue_type_script_lang_js);
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader-v16/dist??ref--0-1!./package/components/Vue3Menus.vue?vue&type=script&lang=js
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader-v16/dist??ref--0-1!./lib/components/Vue3Menus.vue?vue&type=script&lang=js

@@ -1259,5 +1259,5 @@

// CONCATENATED MODULE: ./package/components/Vue3Menus.vue?vue&type=script&lang=js
// CONCATENATED MODULE: ./lib/components/Vue3Menus.vue?vue&type=script&lang=js
// CONCATENATED MODULE: ./package/components/Vue3Menus.vue
// CONCATENATED MODULE: ./lib/components/Vue3Menus.vue

@@ -1267,3 +1267,3 @@

/* harmony default export */ var Vue3Menus = (Vue3Menusvue_type_script_lang_js);
// CONCATENATED MODULE: ./package/event.js
// CONCATENATED MODULE: ./lib/event.js

@@ -1310,5 +1310,5 @@

/* harmony default export */ var package_event = ($menusEvent);
/* harmony default export */ var lib_event = ($menusEvent);
// CONCATENATED MODULE: ./package/index.js
// CONCATENATED MODULE: ./lib/index.js

@@ -1324,8 +1324,8 @@

if (arg === undefined || arg === 'right') {
el.addEventListener("contextmenu", package_event.bind(instance, value));
el.addEventListener("contextmenu", lib_event.bind(instance, value));
} else if (arg === 'left') {
el.addEventListener("click", package_event.bind(instance, value));
el.addEventListener("click", lib_event.bind(instance, value));
} else if (arg === 'all') {
el.addEventListener("contextmenu", package_event.bind(instance, value));
el.addEventListener("click", package_event.bind(instance, value));
el.addEventListener("contextmenu", lib_event.bind(instance, value));
el.addEventListener("click", lib_event.bind(instance, value));
}

@@ -1335,8 +1335,8 @@ },

if (arg === undefined || arg === 'right') {
el.removeEventListener("contextmenu", package_event);
el.removeEventListener("contextmenu", lib_event);
} else if (arg === 'left') {
el.removeEventListener("click", package_event);
el.removeEventListener("click", lib_event);
} else if (arg === 'all') {
el.removeEventListener("contextmenu", package_event);
el.removeEventListener("click", package_event);
el.removeEventListener("contextmenu", lib_event);
el.removeEventListener("click", lib_event);
}

@@ -1349,3 +1349,3 @@ }

app.directive('menus', directive);
app.config.globalProperties.$menusEvent = (event, menus) => package_event(menus, event);
app.config.globalProperties.$menusEvent = (event, menus) => lib_event(menus, event);
}

@@ -1357,7 +1357,13 @@

const menusEvent = (event, menus) => package_event(menus, event);
const menusEvent = (event, menus) => lib_event(menus, event);
/* harmony default export */ var package_0 = (install);
/* harmony default export */ var lib = ({
version: '1.0.8',
install,
Vue3Menus: Vue3Menus,
directive,
menusEvent
});

@@ -1367,3 +1373,3 @@ // CONCATENATED MODULE: ./node_modules/@vue/cli-service/lib/commands/build/entry-lib.js

/* harmony default export */ var entry_lib = __webpack_exports__["default"] = (package_0);
/* harmony default export */ var entry_lib = __webpack_exports__["default"] = (lib);

@@ -1370,0 +1376,0 @@

@@ -99,16 +99,45 @@ (function webpackUniversalModuleDefinition(root, factory) {

/***/ "21a1":
/***/ "1b6f":
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony import */ var _node_modules_vue_style_loader_index_js_ref_6_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_6_oneOf_1_1_node_modules_vue_loader_v16_dist_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_2_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_v16_dist_index_js_ref_0_1_MenusItem_vue_vue_type_style_index_0_id_1cef264a_lang_css__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("1d2f");
/* harmony import */ var _node_modules_vue_style_loader_index_js_ref_6_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_6_oneOf_1_1_node_modules_vue_loader_v16_dist_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_2_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_v16_dist_index_js_ref_0_1_MenusItem_vue_vue_type_style_index_0_id_1cef264a_lang_css__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_vue_style_loader_index_js_ref_6_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_6_oneOf_1_1_node_modules_vue_loader_v16_dist_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_2_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_v16_dist_index_js_ref_0_1_MenusItem_vue_vue_type_style_index_0_id_1cef264a_lang_css__WEBPACK_IMPORTED_MODULE_0__);
/* unused harmony reexport * */
/***/ }),
/***/ "1d2f":
/***/ (function(module, exports, __webpack_require__) {
// Imports
var ___CSS_LOADER_API_IMPORT___ = __webpack_require__("24fb");
exports = ___CSS_LOADER_API_IMPORT___(false);
// Module
exports.push([module.i, ".menus-item{display:flex;line-height:2rem;padding:0 1rem;margin:0;font-size:.8rem;outline:0;align-items:center;transition:.2s;box-sizing:border-box;list-style:none;border-bottom:1px solid transparent}.menus-item-divided{border-bottom-color:#ebeef5}.menus-item .menus-item-icon{display:flex;margin-right:.6rem;width:1rem}.menus-item .menus-item-label{flex:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.menus-item .menus-item-suffix{margin-left:1.5rem;font-size:.39rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.menus-item-available{color:#606266;cursor:pointer}.menus-item-available:hover{background:#ecf5ff;color:#409eff}.menus-item-disabled{color:#c0c4cc;cursor:not-allowed}.menus-item-active{background:#ecf5ff;color:#409eff}.menus-item-tip{font-size:9px;color:#999}", ""]);
// Exports
module.exports = exports;
// style-loader: Adds some css to the DOM by adding a <style> tag
// load the styles
var content = __webpack_require__("c26e");
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__("499e").default
var update = add("61ee5938", content, true, {"sourceMap":false,"shadowMode":false});
/***/ }),
/***/ "21f3":
/***/ (function(module, exports, __webpack_require__) {
// style-loader: Adds some css to the DOM by adding a <style> tag
// load the styles
var content = __webpack_require__("86e0");
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__("499e").default
var update = add("15551234", content, true, {"sourceMap":false,"shadowMode":false});
/***/ }),
/***/ "24fb":

@@ -481,9 +510,12 @@ /***/ (function(module, exports, __webpack_require__) {

/***/ "4db7":
/***/ (function(module, __webpack_exports__, __webpack_require__) {
/***/ "86e0":
/***/ (function(module, exports, __webpack_require__) {
"use strict";
/* harmony import */ var _node_modules_vue_style_loader_index_js_ref_6_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_6_oneOf_1_1_node_modules_vue_loader_v16_dist_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_2_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_v16_dist_index_js_ref_0_1_Menus_vue_vue_type_style_index_0_id_4450c50e_scoped_true_lang_css__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("b27b");
/* harmony import */ var _node_modules_vue_style_loader_index_js_ref_6_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_6_oneOf_1_1_node_modules_vue_loader_v16_dist_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_2_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_v16_dist_index_js_ref_0_1_Menus_vue_vue_type_style_index_0_id_4450c50e_scoped_true_lang_css__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_vue_style_loader_index_js_ref_6_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_6_oneOf_1_1_node_modules_vue_loader_v16_dist_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_2_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_v16_dist_index_js_ref_0_1_Menus_vue_vue_type_style_index_0_id_4450c50e_scoped_true_lang_css__WEBPACK_IMPORTED_MODULE_0__);
/* unused harmony reexport * */
// Imports
var ___CSS_LOADER_API_IMPORT___ = __webpack_require__("24fb");
exports = ___CSS_LOADER_API_IMPORT___(false);
// Module
exports.push([module.i, ".menus[data-v-79f25910]{position:fixed;box-shadow:0 2px 4px rgba(0,0,0,.12),0 0 6px rgba(0,0,0,.04);background:#fff;border-radius:4px;padding:8px 0;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;box-sizing:border-box}.menus_body[data-v-79f25910]{display:block}.menus-fade-enter-active[data-v-79f25910],.menus-fade-leave-active[data-v-79f25910]{transition:opacity .1s ease-in-out}.menus-fade-enter-from[data-v-79f25910],.menus-fade-leave-to[data-v-79f25910]{opacity:0}", ""]);
// Exports
module.exports = exports;

@@ -585,8 +617,8 @@

/***/ "92c7":
/***/ "c00a":
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony import */ var _node_modules_vue_style_loader_index_js_ref_6_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_6_oneOf_1_1_node_modules_vue_loader_v16_dist_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_2_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_v16_dist_index_js_ref_0_1_MenusItem_vue_vue_type_style_index_0_id_11a672fa_lang_css__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("d1aa");
/* harmony import */ var _node_modules_vue_style_loader_index_js_ref_6_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_6_oneOf_1_1_node_modules_vue_loader_v16_dist_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_2_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_v16_dist_index_js_ref_0_1_MenusItem_vue_vue_type_style_index_0_id_11a672fa_lang_css__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_vue_style_loader_index_js_ref_6_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_6_oneOf_1_1_node_modules_vue_loader_v16_dist_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_2_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_v16_dist_index_js_ref_0_1_MenusItem_vue_vue_type_style_index_0_id_11a672fa_lang_css__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var _node_modules_vue_style_loader_index_js_ref_6_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_6_oneOf_1_1_node_modules_vue_loader_v16_dist_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_2_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_v16_dist_index_js_ref_0_1_Menus_vue_vue_type_style_index_0_id_79f25910_scoped_true_lang_css__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("21f3");
/* harmony import */ var _node_modules_vue_style_loader_index_js_ref_6_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_6_oneOf_1_1_node_modules_vue_loader_v16_dist_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_2_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_v16_dist_index_js_ref_0_1_Menus_vue_vue_type_style_index_0_id_79f25910_scoped_true_lang_css__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_vue_style_loader_index_js_ref_6_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_6_oneOf_1_1_node_modules_vue_loader_v16_dist_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_2_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_v16_dist_index_js_ref_0_1_Menus_vue_vue_type_style_index_0_id_79f25910_scoped_true_lang_css__WEBPACK_IMPORTED_MODULE_0__);
/* unused harmony reexport * */

@@ -597,21 +629,5 @@

/***/ "b27b":
/***/ "c26e":
/***/ (function(module, exports, __webpack_require__) {
// style-loader: Adds some css to the DOM by adding a <style> tag
// load the styles
var content = __webpack_require__("b53e");
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__("499e").default
var update = add("3995fa16", content, true, {"sourceMap":false,"shadowMode":false});
/***/ }),
/***/ "b53e":
/***/ (function(module, exports, __webpack_require__) {
// Imports

@@ -621,3 +637,3 @@ var ___CSS_LOADER_API_IMPORT___ = __webpack_require__("24fb");

// Module
exports.push([module.i, ".menus[data-v-4450c50e]{position:fixed;box-shadow:0 2px 4px rgba(0,0,0,.12),0 0 6px rgba(0,0,0,.04);background:#fff;border-radius:4px;padding:8px 0;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;box-sizing:border-box}.menus_body[data-v-4450c50e]{display:block}.menus-fade-enter-active[data-v-4450c50e],.menus-fade-leave-active[data-v-4450c50e]{transition:opacity .1s ease-in-out}.menus-fade-enter-from[data-v-4450c50e],.menus-fade-leave-to[data-v-4450c50e]{opacity:0}", ""]);
exports.push([module.i, ".menus-item{display:flex;line-height:2rem;padding:0 1rem;margin:0;font-size:.8rem;outline:0;align-items:center;transition:.2s;box-sizing:border-box;list-style:none;border-bottom:1px solid transparent}.menus-item-divided{border-bottom-color:#ebeef5}.menus-item .menus-item-icon{display:flex;margin-right:.6rem;width:1rem}.menus-item .menus-item-label{flex:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.menus-item .menus-item-suffix{margin-left:1.5rem;font-size:.39rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.menus-item-available{color:#606266;cursor:pointer}.menus-item-available:hover{background:#ecf5ff;color:#409eff}.menus-item-disabled{color:#c0c4cc;cursor:not-allowed}.menus-item-active{background:#ecf5ff;color:#409eff}.menus-item-tip{font-size:9px;color:#999}", ""]);
// Exports

@@ -629,18 +645,2 @@ module.exports = exports;

/***/ "d1aa":
/***/ (function(module, exports, __webpack_require__) {
// style-loader: Adds some css to the DOM by adding a <style> tag
// load the styles
var content = __webpack_require__("21a1");
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__("499e").default
var update = add("10b4684a", content, true, {"sourceMap":false,"shadowMode":false});
/***/ }),
/***/ "fb15":

@@ -685,11 +685,11 @@ /***/ (function(module, __webpack_exports__, __webpack_require__) {

// CONCATENATED MODULE: ./node_modules/vue-loader-v16/dist/templateLoader.js??ref--5!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader-v16/dist??ref--0-1!./package/components/Menus.vue?vue&type=template&id=4450c50e&scoped=true
// CONCATENATED MODULE: ./node_modules/vue-loader-v16/dist/templateLoader.js??ref--5!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader-v16/dist??ref--0-1!./lib/components/Menus.vue?vue&type=template&id=79f25910&scoped=true
const _withId = /*#__PURE__*/Object(external_commonjs_vue_commonjs2_vue_root_Vue_["withScopeId"])("data-v-4450c50e")
const _withId = /*#__PURE__*/Object(external_commonjs_vue_commonjs2_vue_root_Vue_["withScopeId"])("data-v-79f25910")
Object(external_commonjs_vue_commonjs2_vue_root_Vue_["pushScopeId"])("data-v-4450c50e")
Object(external_commonjs_vue_commonjs2_vue_root_Vue_["pushScopeId"])("data-v-79f25910")
const _hoisted_1 = { class: "menus_body" }
Object(external_commonjs_vue_commonjs2_vue_root_Vue_["popScopeId"])()
const Menusvue_type_template_id_4450c50e_scoped_true_render = /*#__PURE__*/_withId(function render(_ctx, _cache, $props, $setup, $data, $options) {
const Menusvue_type_template_id_79f25910_scoped_true_render = /*#__PURE__*/_withId(function render(_ctx, _cache, $props, $setup, $data, $options) {
const _component_MenusItem = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["resolveComponent"])("MenusItem")

@@ -766,8 +766,8 @@

})
// CONCATENATED MODULE: ./package/components/Menus.vue?vue&type=template&id=4450c50e&scoped=true
// CONCATENATED MODULE: ./lib/components/Menus.vue?vue&type=template&id=79f25910&scoped=true
// CONCATENATED MODULE: ./node_modules/vue-loader-v16/dist/templateLoader.js??ref--5!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader-v16/dist??ref--0-1!./package/components/MenusItem.vue?vue&type=template&id=11a672fa
// CONCATENATED MODULE: ./node_modules/vue-loader-v16/dist/templateLoader.js??ref--5!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader-v16/dist??ref--0-1!./lib/components/MenusItem.vue?vue&type=template&id=1cef264a
const MenusItemvue_type_template_id_11a672fa_hoisted_1 = {
const MenusItemvue_type_template_id_1cef264a_hoisted_1 = {
key: 0,

@@ -784,3 +784,3 @@ class: "menus-item-icon"

function MenusItemvue_type_template_id_11a672fa_render(_ctx, _cache, $props, $setup, $data, $options) {
function MenusItemvue_type_template_id_1cef264a_render(_ctx, _cache, $props, $setup, $data, $options) {
const _component_MenusIcon = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["resolveComponent"])("MenusIcon")

@@ -810,3 +810,3 @@

(_ctx.hasIcon)
? (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createBlock"])("div", MenusItemvue_type_template_id_11a672fa_hoisted_1, [
? (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createBlock"])("div", MenusItemvue_type_template_id_1cef264a_hoisted_1, [
(_ctx.slots.icon)

@@ -863,5 +863,5 @@ ? Object(external_commonjs_vue_commonjs2_vue_root_Vue_["renderSlot"])(_ctx.$slots, "icon", {

}
// CONCATENATED MODULE: ./package/components/MenusItem.vue?vue&type=template&id=11a672fa
// CONCATENATED MODULE: ./lib/components/MenusItem.vue?vue&type=template&id=1cef264a
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader-v16/dist??ref--0-1!./package/components/MenusIcon.vue?vue&type=script&lang=js
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader-v16/dist??ref--0-1!./lib/components/MenusIcon.vue?vue&type=script&lang=js

@@ -890,5 +890,5 @@

// CONCATENATED MODULE: ./package/components/MenusIcon.vue?vue&type=script&lang=js
// CONCATENATED MODULE: ./lib/components/MenusIcon.vue?vue&type=script&lang=js
// CONCATENATED MODULE: ./package/components/MenusIcon.vue
// CONCATENATED MODULE: ./lib/components/MenusIcon.vue

@@ -898,3 +898,3 @@

/* harmony default export */ var MenusIcon = (MenusIconvue_type_script_lang_js);
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader-v16/dist??ref--0-1!./package/components/MenusItem.vue?vue&type=script&lang=js
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader-v16/dist??ref--0-1!./lib/components/MenusItem.vue?vue&type=script&lang=js

@@ -963,8 +963,8 @@

// CONCATENATED MODULE: ./package/components/MenusItem.vue?vue&type=script&lang=js
// CONCATENATED MODULE: ./lib/components/MenusItem.vue?vue&type=script&lang=js
// EXTERNAL MODULE: ./package/components/MenusItem.vue?vue&type=style&index=0&id=11a672fa&lang=css
var MenusItemvue_type_style_index_0_id_11a672fa_lang_css = __webpack_require__("92c7");
// EXTERNAL MODULE: ./lib/components/MenusItem.vue?vue&type=style&index=0&id=1cef264a&lang=css
var MenusItemvue_type_style_index_0_id_1cef264a_lang_css = __webpack_require__("1b6f");
// CONCATENATED MODULE: ./package/components/MenusItem.vue
// CONCATENATED MODULE: ./lib/components/MenusItem.vue

@@ -975,6 +975,6 @@

MenusItemvue_type_script_lang_js.render = MenusItemvue_type_template_id_11a672fa_render
MenusItemvue_type_script_lang_js.render = MenusItemvue_type_template_id_1cef264a_render
/* harmony default export */ var MenusItem = (MenusItemvue_type_script_lang_js);
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader-v16/dist??ref--0-1!./package/components/Menus.vue?vue&type=script&lang=js
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader-v16/dist??ref--0-1!./lib/components/Menus.vue?vue&type=script&lang=js

@@ -1166,8 +1166,8 @@

// CONCATENATED MODULE: ./package/components/Menus.vue?vue&type=script&lang=js
// CONCATENATED MODULE: ./lib/components/Menus.vue?vue&type=script&lang=js
// EXTERNAL MODULE: ./package/components/Menus.vue?vue&type=style&index=0&id=4450c50e&scoped=true&lang=css
var Menusvue_type_style_index_0_id_4450c50e_scoped_true_lang_css = __webpack_require__("4db7");
// EXTERNAL MODULE: ./lib/components/Menus.vue?vue&type=style&index=0&id=79f25910&scoped=true&lang=css
var Menusvue_type_style_index_0_id_79f25910_scoped_true_lang_css = __webpack_require__("c00a");
// CONCATENATED MODULE: ./package/components/Menus.vue
// CONCATENATED MODULE: ./lib/components/Menus.vue

@@ -1178,7 +1178,7 @@

Menusvue_type_script_lang_js.render = Menusvue_type_template_id_4450c50e_scoped_true_render
Menusvue_type_script_lang_js.__scopeId = "data-v-4450c50e"
Menusvue_type_script_lang_js.render = Menusvue_type_template_id_79f25910_scoped_true_render
Menusvue_type_script_lang_js.__scopeId = "data-v-79f25910"
/* harmony default export */ var Menus = (Menusvue_type_script_lang_js);
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader-v16/dist??ref--0-1!./package/components/Vue3Menus.vue?vue&type=script&lang=js
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader-v16/dist??ref--0-1!./lib/components/Vue3Menus.vue?vue&type=script&lang=js

@@ -1268,5 +1268,5 @@

// CONCATENATED MODULE: ./package/components/Vue3Menus.vue?vue&type=script&lang=js
// CONCATENATED MODULE: ./lib/components/Vue3Menus.vue?vue&type=script&lang=js
// CONCATENATED MODULE: ./package/components/Vue3Menus.vue
// CONCATENATED MODULE: ./lib/components/Vue3Menus.vue

@@ -1276,3 +1276,3 @@

/* harmony default export */ var Vue3Menus = (Vue3Menusvue_type_script_lang_js);
// CONCATENATED MODULE: ./package/event.js
// CONCATENATED MODULE: ./lib/event.js

@@ -1319,5 +1319,5 @@

/* harmony default export */ var package_event = ($menusEvent);
/* harmony default export */ var lib_event = ($menusEvent);
// CONCATENATED MODULE: ./package/index.js
// CONCATENATED MODULE: ./lib/index.js

@@ -1333,8 +1333,8 @@

if (arg === undefined || arg === 'right') {
el.addEventListener("contextmenu", package_event.bind(instance, value));
el.addEventListener("contextmenu", lib_event.bind(instance, value));
} else if (arg === 'left') {
el.addEventListener("click", package_event.bind(instance, value));
el.addEventListener("click", lib_event.bind(instance, value));
} else if (arg === 'all') {
el.addEventListener("contextmenu", package_event.bind(instance, value));
el.addEventListener("click", package_event.bind(instance, value));
el.addEventListener("contextmenu", lib_event.bind(instance, value));
el.addEventListener("click", lib_event.bind(instance, value));
}

@@ -1344,8 +1344,8 @@ },

if (arg === undefined || arg === 'right') {
el.removeEventListener("contextmenu", package_event);
el.removeEventListener("contextmenu", lib_event);
} else if (arg === 'left') {
el.removeEventListener("click", package_event);
el.removeEventListener("click", lib_event);
} else if (arg === 'all') {
el.removeEventListener("contextmenu", package_event);
el.removeEventListener("click", package_event);
el.removeEventListener("contextmenu", lib_event);
el.removeEventListener("click", lib_event);
}

@@ -1358,3 +1358,3 @@ }

app.directive('menus', directive);
app.config.globalProperties.$menusEvent = (event, menus) => package_event(menus, event);
app.config.globalProperties.$menusEvent = (event, menus) => lib_event(menus, event);
}

@@ -1366,7 +1366,13 @@

const menusEvent = (event, menus) => package_event(menus, event);
const menusEvent = (event, menus) => lib_event(menus, event);
/* harmony default export */ var package_0 = (install);
/* harmony default export */ var lib = ({
version: '1.0.8',
install,
Vue3Menus: Vue3Menus,
directive,
menusEvent
});

@@ -1376,3 +1382,3 @@ // CONCATENATED MODULE: ./node_modules/@vue/cli-service/lib/commands/build/entry-lib.js

/* harmony default export */ var entry_lib = __webpack_exports__["default"] = (package_0);
/* harmony default export */ var entry_lib = __webpack_exports__["default"] = (lib);

@@ -1379,0 +1385,0 @@

@@ -1,2 +0,2 @@

(function(e,t){"object"===typeof exports&&"object"===typeof module?module.exports=t(require("vue")):"function"===typeof define&&define.amd?define([],t):"object"===typeof exports?exports["vue3-menus"]=t(require("vue")):e["vue3-menus"]=t(e["Vue"])})("undefined"!==typeof self?self:this,(function(e){return function(e){var t={};function n(o){if(t[o])return t[o].exports;var i=t[o]={i:o,l:!1,exports:{}};return e[o].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,o){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},n.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(o,i,function(t){return e[t]}.bind(null,i));return o},n.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s="fb15")}({"21a1":function(e,t,n){var o=n("24fb");t=o(!1),t.push([e.i,".menus-item{display:flex;line-height:2rem;padding:0 1rem;margin:0;font-size:.8rem;outline:0;align-items:center;transition:.2s;box-sizing:border-box;list-style:none;border-bottom:1px solid transparent}.menus-item-divided{border-bottom-color:#ebeef5}.menus-item .menus-item-icon{display:flex;margin-right:.6rem;width:1rem}.menus-item .menus-item-label{flex:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.menus-item .menus-item-suffix{margin-left:1.5rem;font-size:.39rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.menus-item-available{color:#606266;cursor:pointer}.menus-item-available:hover{background:#ecf5ff;color:#409eff}.menus-item-disabled{color:#c0c4cc;cursor:not-allowed}.menus-item-active{background:#ecf5ff;color:#409eff}.menus-item-tip{font-size:9px;color:#999}",""]),e.exports=t},"24fb":function(e,t,n){"use strict";function o(e,t){var n=e[1]||"",o=e[3];if(!o)return n;if(t&&"function"===typeof btoa){var r=i(o),c=o.sources.map((function(e){return"/*# sourceURL=".concat(o.sourceRoot||"").concat(e," */")}));return[n].concat(c).concat([r]).join("\n")}return[n].join("\n")}function i(e){var t=btoa(unescape(encodeURIComponent(JSON.stringify(e)))),n="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(t);return"/*# ".concat(n," */")}e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n=o(t,e);return t[2]?"@media ".concat(t[2]," {").concat(n,"}"):n})).join("")},t.i=function(e,n,o){"string"===typeof e&&(e=[[null,e,""]]);var i={};if(o)for(var r=0;r<this.length;r++){var c=this[r][0];null!=c&&(i[c]=!0)}for(var s=0;s<e.length;s++){var l=[].concat(e[s]);o&&i[l[0]]||(n&&(l[2]?l[2]="".concat(n," and ").concat(l[2]):l[2]=n),t.push(l))}},t}},"499e":function(e,t,n){"use strict";function o(e,t){for(var n=[],o={},i=0;i<t.length;i++){var r=t[i],c=r[0],s=r[1],l=r[2],a=r[3],u={id:e+":"+i,css:s,media:l,sourceMap:a};o[c]?o[c].parts.push(u):n.push(o[c]={id:c,parts:[u]})}return n}n.r(t),n.d(t,"default",(function(){return p}));var i="undefined"!==typeof document;if("undefined"!==typeof DEBUG&&DEBUG&&!i)throw new Error("vue-style-loader cannot be used in a non-browser environment. Use { target: 'node' } in your Webpack config to indicate a server-rendering environment.");var r={},c=i&&(document.head||document.getElementsByTagName("head")[0]),s=null,l=0,a=!1,u=function(){},d=null,m="data-vue-ssr-id",f="undefined"!==typeof navigator&&/msie [6-9]\b/.test(navigator.userAgent.toLowerCase());function p(e,t,n,i){a=n,d=i||{};var c=o(e,t);return v(c),function(t){for(var n=[],i=0;i<c.length;i++){var s=c[i],l=r[s.id];l.refs--,n.push(l)}t?(c=o(e,t),v(c)):c=[];for(i=0;i<n.length;i++){l=n[i];if(0===l.refs){for(var a=0;a<l.parts.length;a++)l.parts[a]();delete r[l.id]}}}}function v(e){for(var t=0;t<e.length;t++){var n=e[t],o=r[n.id];if(o){o.refs++;for(var i=0;i<o.parts.length;i++)o.parts[i](n.parts[i]);for(;i<n.parts.length;i++)o.parts.push(h(n.parts[i]));o.parts.length>n.parts.length&&(o.parts.length=n.parts.length)}else{var c=[];for(i=0;i<n.parts.length;i++)c.push(h(n.parts[i]));r[n.id]={id:n.id,refs:1,parts:c}}}}function b(){var e=document.createElement("style");return e.type="text/css",c.appendChild(e),e}function h(e){var t,n,o=document.querySelector("style["+m+'~="'+e.id+'"]');if(o){if(a)return u;o.parentNode.removeChild(o)}if(f){var i=l++;o=s||(s=b()),t=x.bind(null,o,i,!1),n=x.bind(null,o,i,!0)}else o=b(),t=g.bind(null,o),n=function(){o.parentNode.removeChild(o)};return t(e),function(o){if(o){if(o.css===e.css&&o.media===e.media&&o.sourceMap===e.sourceMap)return;t(e=o)}else n()}}var y=function(){var e=[];return function(t,n){return e[t]=n,e.filter(Boolean).join("\n")}}();function x(e,t,n,o){var i=n?"":o.css;if(e.styleSheet)e.styleSheet.cssText=y(t,i);else{var r=document.createTextNode(i),c=e.childNodes;c[t]&&e.removeChild(c[t]),c.length?e.insertBefore(r,c[t]):e.appendChild(r)}}function g(e,t){var n=t.css,o=t.media,i=t.sourceMap;if(o&&e.setAttribute("media",o),d.ssrId&&e.setAttribute(m,t.id),i&&(n+="\n/*# sourceURL="+i.sources[0]+" */",n+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(i))))+" */"),e.styleSheet)e.styleSheet.cssText=n;else{while(e.firstChild)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(n))}}},"4db7":function(e,t,n){"use strict";n("b27b")},8875:function(e,t,n){var o,i,r;(function(n,c){i=[],o=c,r="function"===typeof o?o.apply(t,i):o,void 0===r||(e.exports=r)})("undefined"!==typeof self&&self,(function(){function e(){var t=Object.getOwnPropertyDescriptor(document,"currentScript");if(!t&&"currentScript"in document&&document.currentScript)return document.currentScript;if(t&&t.get!==e&&document.currentScript)return document.currentScript;try{throw new Error}catch(f){var n,o,i,r=/.*at [^(]*\((.*):(.+):(.+)\)$/gi,c=/@([^@]*):(\d+):(\d+)\s*$/gi,s=r.exec(f.stack)||c.exec(f.stack),l=s&&s[1]||!1,a=s&&s[2]||!1,u=document.location.href.replace(document.location.hash,""),d=document.getElementsByTagName("script");l===u&&(n=document.documentElement.outerHTML,o=new RegExp("(?:[^\\n]+?\\n){0,"+(a-2)+"}[^<]*<script>([\\d\\D]*?)<\\/script>[\\d\\D]*","i"),i=n.replace(o,"$1").trim());for(var m=0;m<d.length;m++){if("interactive"===d[m].readyState)return d[m];if(d[m].src===l)return d[m];if(l===u&&d[m].innerHTML&&d[m].innerHTML.trim()===i)return d[m]}return null}}return e}))},"8bbf":function(t,n){t.exports=e},"92c7":function(e,t,n){"use strict";n("d1aa")},b27b:function(e,t,n){var o=n("b53e");o.__esModule&&(o=o.default),"string"===typeof o&&(o=[[e.i,o,""]]),o.locals&&(e.exports=o.locals);var i=n("499e").default;i("3995fa16",o,!0,{sourceMap:!1,shadowMode:!1})},b53e:function(e,t,n){var o=n("24fb");t=o(!1),t.push([e.i,".menus[data-v-4450c50e]{position:fixed;box-shadow:0 2px 4px rgba(0,0,0,.12),0 0 6px rgba(0,0,0,.04);background:#fff;border-radius:4px;padding:8px 0;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;box-sizing:border-box}.menus_body[data-v-4450c50e]{display:block}.menus-fade-enter-active[data-v-4450c50e],.menus-fade-leave-active[data-v-4450c50e]{transition:opacity .1s ease-in-out}.menus-fade-enter-from[data-v-4450c50e],.menus-fade-leave-to[data-v-4450c50e]{opacity:0}",""]),e.exports=t},d1aa:function(e,t,n){var o=n("21a1");o.__esModule&&(o=o.default),"string"===typeof o&&(o=[[e.i,o,""]]),o.locals&&(e.exports=o.locals);var i=n("499e").default;i("10b4684a",o,!0,{sourceMap:!1,shadowMode:!1})},fb15:function(e,t,n){"use strict";if(n.r(t),n.d(t,"Vue3Menus",(function(){return k})),n.d(t,"directive",(function(){return C})),n.d(t,"menusEvent",(function(){return B})),"undefined"!==typeof window){var o=window.document.currentScript,i=n("8875");o=i(),"currentScript"in document||Object.defineProperty(document,"currentScript",{get:i});var r=o&&o.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);r&&(n.p=r[1])}var c=n("8bbf");const s=Object(c["withScopeId"])("data-v-4450c50e");Object(c["pushScopeId"])("data-v-4450c50e");const l={class:"menus_body"};Object(c["popScopeId"])();const a=s((function(e,t,n,o,i,r){const a=Object(c["resolveComponent"])("MenusItem");return Object(c["openBlock"])(),Object(c["createBlock"])(c["Teleport"],{to:"body"},[Object(c["createVNode"])(c["Transition"],{name:"menus-fade"},{default:s(()=>[e.open?(Object(c["openBlock"])(),Object(c["createBlock"])("div",{key:0,ref:"menusRef",class:"menus",style:{...e.menusStyle,top:e.style.top+"px",left:e.style.left+"px",minWidth:e.style.minWidth,maxWidth:e.style.maxWidth,zIndex:e.style.zIndex},onContextmenu:t[1]||(t[1]=e=>e.preventDefault()),onMousewheel:t[2]||(t[2]=Object(c["withModifiers"])(()=>{},["stop"]))},[Object(c["createVNode"])("div",l,[(Object(c["openBlock"])(!0),Object(c["createBlock"])(c["Fragment"],null,Object(c["renderList"])(e.menus,(t,n)=>(Object(c["openBlock"])(),Object(c["createBlock"])(c["Fragment"],{key:n},[t.hidden?Object(c["createCommentVNode"])("",!0):(Object(c["openBlock"])(),Object(c["createBlock"])(a,{key:0,item:t,index:n,activeIndex:e.activeIndex,onMenusEnter:e.menusEnter,menusItemClass:e.menusItemClass,hasIcon:e.hasIcon},Object(c["createSlots"])({_:2},[e.slots.default?{name:"default",fn:s(({item:t})=>[Object(c["renderSlot"])(e.$slots,"default",{item:t})])}:void 0,!e.slots.default&&e.slots.icon?{name:"icon",fn:s(({item:t})=>[Object(c["renderSlot"])(e.$slots,"icon",{item:t})])}:void 0,!e.slots.default&&e.slots.label?{name:"label",fn:s(({item:t})=>[Object(c["renderSlot"])(e.$slots,"label",{item:t})])}:void 0,!e.slots.default&&e.slots.suffix?{name:"suffix",fn:s(({item:t})=>[Object(c["renderSlot"])(e.$slots,"suffix",{item:t})])}:void 0]),1032,["item","index","activeIndex","onMenusEnter","menusItemClass","hasIcon"]))],64))),128))])],36)):Object(c["createCommentVNode"])("",!0)]),_:1})])})),u={key:0,class:"menus-item-icon"},d={class:"menus-item-label"},m={class:"menus-item-suffix"},f=Object(c["createTextVNode"])("▶"),p={key:3,class:"menus-item-tip"};function v(e,t,n,o,i,r){const s=Object(c["resolveComponent"])("MenusIcon");return e.slots.default?(Object(c["openBlock"])(),Object(c["createBlock"])("div",{key:0,onMouseenter:t[1]||(t[1]=t=>e.menusEnter(t,e.item)),onClick:t[2]||(t[2]=t=>e.menusClick(t,e.item)),onContextmenu:t[3]||(t[3]=t=>e.menusClick(t,e.item))},[Object(c["renderSlot"])(e.$slots,"default",{item:{activeIndex:e.activeIndex,item:e.item}})],32)):(Object(c["openBlock"])(),Object(c["createBlock"])("div",{key:1,onMouseenter:t[4]||(t[4]=t=>e.menusEnter(t,e.item)),onClick:t[5]||(t[5]=t=>e.menusClick(t,e.item)),onContextmenu:t[6]||(t[6]=t=>e.menusClick(t,e.item)),style:e.item.style?e.item.style:{},class:["menus-item",e.item.disabled?"menus-item-disabled":"menus-item-available",e.item.divided?"menus-divided":null,e.item.disabled||e.activeIndex!==e.index?null:"menus-item-active",e.menusItemClass]},[e.hasIcon?(Object(c["openBlock"])(),Object(c["createBlock"])("div",u,[e.slots.icon?Object(c["renderSlot"])(e.$slots,"icon",{key:0,item:{activeIndex:e.activeIndex,item:e.item}}):e.item.icon?(Object(c["openBlock"])(),Object(c["createBlock"])(c["Fragment"],{key:1},["string"===typeof e.item.icon?(Object(c["openBlock"])(),Object(c["createBlock"])("span",{key:0,innerHTML:e.item.icon},null,8,["innerHTML"])):(Object(c["openBlock"])(),Object(c["createBlock"])(s,{key:1,options:e.item.icon},null,8,["options"]))],64)):Object(c["createCommentVNode"])("",!0)])):Object(c["createCommentVNode"])("",!0),Object(c["createVNode"])("span",d,[e.slots.label?Object(c["renderSlot"])(e.$slots,"label",{key:0,item:{activeIndex:e.activeIndex,item:e.item}}):(Object(c["openBlock"])(),Object(c["createBlock"])(c["Fragment"],{key:1},[Object(c["createTextVNode"])(Object(c["toDisplayString"])(e.item.label),1)],64))]),Object(c["createVNode"])("div",m,[e.item.children&&e.slots.suffix?Object(c["renderSlot"])(e.$slots,"suffix",{key:0,item:{activeIndex:e.activeIndex,item:e.item}}):e.item.children?(Object(c["openBlock"])(),Object(c["createBlock"])(c["Fragment"],{key:1},[f],64)):e.item.tip&&e.slots.suffix?Object(c["renderSlot"])(e.$slots,"suffix",{key:2,item:{activeIndex:e.activeIndex,item:e.item}}):e.item.tip?(Object(c["openBlock"])(),Object(c["createBlock"])("span",p,Object(c["toDisplayString"])(e.item.tip),1)):Object(c["createCommentVNode"])("",!0)])],38))}var b=Object(c["defineComponent"])({name:"Vue3Menus",props:{options:{type:[Function,Object],default:{}}},render(){return"function"===typeof this.$props.options?Object(c["h"])(this.$props.options):"function"==typeof this.$props.options.node||"object"==typeof this.$props.options.node?Object(c["h"])(this.$props.options.node,this.$props.options.option):"object"!==typeof this.$props.options||this.$props.options.node?null:Object(c["h"])(this.$props.options)}}),h=b,y=Object(c["defineComponent"])({name:"menus-item",components:{MenusIcon:h},props:{menusItemClass:{type:String,default:null},hasIcon:{type:Boolean,default:!1},item:{type:Object,default:{}},index:{type:Number,default:0},activeIndex:{type:Number,default:-1}},setup(e,{emit:t,slots:n}){function o(n,o){t("menusEnter",n,o,e.index),n.preventDefault()}function i(e,t){if(e.preventDefault(),t.disabled)e.stopPropagation();else if(t&&!t.disabled&&!t.hidden&&"function"===typeof t.click){const n=t.click(t);!1!==n&&null!==n||e.stopPropagation()}}return{slots:n,menusEnter:o,menusClick:i}}});n("92c7");y.render=v;var x=y,g=Object(c["defineComponent"])({name:"menus",components:{MenusItem:x},props:{menus:{type:Array,default:[]},menusStyle:{type:Object,default:{}},menusItemClass:{type:String,default:null},event:{type:Object,default:{}},position:{type:Object,default:{}},minWidth:{type:[Number,String],default:"none"},maxWidth:{type:[Number,String],default:"none"},zIndex:{type:[Number,String],default:3},direction:{type:String,default:"right"},open:{type:Boolean,default:!1}},setup(e,{slots:t}){const n={},o=globalThis.document.documentElement.clientWidth,i=globalThis.document.documentElement.clientHeight,r=e.position.x&&e.position.y?Object(c["ref"])(e.position):Object(c["ref"])({x:e.event.clientX,y:e.event.clientY,width:0,height:0}),s=Object(c["ref"])(null),l=Object(c["ref"])({left:0,top:0,minWidth:e.minWidth+"px",maxWidth:"none"==e.maxWidth?e.maxWidth:e.maxWidth+"px",zIndex:e.zIndex}),a=Object(c["ref"])(e.direction),u=Object(c["ref"])(-1),d=Object(c["ref"])(!1),m=Object(c["ref"])(!1);function f(e){l.value.left=r.value.x-e,a.value="left",l.value.left<0&&(a.value="right",0===r.value.width||void 0===r.value.width?l.value.left=0:l.value.left=r.valuen.x+r.value.width)}function p(e,t){l.value.left=r.value.x+r.value.width,a.value="right",l.value.left+t>e&&(a.value="left",0===r.value.width||void 0===r.value.width?l.value.left=e-t:l.value.left=r.value.x-t)}function v(o,i,r){if(u.value=r,i.disabled)return;if(n.instance){if(n.index===r)return;n.instance.close.bind(n.instance)(),n.instance=null,n.index=null}if(!i.children)return;const s=o.target.getBoundingClientRect(),l=Object(c["h"])(j,{...e,menus:i.children||[],direction:a.value,position:{x:s.x+3,y:s.y-8,width:s.width-6,height:s.width}},t),d=Object(c["createApp"])(l);n.instance=d.mount(globalThis.document.createElement("div")),n.instance.$unmount=d.unmount,n.index=r,o.preventDefault()}function b(){d.value=!1,this&&this.ctx&&this.ctx.instance&&this.ctx.instance.close(),Object(c["nextTick"])(()=>{this.$unmount()&&this.$unmount()})}return Object(c["onMounted"])(()=>{d.value=!0,e.menus.forEach(e=>{m.value=m.value||void 0!==e.icon,m.value}),Object(c["nextTick"])(()=>{const e=s.value.offsetWidth,t=s.value.offsetHeight;"left"===a.value?f(e):p(o,e),l.value.top=r.value.y,r.value.y+t>i&&(0===r.value.height||void 0===r.value.height?l.value.top=r.value.y-t:l.value.top=i-t)})}),{open:d,hasIcon:m,menusRef:s,style:l,close:b,menusEnter:v,ctx:n,activeIndex:u,slots:t}}});n("4db7");g.render=a,g.__scopeId="data-v-4450c50e";var j=g,O=Object(c["defineComponent"])({name:"Vue3Menus",props:{menus:{type:Array,default:[]},menusStyle:{type:Object,default:{}},menusItemClass:{type:String,default:null},event:{type:Object,default:{}},position:{type:Object,default:{}},minWidth:{type:[Number,String],default:"none"},maxWidth:{type:[Number,String],default:"none"},zIndex:{type:[Number,String],default:2},open:{type:Boolean,default:!1}},setup(e,{emit:t,slots:n}){let o=null;function i(){t("update:open",!1),o&&(o.close(),o=null)}return Object(c["watch"])(()=>e.open,t=>{if(t){o&&(o.close(),o=null);const t=Object(c["h"])(j,{...e},n),r=Object(c["createApp"])(t);o=r.mount(globalThis.document.createElement("div")),o.$unmount=r.unmount,setTimeout(()=>{globalThis.document.addEventListener("click",i),globalThis.document.addEventListener("contextmenu",i),globalThis.document.addEventListener("wheel",i)},0)}else globalThis.document.removeEventListener("click",i),globalThis.document.removeEventListener("contextmenu",i),globalThis.document.removeEventListener("wheel",i)}),{}},render(){return null}}),k=O;let w=null;function S(){w&&(w.close(),w=null),globalThis.document.removeEventListener("click",S),globalThis.document.removeEventListener("contextmenu",S),globalThis.document.removeEventListener("wheel",S)}function E(e,t){const n=e||{};w&&(w.close(),w=null,globalThis.document.removeEventListener("click",S),globalThis.document.removeEventListener("contextmenu",S),globalThis.document.removeEventListener("wheel",S));let o=Object(c["createApp"])(j,{event:t,...n});return w=o.mount(globalThis.document.createElement("div")),w.$unmount=o.unmount,(void 0==n.prevent||n.prevent)&&t.preventDefault(),setTimeout(()=>{globalThis.document.addEventListener("click",S),globalThis.document.addEventListener("contextmenu",S),globalThis.document.addEventListener("wheel",S)},0),w}var I=E;k.install=(e,t={})=>{e.component(t.name||k.name,k)};const C={mounted(e,{value:t,arg:n,instance:o}){void 0===n||"right"===n?e.addEventListener("contextmenu",I.bind(o,t)):"left"===n?e.addEventListener("click",I.bind(o,t)):"all"===n&&(e.addEventListener("contextmenu",I.bind(o,t)),e.addEventListener("click",I.bind(o,t)))},unmounted(e,{arg:t}){void 0===t||"right"===t?e.removeEventListener("contextmenu",I):"left"===t?e.removeEventListener("click",I):"all"===t&&(e.removeEventListener("contextmenu",I),e.removeEventListener("click",I))}},T=function(e,t={}){e.component(t.name||k.name,k),e.directive("menus",C),e.config.globalProperties.$menusEvent=(e,t)=>I(t,e)};"undefined"!==typeof window&&window.Vue&&(window.Vue3Menus=T);const B=(e,t)=>I(t,e);var M=T;t["default"]=M}})}));
(function(e,t){"object"===typeof exports&&"object"===typeof module?module.exports=t(require("vue")):"function"===typeof define&&define.amd?define([],t):"object"===typeof exports?exports["vue3-menus"]=t(require("vue")):e["vue3-menus"]=t(e["Vue"])})("undefined"!==typeof self?self:this,(function(e){return function(e){var t={};function n(o){if(t[o])return t[o].exports;var i=t[o]={i:o,l:!1,exports:{}};return e[o].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,o){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},n.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(o,i,function(t){return e[t]}.bind(null,i));return o},n.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s="fb15")}({"1b6f":function(e,t,n){"use strict";n("1d2f")},"1d2f":function(e,t,n){var o=n("c26e");o.__esModule&&(o=o.default),"string"===typeof o&&(o=[[e.i,o,""]]),o.locals&&(e.exports=o.locals);var i=n("499e").default;i("61ee5938",o,!0,{sourceMap:!1,shadowMode:!1})},"21f3":function(e,t,n){var o=n("86e0");o.__esModule&&(o=o.default),"string"===typeof o&&(o=[[e.i,o,""]]),o.locals&&(e.exports=o.locals);var i=n("499e").default;i("15551234",o,!0,{sourceMap:!1,shadowMode:!1})},"24fb":function(e,t,n){"use strict";function o(e,t){var n=e[1]||"",o=e[3];if(!o)return n;if(t&&"function"===typeof btoa){var r=i(o),c=o.sources.map((function(e){return"/*# sourceURL=".concat(o.sourceRoot||"").concat(e," */")}));return[n].concat(c).concat([r]).join("\n")}return[n].join("\n")}function i(e){var t=btoa(unescape(encodeURIComponent(JSON.stringify(e)))),n="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(t);return"/*# ".concat(n," */")}e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n=o(t,e);return t[2]?"@media ".concat(t[2]," {").concat(n,"}"):n})).join("")},t.i=function(e,n,o){"string"===typeof e&&(e=[[null,e,""]]);var i={};if(o)for(var r=0;r<this.length;r++){var c=this[r][0];null!=c&&(i[c]=!0)}for(var s=0;s<e.length;s++){var l=[].concat(e[s]);o&&i[l[0]]||(n&&(l[2]?l[2]="".concat(n," and ").concat(l[2]):l[2]=n),t.push(l))}},t}},"499e":function(e,t,n){"use strict";function o(e,t){for(var n=[],o={},i=0;i<t.length;i++){var r=t[i],c=r[0],s=r[1],l=r[2],u=r[3],a={id:e+":"+i,css:s,media:l,sourceMap:u};o[c]?o[c].parts.push(a):n.push(o[c]={id:c,parts:[a]})}return n}n.r(t),n.d(t,"default",(function(){return p}));var i="undefined"!==typeof document;if("undefined"!==typeof DEBUG&&DEBUG&&!i)throw new Error("vue-style-loader cannot be used in a non-browser environment. Use { target: 'node' } in your Webpack config to indicate a server-rendering environment.");var r={},c=i&&(document.head||document.getElementsByTagName("head")[0]),s=null,l=0,u=!1,a=function(){},d=null,m="data-vue-ssr-id",f="undefined"!==typeof navigator&&/msie [6-9]\b/.test(navigator.userAgent.toLowerCase());function p(e,t,n,i){u=n,d=i||{};var c=o(e,t);return v(c),function(t){for(var n=[],i=0;i<c.length;i++){var s=c[i],l=r[s.id];l.refs--,n.push(l)}t?(c=o(e,t),v(c)):c=[];for(i=0;i<n.length;i++){l=n[i];if(0===l.refs){for(var u=0;u<l.parts.length;u++)l.parts[u]();delete r[l.id]}}}}function v(e){for(var t=0;t<e.length;t++){var n=e[t],o=r[n.id];if(o){o.refs++;for(var i=0;i<o.parts.length;i++)o.parts[i](n.parts[i]);for(;i<n.parts.length;i++)o.parts.push(h(n.parts[i]));o.parts.length>n.parts.length&&(o.parts.length=n.parts.length)}else{var c=[];for(i=0;i<n.parts.length;i++)c.push(h(n.parts[i]));r[n.id]={id:n.id,refs:1,parts:c}}}}function b(){var e=document.createElement("style");return e.type="text/css",c.appendChild(e),e}function h(e){var t,n,o=document.querySelector("style["+m+'~="'+e.id+'"]');if(o){if(u)return a;o.parentNode.removeChild(o)}if(f){var i=l++;o=s||(s=b()),t=x.bind(null,o,i,!1),n=x.bind(null,o,i,!0)}else o=b(),t=g.bind(null,o),n=function(){o.parentNode.removeChild(o)};return t(e),function(o){if(o){if(o.css===e.css&&o.media===e.media&&o.sourceMap===e.sourceMap)return;t(e=o)}else n()}}var y=function(){var e=[];return function(t,n){return e[t]=n,e.filter(Boolean).join("\n")}}();function x(e,t,n,o){var i=n?"":o.css;if(e.styleSheet)e.styleSheet.cssText=y(t,i);else{var r=document.createTextNode(i),c=e.childNodes;c[t]&&e.removeChild(c[t]),c.length?e.insertBefore(r,c[t]):e.appendChild(r)}}function g(e,t){var n=t.css,o=t.media,i=t.sourceMap;if(o&&e.setAttribute("media",o),d.ssrId&&e.setAttribute(m,t.id),i&&(n+="\n/*# sourceURL="+i.sources[0]+" */",n+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(i))))+" */"),e.styleSheet)e.styleSheet.cssText=n;else{while(e.firstChild)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(n))}}},"86e0":function(e,t,n){var o=n("24fb");t=o(!1),t.push([e.i,".menus[data-v-79f25910]{position:fixed;box-shadow:0 2px 4px rgba(0,0,0,.12),0 0 6px rgba(0,0,0,.04);background:#fff;border-radius:4px;padding:8px 0;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;box-sizing:border-box}.menus_body[data-v-79f25910]{display:block}.menus-fade-enter-active[data-v-79f25910],.menus-fade-leave-active[data-v-79f25910]{transition:opacity .1s ease-in-out}.menus-fade-enter-from[data-v-79f25910],.menus-fade-leave-to[data-v-79f25910]{opacity:0}",""]),e.exports=t},8875:function(e,t,n){var o,i,r;(function(n,c){i=[],o=c,r="function"===typeof o?o.apply(t,i):o,void 0===r||(e.exports=r)})("undefined"!==typeof self&&self,(function(){function e(){var t=Object.getOwnPropertyDescriptor(document,"currentScript");if(!t&&"currentScript"in document&&document.currentScript)return document.currentScript;if(t&&t.get!==e&&document.currentScript)return document.currentScript;try{throw new Error}catch(f){var n,o,i,r=/.*at [^(]*\((.*):(.+):(.+)\)$/gi,c=/@([^@]*):(\d+):(\d+)\s*$/gi,s=r.exec(f.stack)||c.exec(f.stack),l=s&&s[1]||!1,u=s&&s[2]||!1,a=document.location.href.replace(document.location.hash,""),d=document.getElementsByTagName("script");l===a&&(n=document.documentElement.outerHTML,o=new RegExp("(?:[^\\n]+?\\n){0,"+(u-2)+"}[^<]*<script>([\\d\\D]*?)<\\/script>[\\d\\D]*","i"),i=n.replace(o,"$1").trim());for(var m=0;m<d.length;m++){if("interactive"===d[m].readyState)return d[m];if(d[m].src===l)return d[m];if(l===a&&d[m].innerHTML&&d[m].innerHTML.trim()===i)return d[m]}return null}}return e}))},"8bbf":function(t,n){t.exports=e},c00a:function(e,t,n){"use strict";n("21f3")},c26e:function(e,t,n){var o=n("24fb");t=o(!1),t.push([e.i,".menus-item{display:flex;line-height:2rem;padding:0 1rem;margin:0;font-size:.8rem;outline:0;align-items:center;transition:.2s;box-sizing:border-box;list-style:none;border-bottom:1px solid transparent}.menus-item-divided{border-bottom-color:#ebeef5}.menus-item .menus-item-icon{display:flex;margin-right:.6rem;width:1rem}.menus-item .menus-item-label{flex:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.menus-item .menus-item-suffix{margin-left:1.5rem;font-size:.39rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.menus-item-available{color:#606266;cursor:pointer}.menus-item-available:hover{background:#ecf5ff;color:#409eff}.menus-item-disabled{color:#c0c4cc;cursor:not-allowed}.menus-item-active{background:#ecf5ff;color:#409eff}.menus-item-tip{font-size:9px;color:#999}",""]),e.exports=t},fb15:function(e,t,n){"use strict";if(n.r(t),n.d(t,"Vue3Menus",(function(){return k})),n.d(t,"directive",(function(){return C})),n.d(t,"menusEvent",(function(){return B})),"undefined"!==typeof window){var o=window.document.currentScript,i=n("8875");o=i(),"currentScript"in document||Object.defineProperty(document,"currentScript",{get:i});var r=o&&o.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);r&&(n.p=r[1])}var c=n("8bbf");const s=Object(c["withScopeId"])("data-v-79f25910");Object(c["pushScopeId"])("data-v-79f25910");const l={class:"menus_body"};Object(c["popScopeId"])();const u=s((function(e,t,n,o,i,r){const u=Object(c["resolveComponent"])("MenusItem");return Object(c["openBlock"])(),Object(c["createBlock"])(c["Teleport"],{to:"body"},[Object(c["createVNode"])(c["Transition"],{name:"menus-fade"},{default:s(()=>[e.open?(Object(c["openBlock"])(),Object(c["createBlock"])("div",{key:0,ref:"menusRef",class:"menus",style:{...e.menusStyle,top:e.style.top+"px",left:e.style.left+"px",minWidth:e.style.minWidth,maxWidth:e.style.maxWidth,zIndex:e.style.zIndex},onContextmenu:t[1]||(t[1]=e=>e.preventDefault()),onMousewheel:t[2]||(t[2]=Object(c["withModifiers"])(()=>{},["stop"]))},[Object(c["createVNode"])("div",l,[(Object(c["openBlock"])(!0),Object(c["createBlock"])(c["Fragment"],null,Object(c["renderList"])(e.menus,(t,n)=>(Object(c["openBlock"])(),Object(c["createBlock"])(c["Fragment"],{key:n},[t.hidden?Object(c["createCommentVNode"])("",!0):(Object(c["openBlock"])(),Object(c["createBlock"])(u,{key:0,item:t,index:n,activeIndex:e.activeIndex,onMenusEnter:e.menusEnter,menusItemClass:e.menusItemClass,hasIcon:e.hasIcon},Object(c["createSlots"])({_:2},[e.slots.default?{name:"default",fn:s(({item:t})=>[Object(c["renderSlot"])(e.$slots,"default",{item:t})])}:void 0,!e.slots.default&&e.slots.icon?{name:"icon",fn:s(({item:t})=>[Object(c["renderSlot"])(e.$slots,"icon",{item:t})])}:void 0,!e.slots.default&&e.slots.label?{name:"label",fn:s(({item:t})=>[Object(c["renderSlot"])(e.$slots,"label",{item:t})])}:void 0,!e.slots.default&&e.slots.suffix?{name:"suffix",fn:s(({item:t})=>[Object(c["renderSlot"])(e.$slots,"suffix",{item:t})])}:void 0]),1032,["item","index","activeIndex","onMenusEnter","menusItemClass","hasIcon"]))],64))),128))])],36)):Object(c["createCommentVNode"])("",!0)]),_:1})])})),a={key:0,class:"menus-item-icon"},d={class:"menus-item-label"},m={class:"menus-item-suffix"},f=Object(c["createTextVNode"])("▶"),p={key:3,class:"menus-item-tip"};function v(e,t,n,o,i,r){const s=Object(c["resolveComponent"])("MenusIcon");return e.slots.default?(Object(c["openBlock"])(),Object(c["createBlock"])("div",{key:0,onMouseenter:t[1]||(t[1]=t=>e.menusEnter(t,e.item)),onClick:t[2]||(t[2]=t=>e.menusClick(t,e.item)),onContextmenu:t[3]||(t[3]=t=>e.menusClick(t,e.item))},[Object(c["renderSlot"])(e.$slots,"default",{item:{activeIndex:e.activeIndex,item:e.item}})],32)):(Object(c["openBlock"])(),Object(c["createBlock"])("div",{key:1,onMouseenter:t[4]||(t[4]=t=>e.menusEnter(t,e.item)),onClick:t[5]||(t[5]=t=>e.menusClick(t,e.item)),onContextmenu:t[6]||(t[6]=t=>e.menusClick(t,e.item)),style:e.item.style?e.item.style:{},class:["menus-item",e.item.disabled?"menus-item-disabled":"menus-item-available",e.item.divided?"menus-divided":null,e.item.disabled||e.activeIndex!==e.index?null:"menus-item-active",e.menusItemClass]},[e.hasIcon?(Object(c["openBlock"])(),Object(c["createBlock"])("div",a,[e.slots.icon?Object(c["renderSlot"])(e.$slots,"icon",{key:0,item:{activeIndex:e.activeIndex,item:e.item}}):e.item.icon?(Object(c["openBlock"])(),Object(c["createBlock"])(c["Fragment"],{key:1},["string"===typeof e.item.icon?(Object(c["openBlock"])(),Object(c["createBlock"])("span",{key:0,innerHTML:e.item.icon},null,8,["innerHTML"])):(Object(c["openBlock"])(),Object(c["createBlock"])(s,{key:1,options:e.item.icon},null,8,["options"]))],64)):Object(c["createCommentVNode"])("",!0)])):Object(c["createCommentVNode"])("",!0),Object(c["createVNode"])("span",d,[e.slots.label?Object(c["renderSlot"])(e.$slots,"label",{key:0,item:{activeIndex:e.activeIndex,item:e.item}}):(Object(c["openBlock"])(),Object(c["createBlock"])(c["Fragment"],{key:1},[Object(c["createTextVNode"])(Object(c["toDisplayString"])(e.item.label),1)],64))]),Object(c["createVNode"])("div",m,[e.item.children&&e.slots.suffix?Object(c["renderSlot"])(e.$slots,"suffix",{key:0,item:{activeIndex:e.activeIndex,item:e.item}}):e.item.children?(Object(c["openBlock"])(),Object(c["createBlock"])(c["Fragment"],{key:1},[f],64)):e.item.tip&&e.slots.suffix?Object(c["renderSlot"])(e.$slots,"suffix",{key:2,item:{activeIndex:e.activeIndex,item:e.item}}):e.item.tip?(Object(c["openBlock"])(),Object(c["createBlock"])("span",p,Object(c["toDisplayString"])(e.item.tip),1)):Object(c["createCommentVNode"])("",!0)])],38))}var b=Object(c["defineComponent"])({name:"Vue3Menus",props:{options:{type:[Function,Object],default:{}}},render(){return"function"===typeof this.$props.options?Object(c["h"])(this.$props.options):"function"==typeof this.$props.options.node||"object"==typeof this.$props.options.node?Object(c["h"])(this.$props.options.node,this.$props.options.option):"object"!==typeof this.$props.options||this.$props.options.node?null:Object(c["h"])(this.$props.options)}}),h=b,y=Object(c["defineComponent"])({name:"menus-item",components:{MenusIcon:h},props:{menusItemClass:{type:String,default:null},hasIcon:{type:Boolean,default:!1},item:{type:Object,default:{}},index:{type:Number,default:0},activeIndex:{type:Number,default:-1}},setup(e,{emit:t,slots:n}){function o(n,o){t("menusEnter",n,o,e.index),n.preventDefault()}function i(e,t){if(e.preventDefault(),t.disabled)e.stopPropagation();else if(t&&!t.disabled&&!t.hidden&&"function"===typeof t.click){const n=t.click(t);!1!==n&&null!==n||e.stopPropagation()}}return{slots:n,menusEnter:o,menusClick:i}}});n("1b6f");y.render=v;var x=y,g=Object(c["defineComponent"])({name:"menus",components:{MenusItem:x},props:{menus:{type:Array,default:[]},menusStyle:{type:Object,default:{}},menusItemClass:{type:String,default:null},event:{type:Object,default:{}},position:{type:Object,default:{}},minWidth:{type:[Number,String],default:"none"},maxWidth:{type:[Number,String],default:"none"},zIndex:{type:[Number,String],default:3},direction:{type:String,default:"right"},open:{type:Boolean,default:!1}},setup(e,{slots:t}){const n={},o=globalThis.document.documentElement.clientWidth,i=globalThis.document.documentElement.clientHeight,r=e.position.x&&e.position.y?Object(c["ref"])(e.position):Object(c["ref"])({x:e.event.clientX,y:e.event.clientY,width:0,height:0}),s=Object(c["ref"])(null),l=Object(c["ref"])({left:0,top:0,minWidth:e.minWidth+"px",maxWidth:"none"==e.maxWidth?e.maxWidth:e.maxWidth+"px",zIndex:e.zIndex}),u=Object(c["ref"])(e.direction),a=Object(c["ref"])(-1),d=Object(c["ref"])(!1),m=Object(c["ref"])(!1);function f(e){l.value.left=r.value.x-e,u.value="left",l.value.left<0&&(u.value="right",0===r.value.width||void 0===r.value.width?l.value.left=0:l.value.left=r.valuen.x+r.value.width)}function p(e,t){l.value.left=r.value.x+r.value.width,u.value="right",l.value.left+t>e&&(u.value="left",0===r.value.width||void 0===r.value.width?l.value.left=e-t:l.value.left=r.value.x-t)}function v(o,i,r){if(a.value=r,i.disabled)return;if(n.instance){if(n.index===r)return;n.instance.close.bind(n.instance)(),n.instance=null,n.index=null}if(!i.children)return;const s=o.target.getBoundingClientRect(),l=Object(c["h"])(j,{...e,menus:i.children||[],direction:u.value,position:{x:s.x+3,y:s.y-8,width:s.width-6,height:s.width}},t),d=Object(c["createApp"])(l);n.instance=d.mount(globalThis.document.createElement("div")),n.instance.$unmount=d.unmount,n.index=r,o.preventDefault()}function b(){d.value=!1,this&&this.ctx&&this.ctx.instance&&this.ctx.instance.close(),Object(c["nextTick"])(()=>{this.$unmount()&&this.$unmount()})}return Object(c["onMounted"])(()=>{d.value=!0,e.menus.forEach(e=>{m.value=m.value||void 0!==e.icon,m.value}),Object(c["nextTick"])(()=>{const e=s.value.offsetWidth,t=s.value.offsetHeight;"left"===u.value?f(e):p(o,e),l.value.top=r.value.y,r.value.y+t>i&&(0===r.value.height||void 0===r.value.height?l.value.top=r.value.y-t:l.value.top=i-t)})}),{open:d,hasIcon:m,menusRef:s,style:l,close:b,menusEnter:v,ctx:n,activeIndex:a,slots:t}}});n("c00a");g.render=u,g.__scopeId="data-v-79f25910";var j=g,O=Object(c["defineComponent"])({name:"Vue3Menus",props:{menus:{type:Array,default:[]},menusStyle:{type:Object,default:{}},menusItemClass:{type:String,default:null},event:{type:Object,default:{}},position:{type:Object,default:{}},minWidth:{type:[Number,String],default:"none"},maxWidth:{type:[Number,String],default:"none"},zIndex:{type:[Number,String],default:2},open:{type:Boolean,default:!1}},setup(e,{emit:t,slots:n}){let o=null;function i(){t("update:open",!1),o&&(o.close(),o=null)}return Object(c["watch"])(()=>e.open,t=>{if(t){o&&(o.close(),o=null);const t=Object(c["h"])(j,{...e},n),r=Object(c["createApp"])(t);o=r.mount(globalThis.document.createElement("div")),o.$unmount=r.unmount,setTimeout(()=>{globalThis.document.addEventListener("click",i),globalThis.document.addEventListener("contextmenu",i),globalThis.document.addEventListener("wheel",i)},0)}else globalThis.document.removeEventListener("click",i),globalThis.document.removeEventListener("contextmenu",i),globalThis.document.removeEventListener("wheel",i)}),{}},render(){return null}}),k=O;let w=null;function S(){w&&(w.close(),w=null),globalThis.document.removeEventListener("click",S),globalThis.document.removeEventListener("contextmenu",S),globalThis.document.removeEventListener("wheel",S)}function E(e,t){const n=e||{};w&&(w.close(),w=null,globalThis.document.removeEventListener("click",S),globalThis.document.removeEventListener("contextmenu",S),globalThis.document.removeEventListener("wheel",S));let o=Object(c["createApp"])(j,{event:t,...n});return w=o.mount(globalThis.document.createElement("div")),w.$unmount=o.unmount,(void 0==n.prevent||n.prevent)&&t.preventDefault(),setTimeout(()=>{globalThis.document.addEventListener("click",S),globalThis.document.addEventListener("contextmenu",S),globalThis.document.addEventListener("wheel",S)},0),w}var I=E;k.install=(e,t={})=>{e.component(t.name||k.name,k)};const C={mounted(e,{value:t,arg:n,instance:o}){void 0===n||"right"===n?e.addEventListener("contextmenu",I.bind(o,t)):"left"===n?e.addEventListener("click",I.bind(o,t)):"all"===n&&(e.addEventListener("contextmenu",I.bind(o,t)),e.addEventListener("click",I.bind(o,t)))},unmounted(e,{arg:t}){void 0===t||"right"===t?e.removeEventListener("contextmenu",I):"left"===t?e.removeEventListener("click",I):"all"===t&&(e.removeEventListener("contextmenu",I),e.removeEventListener("click",I))}},T=function(e,t={}){e.component(t.name||k.name,k),e.directive("menus",C),e.config.globalProperties.$menusEvent=(e,t)=>I(t,e)};"undefined"!==typeof window&&window.Vue&&(window.Vue3Menus=T);const B=(e,t)=>I(t,e);var M={version:"1.0.8",install:T,Vue3Menus:k,directive:C,menusEvent:B};t["default"]=M}})}));
//# sourceMappingURL=vue3-menus.umd.min.js.map

@@ -43,4 +43,2 @@ import Vue3Menus from './components/Vue3Menus.vue';

export default install;
export {

@@ -51,1 +49,9 @@ Vue3Menus,

}
export default {
version: '1.0.8',
install,
Vue3Menus,
directive,
menusEvent
};
{
"name": "vue3-menus",
"version": "1.0.7",
"version": "1.0.8",
"author": "xufangyi",

@@ -5,0 +5,0 @@ "private": false,

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc