@smallwei/avue 3.2.1 → 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.1
2
+ * Avue.js v3.2.3
3
3
  * (c) 2017-2022 Smallwei
4
4
  * Released under the MIT License.
5
5
  *
@@ -179,17 +179,6 @@ eval("function _nonIterableSpread() {\n throw new TypeError(\"Invalid attempt t
179
179
 
180
180
  /***/ }),
181
181
 
182
- /***/ "./node_modules/@babel/runtime/helpers/readOnlyError.js":
183
- /*!**************************************************************!*\
184
- !*** ./node_modules/@babel/runtime/helpers/readOnlyError.js ***!
185
- \**************************************************************/
186
- /*! no static exports found */
187
- /***/ (function(module, exports) {
188
-
189
- eval("function _readOnlyError(name) {\n throw new TypeError(\"\\\"\" + name + \"\\\" is read-only\");\n}\n\nmodule.exports = _readOnlyError, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;\n\n//# sourceURL=webpack://AVUE/./node_modules/@babel/runtime/helpers/readOnlyError.js?");
190
-
191
- /***/ }),
192
-
193
182
  /***/ "./node_modules/@babel/runtime/helpers/toConsumableArray.js":
194
183
  /*!******************************************************************!*\
195
184
  !*** ./node_modules/@babel/runtime/helpers/toConsumableArray.js ***!
@@ -579,7 +568,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var core
579
568
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
580
569
 
581
570
  "use strict";
582
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_helpers_readOnlyError__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/readOnlyError */ \"./node_modules/@babel/runtime/helpers/readOnlyError.js\");\n/* harmony import */ var _babel_runtime_helpers_readOnlyError__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_readOnlyError__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/toConsumableArray */ \"./node_modules/@babel/runtime/helpers/toConsumableArray.js\");\n/* harmony import */ var _babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var core_detail__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! core/detail */ \"./src/core/detail.js\");\n/* harmony import */ var global_variable__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! global/variable */ \"./src/global/variable.js\");\n/* harmony import */ var core_dic__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! core/dic */ \"./src/core/dic.js\");\n/* harmony import */ var utils_util__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! utils/util */ \"./src/utils/util.js\");\n/* harmony import */ var common_components_form_index__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! common/components/form/index */ \"./packages/core/components/form/index.vue\");\n/* harmony import */ var common_components_icon_index__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! common/components/icon/index */ \"./packages/core/components/icon/index.vue\");\n\n\nvar count = {};\n\n\n\n\n\n\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\n name: 'column-slot',\n inject: [\"dynamic\", 'crud'],\n components: {\n formTemp: common_components_form_index__WEBPACK_IMPORTED_MODULE_6__[\"default\"],\n iconTemp: common_components_icon_index__WEBPACK_IMPORTED_MODULE_7__[\"default\"]\n },\n props: {\n column: Object,\n columnOption: Array\n },\n created: function created() {\n var _this = this;\n\n var list = ['getColumnProp', \"handleFiltersMethod\", \"handleFilters\"];\n list.forEach(function (ele) {\n _this[ele] = _this.dynamic[ele];\n });\n },\n methods: {\n isMediaType: function isMediaType(item, fileType) {\n return Object(utils_util__WEBPACK_IMPORTED_MODULE_5__[\"isMediaType\"])(item, fileType);\n },\n vaildLabel: function vaildLabel(column, row, val) {\n if (column.rules && row.$cellEdit) {\n return val;\n }\n },\n handleShowLabel: function handleShowLabel(row, column, DIC) {\n var result = \"\";\n\n if (!this.validatenull(DIC)) {\n result = Object(core_detail__WEBPACK_IMPORTED_MODULE_2__[\"detail\"])(row, column, this.crud.tableOption, DIC);\n row[\"$\" + column.prop] = result;\n }\n\n return result;\n },\n columnChange: function columnChange(row, column, index) {\n var key = \"\".concat(index, \"-\").concat(column.prop);\n\n if (!count[key]) {\n this.handleChange(column, row);\n\n if (typeof column.change === 'function' && column.cell == true) {\n column.change({\n row: row,\n column: column,\n index: index,\n value: row[column.prop]\n });\n }\n }\n\n count[key] = true;\n this.$nextTick(function () {\n return count[key] = false;\n });\n },\n handleChange: function handleChange(column, row) {\n var _this2 = this;\n\n if (!column.cascader) return;\n this.$nextTick(function () {\n var columnOption = _babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_1___default()(_this2.crud.propOption); //本节点;\n\n\n var cascader = column.cascader;\n var str = cascader.join(\",\");\n cascader.forEach(function (item) {\n var columnNextProp = item;\n var value = row[column.prop];\n var rowIndex = row.$index; // 下一个节点\n\n var columnNext = _this2.findObject(_this2.columnOption, columnNextProp);\n\n if (_this2.validatenull(columnNext)) return; // 如果本节点没有字典则创建节点数组\n\n if (_this2.validatenull(_this2.crud.cascaderDIC[rowIndex])) {\n _this2.crud.cascaderDIC[rowIndex] = {};\n }\n\n if (_this2.crud.formIndexList.includes(rowIndex)) {\n //清空子类字典\n cascader.forEach(function (ele) {\n _this2.crud.cascaderDIC[rowIndex][ele.prop] = [];\n cascader.forEach(function (ele) {\n return row[ele] = \"\";\n });\n });\n } //最后一级\n\n\n if (_this2.validatenull(cascader) || _this2.validatenull(value) || _this2.validatenull(columnNext)) {\n return;\n }\n\n Object(core_dic__WEBPACK_IMPORTED_MODULE_4__[\"sendDic\"])({\n column: columnNext,\n value: value,\n form: row\n }).then(function (res) {\n //首次加载的放入队列记录\n if (!_this2.crud.formIndexList.includes(rowIndex)) _this2.crud.formIndexList.push(rowIndex);\n var dic = res || []; // 修改字典\n\n _this2.crud.cascaderDIC[rowIndex][columnNextProp] = dic;\n\n if (!_this2.validatenull(dic[columnNext.cascaderIndex]) && !_this2.validatenull(dic) && !_this2.validatenull(columnNext.cascaderIndex)) {\n row[columnNextProp] = dic[columnNext.cascaderIndex][(columnNext.props || {}).value || global_variable__WEBPACK_IMPORTED_MODULE_3__[\"DIC_PROPS\"].value];\n }\n });\n });\n });\n },\n handleDetail: function handleDetail(row, column) {\n var result;\n var DIC = column.parentProp ? (this.crud.cascaderDIC[row.$index] || {})[column.prop] : this.crud.DIC[column.prop];\n result = Object(core_detail__WEBPACK_IMPORTED_MODULE_2__[\"detail\"])(row, column, this.crud.tableOption, DIC);\n\n if (!this.validatenull(DIC)) {\n row[\"$\" + column.prop] = result;\n }\n\n return result;\n },\n corArray: function corArray(row, column) {\n var list = this.handleDetail(row, column);\n\n if (!Array.isArray(list)) {\n list.split(global_variable__WEBPACK_IMPORTED_MODULE_3__[\"DIC_SHOW_SPLIT\"]), _babel_runtime_helpers_readOnlyError__WEBPACK_IMPORTED_MODULE_0___default()(\"list\");\n }\n\n return this.deepClone(list);\n },\n openImg: function openImg(row, column, index) {\n var list = this.getImgList(row, column);\n list = list.map(function (ele) {\n return {\n thumbUrl: ele,\n url: ele\n };\n });\n this.$ImagePreview(list, index);\n },\n getImgList: function getImgList(row, column) {\n var _column$propsHttp, _column$props;\n\n var url = ((_column$propsHttp = column.propsHttp) === null || _column$propsHttp === void 0 ? void 0 : _column$propsHttp.home) || '';\n var value = ((_column$props = column.props) === null || _column$props === void 0 ? void 0 : _column$props.value) || global_variable__WEBPACK_IMPORTED_MODULE_3__[\"DIC_PROPS\"].value;\n var list = this.corArray(row, column);\n if (column.listType == 'picture-img') return [url + list];\n list.forEach(function (ele, index) {\n list[index] = url + (ele[value] ? ele[value] : ele);\n });\n return list;\n }\n }\n});\n\n//# sourceURL=webpack://AVUE/./packages/element-ui/crud/column/column-slot.vue?./node_modules/babel-loader/lib!./node_modules/vue-loader/dist??ref--1");
571
+ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/toConsumableArray */ \"./node_modules/@babel/runtime/helpers/toConsumableArray.js\");\n/* harmony import */ var _babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var core_detail__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! core/detail */ \"./src/core/detail.js\");\n/* harmony import */ var global_variable__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! global/variable */ \"./src/global/variable.js\");\n/* harmony import */ var core_dic__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! core/dic */ \"./src/core/dic.js\");\n/* harmony import */ var utils_util__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! utils/util */ \"./src/utils/util.js\");\n/* harmony import */ var common_components_form_index__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! common/components/form/index */ \"./packages/core/components/form/index.vue\");\n/* harmony import */ var common_components_icon_index__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! common/components/icon/index */ \"./packages/core/components/icon/index.vue\");\n\nvar count = {};\n\n\n\n\n\n\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\n name: 'column-slot',\n inject: [\"dynamic\", 'crud'],\n components: {\n formTemp: common_components_form_index__WEBPACK_IMPORTED_MODULE_5__[\"default\"],\n iconTemp: common_components_icon_index__WEBPACK_IMPORTED_MODULE_6__[\"default\"]\n },\n props: {\n column: Object,\n columnOption: Array\n },\n created: function created() {\n var _this = this;\n\n var list = ['getColumnProp', \"handleFiltersMethod\", \"handleFilters\"];\n list.forEach(function (ele) {\n _this[ele] = _this.dynamic[ele];\n });\n },\n methods: {\n isMediaType: function isMediaType(item, fileType) {\n return Object(utils_util__WEBPACK_IMPORTED_MODULE_4__[\"isMediaType\"])(item, fileType);\n },\n vaildLabel: function vaildLabel(column, row, val) {\n if (column.rules && row.$cellEdit) {\n return val;\n }\n },\n handleShowLabel: function handleShowLabel(row, column, DIC) {\n var result = \"\";\n\n if (!this.validatenull(DIC)) {\n result = Object(core_detail__WEBPACK_IMPORTED_MODULE_1__[\"detail\"])(row, column, this.crud.tableOption, DIC);\n row[\"$\" + column.prop] = result;\n }\n\n return result;\n },\n columnChange: function columnChange(row, column, index) {\n var key = \"\".concat(index, \"-\").concat(column.prop);\n\n if (!count[key]) {\n this.handleChange(column, row);\n\n if (typeof column.change === 'function' && column.cell == true) {\n column.change({\n row: row,\n column: column,\n index: index,\n value: row[column.prop]\n });\n }\n }\n\n count[key] = true;\n this.$nextTick(function () {\n return count[key] = false;\n });\n },\n handleChange: function handleChange(column, row) {\n var _this2 = this;\n\n if (!column.cascader) return;\n this.$nextTick(function () {\n var columnOption = _babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0___default()(_this2.crud.propOption); //本节点;\n\n\n var cascader = column.cascader;\n var str = cascader.join(\",\");\n cascader.forEach(function (item) {\n var columnNextProp = item;\n var value = row[column.prop];\n var rowIndex = row.$index; // 下一个节点\n\n var columnNext = _this2.findObject(_this2.columnOption, columnNextProp);\n\n if (_this2.validatenull(columnNext)) return; // 如果本节点没有字典则创建节点数组\n\n if (_this2.validatenull(_this2.crud.cascaderDIC[rowIndex])) {\n _this2.crud.cascaderDIC[rowIndex] = {};\n }\n\n if (_this2.crud.formIndexList.includes(rowIndex)) {\n //清空子类字典\n cascader.forEach(function (ele) {\n _this2.crud.cascaderDIC[rowIndex][ele.prop] = [];\n cascader.forEach(function (ele) {\n return row[ele] = \"\";\n });\n });\n } //最后一级\n\n\n if (_this2.validatenull(cascader) || _this2.validatenull(value) || _this2.validatenull(columnNext)) {\n return;\n }\n\n Object(core_dic__WEBPACK_IMPORTED_MODULE_3__[\"sendDic\"])({\n column: columnNext,\n value: value,\n form: row\n }).then(function (res) {\n //首次加载的放入队列记录\n if (!_this2.crud.formIndexList.includes(rowIndex)) _this2.crud.formIndexList.push(rowIndex);\n var dic = res || []; // 修改字典\n\n _this2.crud.cascaderDIC[rowIndex][columnNextProp] = dic;\n\n if (!_this2.validatenull(dic[columnNext.cascaderIndex]) && !_this2.validatenull(dic) && !_this2.validatenull(columnNext.cascaderIndex)) {\n row[columnNextProp] = dic[columnNext.cascaderIndex][(columnNext.props || {}).value || global_variable__WEBPACK_IMPORTED_MODULE_2__[\"DIC_PROPS\"].value];\n }\n });\n });\n });\n },\n handleDetail: function handleDetail(row, column) {\n var result;\n var DIC = column.parentProp ? (this.crud.cascaderDIC[row.$index] || {})[column.prop] : this.crud.DIC[column.prop];\n result = Object(core_detail__WEBPACK_IMPORTED_MODULE_1__[\"detail\"])(row, column, this.crud.tableOption, DIC);\n\n if (!this.validatenull(DIC)) {\n row[\"$\" + column.prop] = result;\n }\n\n return result;\n },\n corArray: function corArray(row, column) {\n var list = this.handleDetail(row, column);\n\n if (!Array.isArray(list)) {\n list = list.split(global_variable__WEBPACK_IMPORTED_MODULE_2__[\"DIC_SHOW_SPLIT\"]);\n }\n\n return this.deepClone(list);\n },\n openImg: function openImg(row, column, index) {\n var list = this.getImgList(row, column);\n list = list.map(function (ele) {\n return {\n thumbUrl: ele,\n url: ele\n };\n });\n this.$ImagePreview(list, index);\n },\n getImgList: function getImgList(row, column) {\n var _column$propsHttp, _column$props;\n\n var url = ((_column$propsHttp = column.propsHttp) === null || _column$propsHttp === void 0 ? void 0 : _column$propsHttp.home) || '';\n var value = ((_column$props = column.props) === null || _column$props === void 0 ? void 0 : _column$props.value) || global_variable__WEBPACK_IMPORTED_MODULE_2__[\"DIC_PROPS\"].value;\n var list = this.corArray(row, column);\n if (column.listType == 'picture-img') return [url + list];\n list.forEach(function (ele, index) {\n list[index] = url + (ele[value] ? ele[value] : ele);\n });\n return list;\n }\n }\n});\n\n//# sourceURL=webpack://AVUE/./packages/element-ui/crud/column/column-slot.vue?./node_modules/babel-loader/lib!./node_modules/vue-loader/dist??ref--1");
583
572
 
584
573
  /***/ }),
585
574
 
@@ -4669,7 +4658,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _ele
4669
4658
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
4670
4659
 
4671
4660
  "use strict";
4672
- 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?");
4673
4662
 
4674
4663
  /***/ }),
4675
4664
 
@@ -4921,7 +4910,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) *
4921
4910
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
4922
4911
 
4923
4912
  "use strict";
4924
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"version\", function() { return version; });\nvar version = '3.2.1';\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?");
4925
4914
 
4926
4915
  /***/ }),
4927
4916