@smallwei/avue 3.2.2 → 3.2.3

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.2.2
2
+ * Avue.js v3.2.3
3
3
  * (c) 2017-2022 Smallwei
4
4
  * Released under the MIT License.
5
5
  *
@@ -4658,7 +4658,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _ele
4658
4658
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
4659
4659
 
4660
4660
  "use strict";
4661
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _ui_index__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./ui/index */ \"./src/ui/index.js\");\n/* harmony import */ var _version__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./version */ \"./src/version.js\");\n/* harmony import */ var axios__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! axios */ \"axios\");\n/* harmony import */ var axios__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(axios__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var utils_validate_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! utils/validate.js */ \"./src/utils/validate.js\");\n/* harmony import */ var utils_util__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! utils/util */ \"./src/utils/util.js\");\n/* harmony import */ var packages_core_directive_contextmenu__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! packages/core/directive/contextmenu */ \"./packages/core/directive/contextmenu.js\");\n/* harmony import */ var plugin_export___WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! plugin/export/ */ \"./src/plugin/export/index.js\");\n/* harmony import */ var plugin_watermark___WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! plugin/watermark/ */ \"./src/plugin/watermark/index.js\");\n/* harmony import */ var plugin_logs___WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! plugin/logs/ */ \"./src/plugin/logs/index.js\");\n/* harmony import */ var _locale___WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./locale/ */ \"./src/locale/index.js\");\n/* harmony import */ var plugin_screenshot___WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! plugin/screenshot/ */ \"./src/plugin/screenshot/index.js\");\n/* harmony import */ var plugin_clipboard___WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! plugin/clipboard/ */ \"./src/plugin/clipboard/index.js\");\n/* harmony import */ var plugin_print___WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! plugin/print/ */ \"./src/plugin/print/index.js\");\n/* harmony import */ var packages_core_components_image_preview___WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! packages/core/components/image-preview/ */ \"./packages/core/components/image-preview/index.js\");\n/* harmony import */ var _icon__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./icon */ \"./src/icon.js\");\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nvar plugins = {\n $ImagePreview: packages_core_components_image_preview___WEBPACK_IMPORTED_MODULE_13__[\"default\"],\n $Export: plugin_export___WEBPACK_IMPORTED_MODULE_6__[\"default\"],\n $Print: plugin_print___WEBPACK_IMPORTED_MODULE_12__[\"default\"],\n $Clipboard: plugin_clipboard___WEBPACK_IMPORTED_MODULE_11__[\"default\"],\n $Watermark: plugin_watermark___WEBPACK_IMPORTED_MODULE_7__[\"default\"],\n $Log: plugin_logs___WEBPACK_IMPORTED_MODULE_8__[\"default\"],\n $Screenshot: plugin_screenshot___WEBPACK_IMPORTED_MODULE_10__[\"default\"],\n deepClone: utils_util__WEBPACK_IMPORTED_MODULE_4__[\"deepClone\"],\n dataURLtoFile: utils_util__WEBPACK_IMPORTED_MODULE_4__[\"dataURLtoFile\"],\n isJson: utils_util__WEBPACK_IMPORTED_MODULE_4__[\"isJson\"],\n setPx: utils_util__WEBPACK_IMPORTED_MODULE_4__[\"setPx\"],\n validData: utils_util__WEBPACK_IMPORTED_MODULE_4__[\"validData\"],\n sortArrys: utils_util__WEBPACK_IMPORTED_MODULE_4__[\"sortArrys\"],\n findArray: utils_util__WEBPACK_IMPORTED_MODULE_4__[\"findArray\"],\n validatenull: utils_validate_js__WEBPACK_IMPORTED_MODULE_3__[\"validatenull\"],\n downFile: utils_util__WEBPACK_IMPORTED_MODULE_4__[\"downFile\"],\n loadScript: utils_util__WEBPACK_IMPORTED_MODULE_4__[\"loadScript\"],\n findObject: utils_util__WEBPACK_IMPORTED_MODULE_4__[\"findObject\"],\n randomId: utils_util__WEBPACK_IMPORTED_MODULE_4__[\"randomId\"]\n};\nvar directive = {\n contextmenu: packages_core_directive_contextmenu__WEBPACK_IMPORTED_MODULE_5__[\"default\"]\n};\n\nvar install = function install(Vue) {\n var opts = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n var defaultOption = {\n size: opts.size || 'default',\n calcHeight: opts.calcHeight || 0,\n menuType: opts.menuType || 'text',\n appendToBody: Object(utils_util__WEBPACK_IMPORTED_MODULE_4__[\"validData\"])(opts.appendToBody, true),\n canvas: Object.assign({\n text: 'avuejs.com',\n fontFamily: 'microsoft yahei',\n color: '#999',\n fontSize: 16,\n opacity: 100,\n bottom: 10,\n right: 10,\n ratio: 1\n }, opts.canvas),\n qiniu: Object.assign({\n AK: '',\n SK: '',\n scope: '',\n url: '',\n bucket: 'https://upload.qiniup.com',\n deadline: 1\n }, opts.qiniu || {}),\n ali: Object.assign({\n region: '',\n endpoint: '',\n stsToken: '',\n accessKeyId: '',\n accessKeySecret: '',\n bucket: ''\n }, opts.ali || {})\n };\n Vue.config.globalProperties.$AVUE = Object.assign(opts, defaultOption);\n _ui_index__WEBPACK_IMPORTED_MODULE_0__[\"default\"].forEach(function (component) {\n Vue.component(component.name, component);\n });\n Object(_icon__WEBPACK_IMPORTED_MODULE_14__[\"default\"])(Vue);\n Object.keys(plugins).forEach(function (key) {\n Vue.config.globalProperties[key] = plugins[key];\n });\n Object.keys(directive).forEach(function (key) {\n Vue.directive(key, directive[key]);\n }); // 国际化\n\n _locale___WEBPACK_IMPORTED_MODULE_9__[\"default\"].use(opts.locale);\n _locale___WEBPACK_IMPORTED_MODULE_9__[\"default\"].i18n(opts.i18n);\n Vue.config.globalProperties.$axios = opts.axios || axios__WEBPACK_IMPORTED_MODULE_2___default.a || window.axios;\n window.axios = Vue.config.globalProperties.$axios;\n};\n\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\n version: _version__WEBPACK_IMPORTED_MODULE_1__[\"version\"],\n locale: _locale___WEBPACK_IMPORTED_MODULE_9__[\"default\"],\n install: install\n});\n\n//# sourceURL=webpack://AVUE/./src/index.js?");
4661
+ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _ui_index__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./ui/index */ \"./src/ui/index.js\");\n/* harmony import */ var _version__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./version */ \"./src/version.js\");\n/* harmony import */ var axios__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! axios */ \"axios\");\n/* harmony import */ var axios__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(axios__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var utils_validate_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! utils/validate.js */ \"./src/utils/validate.js\");\n/* harmony import */ var utils_util__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! utils/util */ \"./src/utils/util.js\");\n/* harmony import */ var packages_core_directive_contextmenu__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! packages/core/directive/contextmenu */ \"./packages/core/directive/contextmenu.js\");\n/* harmony import */ var plugin_export___WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! plugin/export/ */ \"./src/plugin/export/index.js\");\n/* harmony import */ var plugin_watermark___WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! plugin/watermark/ */ \"./src/plugin/watermark/index.js\");\n/* harmony import */ var plugin_logs___WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! plugin/logs/ */ \"./src/plugin/logs/index.js\");\n/* harmony import */ var _locale___WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./locale/ */ \"./src/locale/index.js\");\n/* harmony import */ var plugin_screenshot___WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! plugin/screenshot/ */ \"./src/plugin/screenshot/index.js\");\n/* harmony import */ var plugin_clipboard___WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! plugin/clipboard/ */ \"./src/plugin/clipboard/index.js\");\n/* harmony import */ var plugin_print___WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! plugin/print/ */ \"./src/plugin/print/index.js\");\n/* harmony import */ var packages_core_components_image_preview___WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! packages/core/components/image-preview/ */ \"./packages/core/components/image-preview/index.js\");\n/* harmony import */ var _icon__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./icon */ \"./src/icon.js\");\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nvar plugins = {\n $ImagePreview: packages_core_components_image_preview___WEBPACK_IMPORTED_MODULE_13__[\"default\"],\n $Export: plugin_export___WEBPACK_IMPORTED_MODULE_6__[\"default\"],\n $Print: plugin_print___WEBPACK_IMPORTED_MODULE_12__[\"default\"],\n $Clipboard: plugin_clipboard___WEBPACK_IMPORTED_MODULE_11__[\"default\"],\n $Watermark: plugin_watermark___WEBPACK_IMPORTED_MODULE_7__[\"default\"],\n $Log: plugin_logs___WEBPACK_IMPORTED_MODULE_8__[\"default\"],\n $Screenshot: plugin_screenshot___WEBPACK_IMPORTED_MODULE_10__[\"default\"],\n deepClone: utils_util__WEBPACK_IMPORTED_MODULE_4__[\"deepClone\"],\n dataURLtoFile: utils_util__WEBPACK_IMPORTED_MODULE_4__[\"dataURLtoFile\"],\n isJson: utils_util__WEBPACK_IMPORTED_MODULE_4__[\"isJson\"],\n setPx: utils_util__WEBPACK_IMPORTED_MODULE_4__[\"setPx\"],\n validData: utils_util__WEBPACK_IMPORTED_MODULE_4__[\"validData\"],\n sortArrys: utils_util__WEBPACK_IMPORTED_MODULE_4__[\"sortArrys\"],\n findArray: utils_util__WEBPACK_IMPORTED_MODULE_4__[\"findArray\"],\n validatenull: utils_validate_js__WEBPACK_IMPORTED_MODULE_3__[\"validatenull\"],\n downFile: utils_util__WEBPACK_IMPORTED_MODULE_4__[\"downFile\"],\n loadScript: utils_util__WEBPACK_IMPORTED_MODULE_4__[\"loadScript\"],\n findObject: utils_util__WEBPACK_IMPORTED_MODULE_4__[\"findObject\"],\n randomId: utils_util__WEBPACK_IMPORTED_MODULE_4__[\"randomId\"]\n};\nvar directive = {\n contextmenu: packages_core_directive_contextmenu__WEBPACK_IMPORTED_MODULE_5__[\"default\"]\n};\n\nvar install = function install(Vue) {\n var opts = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n var defaultOption = {\n size: opts.size || 'default',\n calcHeight: opts.calcHeight || 0,\n menuType: opts.menuType || 'text',\n appendToBody: Object(utils_util__WEBPACK_IMPORTED_MODULE_4__[\"validData\"])(opts.appendToBody, true),\n canvas: Object.assign({\n text: 'avuejs.com',\n fontFamily: 'microsoft yahei',\n color: '#999',\n fontSize: 16,\n opacity: 100,\n bottom: 10,\n right: 10,\n ratio: 1\n }, opts.canvas),\n qiniu: Object.assign({\n AK: '',\n SK: '',\n scope: '',\n url: '',\n bucket: 'https://upload.qiniup.com',\n deadline: 1\n }, opts.qiniu || {}),\n ali: Object.assign({\n region: '',\n endpoint: '',\n stsToken: '',\n accessKeyId: '',\n accessKeySecret: '',\n bucket: ''\n }, opts.ali || {})\n };\n Vue.config.globalProperties.$AVUE = Object.assign(opts, defaultOption);\n _ui_index__WEBPACK_IMPORTED_MODULE_0__[\"default\"].forEach(function (component) {\n Vue.component(component.name, component);\n });\n Object(_icon__WEBPACK_IMPORTED_MODULE_14__[\"default\"])(Vue);\n Object.keys(plugins).forEach(function (key) {\n Vue.config.globalProperties[key] = plugins[key];\n });\n Object.keys(directive).forEach(function (key) {\n Vue.directive(key, directive[key]);\n }); // 国际化\n\n _locale___WEBPACK_IMPORTED_MODULE_9__[\"default\"].use(opts.locale);\n _locale___WEBPACK_IMPORTED_MODULE_9__[\"default\"].i18n(opts.i18n);\n Vue.config.globalProperties.$axios = opts.axios || window.axios || axios__WEBPACK_IMPORTED_MODULE_2___default.a;\n window.axios = Vue.config.globalProperties.$axios;\n};\n\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\n version: _version__WEBPACK_IMPORTED_MODULE_1__[\"version\"],\n locale: _locale___WEBPACK_IMPORTED_MODULE_9__[\"default\"],\n install: install\n});\n\n//# sourceURL=webpack://AVUE/./src/index.js?");
4662
4662
 
4663
4663
  /***/ }),
4664
4664
 
@@ -4910,7 +4910,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) *
4910
4910
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
4911
4911
 
4912
4912
  "use strict";
4913
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"version\", function() { return version; });\nvar version = '3.2.2';\n\n//# sourceURL=webpack://AVUE/./src/version.js?");
4913
+ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"version\", function() { return version; });\nvar version = '3.2.3';\n\n//# sourceURL=webpack://AVUE/./src/version.js?");
4914
4914
 
4915
4915
  /***/ }),
4916
4916