@smallwei/avue 3.0.6 → 3.0.7

Sign up to get free protection for your applications and to get access to all the features.
package/lib/avue.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * Avue.js v3.0.6
2
+ * Avue.js v3.0.7
3
3
  * (c) 2017-2022 Smallwei
4
4
  * Released under the MIT License.
5
5
  *
@@ -5606,7 +5606,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _nod
5606
5606
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
5607
5607
 
5608
5608
  "use strict";
5609
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony default export */ __webpack_exports__[\"default\"] = ((function () {\n var dialogDom;\n\n function setEvent(el, value, event, first) {\n var v_params = value,\n e_params = event;\n\n if (first) {\n el.oncontextmenu = function (e) {\n var divLeft = e.clientX,\n divTop = e.clientY;\n var client_width = document.documentElement.clientWidth;\n var client_height = document.documentElement.clientHeight;\n var dialogDom_width = dialogDom.offsetWidth;\n var dialogDom_height = dialogDom.offsetHeight;\n var calcWidth = client_width - divLeft - dialogDom_width;\n var calcHeight = client_height - divTop - dialogDom_height;\n\n if (calcHeight < 0) {\n divTop = divTop - dialogDom_height;\n }\n\n if (calcWidth < 0) {\n divLeft = divLeft - dialogDom_width;\n }\n\n var closeDialog = function closeDialog() {\n dialogDom.style.display = 'none';\n document.removeEventListener('click', closeDialog);\n };\n\n var showDialog = function showDialog() {\n dialogDom.style.display = 'block';\n dialogDom.style.position = 'fixed';\n dialogDom.style.zIndex = 1024;\n dialogDom.style.top = divTop + 'px';\n dialogDom.style.left = divLeft + 'px';\n document.addEventListener('click', closeDialog);\n };\n\n if (e_params) {\n e_params(v_params, showDialog);\n } else {\n showDialog();\n }\n\n return false;\n };\n }\n }\n\n return {\n inserted: function inserted(el, binding) {\n var id = binding.value.id;\n var event = binding.value.event;\n var value = binding.value.value;\n dialogDom = document.getElementById(id);\n if (!dialogDom) return;\n dialogDom.style.display = 'none';\n setEvent(el, value, event, true);\n },\n update: function update(el, binding) {\n var event = binding.value.event;\n var value = binding.value.value;\n setEvent(el, value, event, false);\n }\n };\n})());\n\n//# sourceURL=webpack://AVUE/./packages/core/directive/contextmenu.js?");
5609
+ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony default export */ __webpack_exports__[\"default\"] = ((function () {\n var dialogDom;\n\n function setEvent(el, value, event, first) {\n var v_params = value,\n e_params = event;\n\n if (first) {\n el.oncontextmenu = function (e) {\n e.preventDefault();\n var divLeft = e.clientX,\n divTop = e.clientY;\n var client_width = document.documentElement.clientWidth;\n var client_height = document.documentElement.clientHeight;\n var dialogDom_width = dialogDom.offsetWidth;\n var dialogDom_height = dialogDom.offsetHeight;\n var calcWidth = client_width - divLeft - dialogDom_width;\n var calcHeight = client_height - divTop - dialogDom_height;\n\n if (calcHeight < 0) {\n divTop = divTop - dialogDom_height;\n }\n\n if (calcWidth < 0) {\n divLeft = divLeft - dialogDom_width;\n }\n\n var closeDialog = function closeDialog() {\n dialogDom.style.display = 'none';\n document.removeEventListener('click', closeDialog);\n };\n\n var showDialog = function showDialog() {\n dialogDom.style.display = 'block';\n dialogDom.style.position = 'fixed';\n dialogDom.style.zIndex = 1024;\n dialogDom.style.top = divTop + 'px';\n dialogDom.style.left = divLeft + 'px';\n document.addEventListener('click', closeDialog);\n };\n\n if (e_params) {\n e_params(v_params, showDialog);\n } else {\n showDialog();\n }\n };\n }\n }\n\n return {\n mounted: function mounted(el, binding) {\n var id = binding.value.id;\n var event = binding.value.event;\n var value = binding.value.value;\n dialogDom = document.getElementById(id);\n if (!dialogDom) return;\n dialogDom.style.display = 'none';\n setEvent(el, value, event, true);\n },\n update: function update(el, binding) {\n var event = binding.value.event;\n var value = binding.value.value;\n setEvent(el, value, event, false);\n }\n };\n})());\n\n//# sourceURL=webpack://AVUE/./packages/core/directive/contextmenu.js?");
5610
5610
 
5611
5611
  /***/ }),
5612
5612
 
@@ -5618,7 +5618,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony default export */
5618
5618
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
5619
5619
 
5620
5620
  "use strict";
5621
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony default export */ __webpack_exports__[\"default\"] = ((function () {\n function init(el, binding) {\n var value = binding.value;\n\n if (value === false) {\n el.style.display = \"none\";\n } else {\n el.style.display = \"\";\n }\n }\n\n return {\n bind: function bind(el, binding) {\n init(el, binding);\n },\n update: function update(el, binding) {\n init(el, binding);\n }\n };\n})());\n\n//# sourceURL=webpack://AVUE/./packages/core/directive/permission.js?");
5621
+ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony default export */ __webpack_exports__[\"default\"] = ((function () {\n function init(el, binding) {\n var value = binding.value;\n\n if (value === false) {\n el.style.display = \"none\";\n } else {\n el.style.display = \"\";\n }\n }\n\n return {\n mounted: function mounted(el, binding) {\n init(el, binding);\n },\n update: function update(el, binding) {\n init(el, binding);\n }\n };\n})());\n\n//# sourceURL=webpack://AVUE/./packages/core/directive/permission.js?");
5622
5622
 
5623
5623
  /***/ }),
5624
5624
 
@@ -8690,7 +8690,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) *
8690
8690
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
8691
8691
 
8692
8692
  "use strict";
8693
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"version\", function() { return version; });\nvar version = '3.0.6';\n\n//# sourceURL=webpack://AVUE/./src/version.js?");
8693
+ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"version\", function() { return version; });\nvar version = '3.0.7';\n\n//# sourceURL=webpack://AVUE/./src/version.js?");
8694
8694
 
8695
8695
  /***/ }),
8696
8696