@smallwei/avue 2.9.1 → 2.9.2

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 v2.9.1
2
+ * Avue.js v2.9.2
3
3
  * (c) 2017-2022 Smallwei
4
4
  * Released under the MIT License.
5
5
  *
@@ -134,7 +134,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var core
134
134
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
135
135
 
136
136
  "use strict";
137
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var core_create__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! core/create */ \"./src/core/create.js\");\n/* harmony import */ var global_variable__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! global/variable */ \"./src/global/variable.js\");\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (Object(core_create__WEBPACK_IMPORTED_MODULE_0__[\"default\"])({\n name: \"image-preview\",\n data: function data() {\n return {\n left: 0,\n top: 0,\n scale: 1,\n datas: [],\n rotate: 0,\n isShow: false,\n index: 0\n };\n },\n computed: {\n styleBoxName: function styleBoxName() {\n return {\n marginLeft: this.setPx(this.left),\n marginTop: this.setPx(this.top)\n };\n },\n styleName: function styleName() {\n return {\n transform: \"scale(\".concat(this.scale, \") rotate(\").concat(this.rotate, \"deg)\"),\n maxWidth: '100%',\n maxHeight: '100%'\n };\n },\n isRrrow: function isRrrow() {\n return this.imgLen != 1;\n },\n imgLen: function imgLen() {\n return this.imgList.length;\n },\n imgList: function imgList() {\n return this.datas.map(function (ele) {\n return ele.url;\n });\n }\n },\n methods: {\n handlePrint: function handlePrint() {\n this.$Print(\"#avue-image-preview__\".concat(this.index));\n },\n handlePrev: function handlePrev() {\n this.$refs.carousel.prev();\n this.index = this.$refs.carousel.activeIndex;\n this.stopItem();\n },\n handleNext: function handleNext() {\n this.$refs.carousel.next();\n this.index = this.$refs.carousel.activeIndex;\n this.stopItem();\n },\n stopItem: function stopItem() {\n this.left = 0;\n this.top = 0;\n this.$refs.item.forEach(function (ele) {\n ele.pause && ele.pause();\n });\n },\n isMedia: function isMedia(item) {\n return global_variable__WEBPACK_IMPORTED_MODULE_1__[\"typeList\"].img.test(item.url) || global_variable__WEBPACK_IMPORTED_MODULE_1__[\"typeList\"].video.test(item.url);\n },\n getIsVideo: function getIsVideo(item) {\n if (global_variable__WEBPACK_IMPORTED_MODULE_1__[\"typeList\"].video.test(item.url)) {\n return 'video';\n } else if (global_variable__WEBPACK_IMPORTED_MODULE_1__[\"typeList\"].img.test(item.url)) {\n return 'img';\n }\n },\n subScale: function subScale() {\n if (this.scale != 0.2) {\n this.scale = parseFloat((this.scale - 0.2).toFixed(2));\n }\n },\n addScale: function addScale() {\n this.scale = parseFloat((this.scale + 0.2).toFixed(2));\n },\n handleChange: function handleChange() {\n this.scale = 1;\n this.rotate = 0;\n },\n move: function move(e) {\n var _this = this;\n\n //获取目标元素s\n //算出鼠标相对元素的位置\n var disX = e.clientX;\n var disY = e.clientY;\n var scale = 2;\n\n document.onmousemove = function (e) {\n //鼠标按下并移动的事件\n //用鼠标的位置减去鼠标相对元素的位置,得到元素的位置\n var left = e.clientX - disX;\n var top = e.clientY - disY;\n disX = e.clientX;\n disY = e.clientY; //移动当前元素\n\n _this.left = _this.left + left * scale;\n _this.top = _this.top + top * scale;\n };\n\n document.onmouseup = function (e) {\n document.onmousemove = null;\n document.onmouseup = null;\n };\n },\n close: function close() {\n this.isShow = false;\n\n if (typeof this.ops.beforeClose == \"function\") {\n this.ops.beforeClose(this.datas, this.index);\n }\n\n this.$destroy();\n this.$el.remove();\n }\n }\n}));\n\n//# sourceURL=webpack://AVUE/./packages/core/components/image-preview/index.vue?./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options");
137
+ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var core_create__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! core/create */ \"./src/core/create.js\");\n/* harmony import */ var global_variable__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! global/variable */ \"./src/global/variable.js\");\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (Object(core_create__WEBPACK_IMPORTED_MODULE_0__[\"default\"])({\n name: \"image-preview\",\n data: function data() {\n return {\n left: 0,\n top: 0,\n scale: 1,\n datas: [],\n rotate: 0,\n isShow: false,\n index: 0,\n isFile: false\n };\n },\n computed: {\n styleBoxName: function styleBoxName() {\n return {\n marginLeft: this.setPx(this.left),\n marginTop: this.setPx(this.top)\n };\n },\n styleName: function styleName() {\n return {\n transform: \"scale(\".concat(this.scale, \") rotate(\").concat(this.rotate, \"deg)\"),\n maxWidth: '100%',\n maxHeight: '100%'\n };\n },\n isRrrow: function isRrrow() {\n return this.imgLen != 1;\n },\n imgLen: function imgLen() {\n return this.imgList.length;\n },\n imgList: function imgList() {\n return this.datas.map(function (ele) {\n return ele.url;\n });\n }\n },\n methods: {\n handlePrint: function handlePrint() {\n this.$Print(\"#avue-image-preview__\".concat(this.index));\n },\n handlePrev: function handlePrev() {\n this.$refs.carousel.prev();\n this.index = this.$refs.carousel.activeIndex;\n this.stopItem();\n },\n handleNext: function handleNext() {\n this.$refs.carousel.next();\n this.index = this.$refs.carousel.activeIndex;\n this.stopItem();\n },\n stopItem: function stopItem() {\n this.left = 0;\n this.top = 0;\n this.$refs.item.forEach(function (ele) {\n ele.pause && ele.pause();\n });\n },\n isMedia: function isMedia(item) {\n return global_variable__WEBPACK_IMPORTED_MODULE_1__[\"typeList\"].img.test(item.url) || global_variable__WEBPACK_IMPORTED_MODULE_1__[\"typeList\"].video.test(item.url);\n },\n getIsVideo: function getIsVideo(item) {\n if (global_variable__WEBPACK_IMPORTED_MODULE_1__[\"typeList\"].video.test(item.url)) {\n return 'video';\n } else if (global_variable__WEBPACK_IMPORTED_MODULE_1__[\"typeList\"].img.test(item.url)) {\n return 'img';\n }\n },\n subScale: function subScale() {\n if (this.scale != 0.2) {\n this.scale = parseFloat((this.scale - 0.2).toFixed(2));\n }\n },\n addScale: function addScale() {\n this.scale = parseFloat((this.scale + 0.2).toFixed(2));\n },\n handleChange: function handleChange() {\n this.scale = 1;\n this.rotate = 0;\n },\n move: function move(e) {\n var _this = this;\n\n //获取目标元素s\n //算出鼠标相对元素的位置\n var disX = e.clientX;\n var disY = e.clientY;\n var scale = 2;\n\n document.onmousemove = function (e) {\n //鼠标按下并移动的事件\n //用鼠标的位置减去鼠标相对元素的位置,得到元素的位置\n var left = e.clientX - disX;\n var top = e.clientY - disY;\n disX = e.clientX;\n disY = e.clientY; //移动当前元素\n\n _this.left = _this.left + left * scale;\n _this.top = _this.top + top * scale;\n };\n\n document.onmouseup = function (e) {\n document.onmousemove = null;\n document.onmouseup = null;\n };\n },\n close: function close() {\n this.isShow = false;\n\n if (typeof this.ops.beforeClose == \"function\") {\n this.ops.beforeClose(this.datas, this.index);\n }\n\n this.$destroy();\n this.$el.remove();\n }\n }\n}));\n\n//# sourceURL=webpack://AVUE/./packages/core/components/image-preview/index.vue?./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options");
138
138
 
139
139
  /***/ }),
140
140
 
@@ -1022,7 +1022,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var glob
1022
1022
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
1023
1023
 
1024
1024
  "use strict";
1025
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var core_create__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! core/create */ \"./src/core/create.js\");\n/* harmony import */ var _core_common_props_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../core/common/props.js */ \"./packages/core/common/props.js\");\n/* harmony import */ var _core_common_event_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../core/common/event.js */ \"./packages/core/common/event.js\");\n/* harmony import */ var _core_common_locale__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../core/common/locale */ \"./packages/core/common/locale.js\");\n/* harmony import */ var utils_util__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! utils/util */ \"./src/utils/util.js\");\n/* harmony import */ var plugin_canvas___WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! plugin/canvas/ */ \"./src/plugin/canvas/index.js\");\n/* harmony import */ var plugin_qiniu___WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! plugin/qiniu/ */ \"./src/plugin/qiniu/index.js\");\n/* harmony import */ var plugin_ali___WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! plugin/ali/ */ \"./src/plugin/ali/index.js\");\n/* harmony import */ var core_packages__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! core/packages */ \"./src/core/packages.js\");\n/* harmony import */ var global_variable__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! global/variable */ \"./src/global/variable.js\");\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n\n\n\n\n\n\n\n\n\n\n\nfunction getFileUrl(home) {\n var uri = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '';\n return uri.match(/(^http:\\/\\/|^https:\\/\\/|^\\/\\/|data:image\\/)/) ? uri : home + uri;\n}\n\n;\n/* harmony default export */ __webpack_exports__[\"default\"] = (Object(core_create__WEBPACK_IMPORTED_MODULE_0__[\"default\"])({\n name: \"upload\",\n mixins: [Object(_core_common_props_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"])(), Object(_core_common_event_js__WEBPACK_IMPORTED_MODULE_2__[\"default\"])(), _core_common_locale__WEBPACK_IMPORTED_MODULE_3__[\"default\"]],\n data: function data() {\n return {\n res: '',\n loading: false,\n text: [],\n file: {},\n menu: false,\n reload: Math.random()\n };\n },\n props: {\n data: {\n type: Object,\n \"default\": function _default() {\n return {};\n }\n },\n onRemove: Function,\n showFileList: {\n type: Boolean,\n \"default\": true\n },\n oss: {\n type: String\n },\n limit: {\n type: Number,\n \"default\": 10\n },\n headers: {\n type: Object,\n \"default\": function _default() {\n return {};\n }\n },\n accept: {\n type: [String, Array],\n \"default\": \"\"\n },\n canvasOption: {\n type: Object,\n \"default\": function _default() {\n return {};\n }\n },\n fileSize: {\n type: Number\n },\n dragFile: {\n type: Boolean,\n \"default\": false\n },\n drag: {\n type: Boolean,\n \"default\": false\n },\n loadText: {\n type: String,\n \"default\": \"文件上传中,请稍等\"\n },\n action: {\n type: String,\n \"default\": \"\"\n },\n uploadBefore: Function,\n uploadAfter: Function,\n uploadDelete: Function,\n uploadPreview: Function,\n uploadError: Function,\n uploadExceed: Function,\n httpRequest: Function\n },\n computed: {\n isMultiple: function isMultiple() {\n return this.isArray || this.isString || this.stringMode;\n },\n acceptList: function acceptList() {\n if (Array.isArray(this.accept)) {\n return this.accept.join(',');\n }\n\n return this.accept;\n },\n homeUrl: function homeUrl() {\n return this.propsHttp.home || '';\n },\n getIsVideo: function getIsVideo() {\n if (global_variable__WEBPACK_IMPORTED_MODULE_9__[\"typeList\"].video.test(this.imgUrl)) {\n return 'video';\n }\n\n return 'img';\n },\n fileName: function fileName() {\n return this.propsHttp.fileName || 'file';\n },\n isAliOss: function isAliOss() {\n return this.oss === \"ali\";\n },\n isQiniuOss: function isQiniuOss() {\n return this.oss === \"qiniu\";\n },\n isPictureImg: function isPictureImg() {\n return this.listType === \"picture-img\";\n },\n //单个头像图片\n imgUrl: function imgUrl() {\n if (!this.validatenull(this.text)) {\n return getFileUrl(this.homeUrl, this.text[0]);\n }\n },\n fileList: function fileList() {\n var _this = this;\n\n var list = [];\n (this.text || []).forEach(function (ele, index) {\n if (ele) {\n var name; //处理单个url链接取最后为label\n\n if (_this.isMultiple) {\n var i = ele.lastIndexOf('/');\n name = ele.substring(i + 1);\n }\n\n list.push({\n uid: index + '',\n status: 'done',\n isImage: ele.isImage || global_variable__WEBPACK_IMPORTED_MODULE_9__[\"typeList\"].img.test(ele[_this.valueKey]),\n name: _this.isMultiple ? name : ele[_this.labelKey],\n url: getFileUrl(_this.homeUrl, _this.isMultiple ? ele : ele[_this.valueKey])\n });\n }\n });\n return list;\n }\n },\n mounted: function mounted() {\n if (this.drag) {\n this.setSort();\n }\n },\n methods: {\n setSort: function setSort() {\n var _this2 = this;\n\n if (!window.Sortable) {\n core_packages__WEBPACK_IMPORTED_MODULE_8__[\"default\"].logs('Sortable');\n return;\n }\n\n var el = this.$el.querySelectorAll('.avue-upload > ul')[0];\n window.Sortable.create(el, {\n animation: 100,\n onEnd: function onEnd(evt) {\n var targetRow = _this2.text.splice(evt.oldIndex, 1)[0];\n\n _this2.text.splice(evt.newIndex, 0, targetRow);\n\n _this2.reload = Math.random();\n\n _this2.$nextTick(function () {\n return _this2.setSort();\n });\n }\n });\n },\n handleSuccess: function handleSuccess(file) {\n if (this.isPictureImg) {\n this.text.splice(0, 1, file[this.urlKey]);\n } else if (this.isMultiple) {\n this.text.push(file[this.urlKey]);\n } else {\n var obj = {};\n obj[this.labelKey] = file[this.nameKey];\n obj[this.valueKey] = file[this.urlKey];\n this.text.push(obj);\n }\n },\n handleRemove: function handleRemove(file, fileList) {\n this.onRemove && this.onRemove(file, fileList);\n this[\"delete\"](file);\n },\n handleError: function handleError(error) {\n this.uploadError && this.uploadError(error, this.column);\n },\n \"delete\": function _delete(file) {\n var _this3 = this;\n\n (this.text || []).forEach(function (ele, index) {\n if ((_this3.isMultiple ? ele : ele[_this3.valueKey]) === file.url.replace(_this3.homeUrl, '')) {\n _this3.text.splice(index, 1);\n }\n });\n },\n show: function show(data) {\n this.loading = false;\n this.handleSuccess(data || this.res);\n },\n hide: function hide(msg) {\n this.loading = false;\n this.handleError(msg);\n },\n handleFileChange: function handleFileChange(file, fileList) {\n fileList.splice(fileList.length - 1, 1);\n },\n httpUpload: function httpUpload(config) {\n var _this4 = this;\n\n if (typeof this.httpRequest === \"function\") {\n this.httpRequest(config);\n return;\n }\n\n this.loading = true;\n var file = config.file;\n var fileSize = file.size / 1024;\n this.file = config.file;\n\n if (!this.validatenull(fileSize) && fileSize > this.fileSize) {\n this.hide(\"文件太大不符合\");\n return;\n }\n\n var headers = Object.assign(this.headers, {\n \"Content-Type\": \"multipart/form-data\"\n }); //oss配置属性\n\n var oss_config = {};\n var client = {};\n var param = new FormData();\n\n var done = function done() {\n var callback = function callback(newFile) {\n var url = _this4.action; //附加属性\n\n for (var o in _this4.data) {\n param.append(o, _this4.data[o]);\n }\n\n var uploadfile = newFile || file;\n param.append(_this4.fileName, uploadfile); //七牛云oss存储\n\n if (_this4.isQiniuOss) {\n if (!window.CryptoJS) {\n core_packages__WEBPACK_IMPORTED_MODULE_8__[\"default\"].logs(\"CryptoJS\");\n\n _this4.hide();\n\n return;\n }\n\n oss_config = _this4.$AVUE.qiniu;\n var token = Object(plugin_qiniu___WEBPACK_IMPORTED_MODULE_6__[\"getToken\"])(oss_config.AK, oss_config.SK, {\n scope: oss_config.scope,\n deadline: new Date().getTime() + oss_config.deadline * 3600\n });\n param.append(\"token\", token);\n url = oss_config.bucket;\n } else if (_this4.isAliOss) {\n if (!window.OSS) {\n core_packages__WEBPACK_IMPORTED_MODULE_8__[\"default\"].logs(\"AliOSS\");\n\n _this4.hide();\n\n return;\n }\n\n oss_config = _this4.$AVUE.ali;\n client = Object(plugin_ali___WEBPACK_IMPORTED_MODULE_7__[\"getClient\"])(oss_config);\n }\n\n (function () {\n if (_this4.isAliOss) {\n return client.put(uploadfile.name, uploadfile, {\n headers: _this4.headers\n });\n } else {\n return _this4.$axios.post(url, param, {\n headers: headers\n });\n }\n })().then(function (res) {\n _this4.res = {};\n\n if (_this4.isQiniuOss) {\n res.data.key = oss_config.url + res.data.key;\n }\n\n if (_this4.isAliOss) {\n _this4.res = Object(utils_util__WEBPACK_IMPORTED_MODULE_4__[\"getAsVal\"])(res, _this4.resKey);\n } else {\n _this4.res = Object(utils_util__WEBPACK_IMPORTED_MODULE_4__[\"getAsVal\"])(res.data, _this4.resKey);\n }\n\n if (typeof _this4.uploadAfter === \"function\") _this4.uploadAfter(_this4.res, _this4.show, function () {\n _this4.loading = false;\n }, _this4.column);else _this4.show(_this4.res);\n })[\"catch\"](function (error) {\n if (typeof _this4.uploadAfter === \"function\") _this4.uploadAfter(error, _this4.hide, function () {\n _this4.loading = false;\n }, _this4.column);else _this4.hide(error);\n });\n };\n\n if (typeof _this4.uploadBefore === \"function\") _this4.uploadBefore(_this4.file, callback, function () {\n _this4.loading = false;\n }, _this4.column);else callback();\n }; //是否开启水印\n\n\n if (!this.validatenull(this.canvasOption)) {\n Object(plugin_canvas___WEBPACK_IMPORTED_MODULE_5__[\"detailImg\"])(file, this.canvasOption).then(function (res) {\n file = res;\n done();\n });\n } else {\n done();\n }\n },\n handleExceed: function handleExceed(files, fileList) {\n this.uploadExceed && this.uploadExceed(this.limit, files, fileList, this.column);\n },\n handlePreview: function handlePreview(file) {\n var _this5 = this;\n\n var callback = function callback() {\n var url = file.url;\n\n var list = _this5.fileList.map(function (ele) {\n return Object.assign(ele, {\n type: _this5.typeList.video.test(ele.url) ? 'video' : ''\n });\n });\n\n var index = _this5.fileList.findIndex(function (ele) {\n return ele.url === url;\n });\n\n _this5.$ImagePreview(list, index);\n };\n\n if (typeof this.uploadPreview === \"function\") {\n this.uploadPreview(file, this.column, callback);\n } else {\n callback();\n }\n },\n handleDelete: function handleDelete(file) {\n var _this6 = this;\n\n this.beforeRemove(file).then(function () {\n _this6.text = [];\n _this6.menu = false;\n })[\"catch\"](function () {});\n },\n beforeRemove: function beforeRemove(file) {\n if (typeof this.uploadDelete === \"function\") {\n return this.uploadDelete(file, this.column);\n } else {\n return Promise.resolve();\n }\n }\n }\n}));\n\n//# sourceURL=webpack://AVUE/./packages/element-ui/upload/index.vue?./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options");
1025
+ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var core_create__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! core/create */ \"./src/core/create.js\");\n/* harmony import */ var _core_common_props_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../core/common/props.js */ \"./packages/core/common/props.js\");\n/* harmony import */ var _core_common_event_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../core/common/event.js */ \"./packages/core/common/event.js\");\n/* harmony import */ var _core_common_locale__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../core/common/locale */ \"./packages/core/common/locale.js\");\n/* harmony import */ var utils_util__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! utils/util */ \"./src/utils/util.js\");\n/* harmony import */ var plugin_canvas___WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! plugin/canvas/ */ \"./src/plugin/canvas/index.js\");\n/* harmony import */ var plugin_qiniu___WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! plugin/qiniu/ */ \"./src/plugin/qiniu/index.js\");\n/* harmony import */ var plugin_ali___WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! plugin/ali/ */ \"./src/plugin/ali/index.js\");\n/* harmony import */ var core_packages__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! core/packages */ \"./src/core/packages.js\");\n/* harmony import */ var global_variable__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! global/variable */ \"./src/global/variable.js\");\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n\n\n\n\n\n\n\n\n\n\n\nfunction getFileUrl(home) {\n var uri = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '';\n return uri.match(/(^http:\\/\\/|^https:\\/\\/|^\\/\\/|data:image\\/)/) ? uri : home + uri;\n}\n\n;\n/* harmony default export */ __webpack_exports__[\"default\"] = (Object(core_create__WEBPACK_IMPORTED_MODULE_0__[\"default\"])({\n name: \"upload\",\n mixins: [Object(_core_common_props_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"])(), Object(_core_common_event_js__WEBPACK_IMPORTED_MODULE_2__[\"default\"])(), _core_common_locale__WEBPACK_IMPORTED_MODULE_3__[\"default\"]],\n data: function data() {\n return {\n res: '',\n loading: false,\n text: [],\n file: {},\n menu: false,\n reload: Math.random()\n };\n },\n props: {\n data: {\n type: Object,\n \"default\": function _default() {\n return {};\n }\n },\n onRemove: Function,\n showFileList: {\n type: Boolean,\n \"default\": true\n },\n oss: {\n type: String\n },\n limit: {\n type: Number,\n \"default\": 10\n },\n headers: {\n type: Object,\n \"default\": function _default() {\n return {};\n }\n },\n accept: {\n type: [String, Array],\n \"default\": \"\"\n },\n canvasOption: {\n type: Object,\n \"default\": function _default() {\n return {};\n }\n },\n fileSize: {\n type: Number\n },\n dragFile: {\n type: Boolean,\n \"default\": false\n },\n drag: {\n type: Boolean,\n \"default\": false\n },\n loadText: {\n type: String,\n \"default\": \"文件上传中,请稍等\"\n },\n action: {\n type: String,\n \"default\": \"\"\n },\n uploadBefore: Function,\n uploadAfter: Function,\n uploadDelete: Function,\n uploadPreview: Function,\n uploadError: Function,\n uploadExceed: Function,\n httpRequest: Function\n },\n computed: {\n isMultiple: function isMultiple() {\n return this.isArray || this.isString || this.stringMode;\n },\n acceptList: function acceptList() {\n if (Array.isArray(this.accept)) {\n return this.accept.join(',');\n }\n\n return this.accept;\n },\n homeUrl: function homeUrl() {\n return this.propsHttp.home || '';\n },\n getIsVideo: function getIsVideo() {\n if (global_variable__WEBPACK_IMPORTED_MODULE_9__[\"typeList\"].video.test(this.imgUrl)) {\n return 'video';\n }\n\n return 'img';\n },\n fileName: function fileName() {\n return this.propsHttp.fileName || 'file';\n },\n isAliOss: function isAliOss() {\n return this.oss === \"ali\";\n },\n isQiniuOss: function isQiniuOss() {\n return this.oss === \"qiniu\";\n },\n isPictureImg: function isPictureImg() {\n return this.listType === \"picture-img\";\n },\n //单个头像图片\n imgUrl: function imgUrl() {\n if (!this.validatenull(this.text)) {\n return getFileUrl(this.homeUrl, this.text[0]);\n }\n },\n fileList: function fileList() {\n var _this = this;\n\n var list = [];\n (this.text || []).forEach(function (ele, index) {\n if (ele) {\n var name; //处理单个url链接取最后为label\n\n if (_this.isMultiple) {\n var i = ele.lastIndexOf('/');\n name = ele.substring(i + 1);\n }\n\n list.push({\n uid: index + '',\n status: 'done',\n isImage: ele.isImage,\n name: _this.isMultiple ? name : ele[_this.labelKey],\n url: getFileUrl(_this.homeUrl, _this.isMultiple ? ele : ele[_this.valueKey])\n });\n }\n });\n return list;\n }\n },\n mounted: function mounted() {\n if (this.drag) {\n this.setSort();\n }\n },\n methods: {\n setSort: function setSort() {\n var _this2 = this;\n\n if (!window.Sortable) {\n core_packages__WEBPACK_IMPORTED_MODULE_8__[\"default\"].logs('Sortable');\n return;\n }\n\n var el = this.$el.querySelectorAll('.avue-upload > ul')[0];\n window.Sortable.create(el, {\n animation: 100,\n onEnd: function onEnd(evt) {\n var targetRow = _this2.text.splice(evt.oldIndex, 1)[0];\n\n _this2.text.splice(evt.newIndex, 0, targetRow);\n\n _this2.reload = Math.random();\n\n _this2.$nextTick(function () {\n return _this2.setSort();\n });\n }\n });\n },\n handleSuccess: function handleSuccess(file) {\n if (this.isPictureImg) {\n this.text.splice(0, 1, file[this.urlKey]);\n } else if (this.isMultiple) {\n this.text.push(file[this.urlKey]);\n } else {\n var obj = {};\n obj[this.labelKey] = file[this.nameKey];\n obj[this.valueKey] = file[this.urlKey];\n this.text.push(obj);\n }\n },\n handleRemove: function handleRemove(file, fileList) {\n this.onRemove && this.onRemove(file, fileList);\n this[\"delete\"](file);\n },\n handleError: function handleError(error) {\n this.uploadError && this.uploadError(error, this.column);\n },\n \"delete\": function _delete(file) {\n var _this3 = this;\n\n (this.text || []).forEach(function (ele, index) {\n if ((_this3.isMultiple ? ele : ele[_this3.valueKey]) === file.url.replace(_this3.homeUrl, '')) {\n _this3.text.splice(index, 1);\n }\n });\n },\n show: function show(data) {\n this.loading = false;\n this.handleSuccess(data || this.res);\n },\n hide: function hide(msg) {\n this.loading = false;\n this.handleError(msg);\n },\n handleFileChange: function handleFileChange(file, fileList) {\n fileList.splice(fileList.length - 1, 1);\n },\n httpUpload: function httpUpload(config) {\n var _this4 = this;\n\n if (typeof this.httpRequest === \"function\") {\n this.httpRequest(config);\n return;\n }\n\n this.loading = true;\n var file = config.file;\n var fileSize = file.size / 1024;\n this.file = config.file;\n\n if (!this.validatenull(fileSize) && fileSize > this.fileSize) {\n this.hide(\"文件太大不符合\");\n return;\n }\n\n var headers = Object.assign(this.headers, {\n \"Content-Type\": \"multipart/form-data\"\n }); //oss配置属性\n\n var oss_config = {};\n var client = {};\n var param = new FormData();\n\n var done = function done() {\n var callback = function callback(newFile) {\n var url = _this4.action; //附加属性\n\n for (var o in _this4.data) {\n param.append(o, _this4.data[o]);\n }\n\n var uploadfile = newFile || file;\n param.append(_this4.fileName, uploadfile); //七牛云oss存储\n\n if (_this4.isQiniuOss) {\n if (!window.CryptoJS) {\n core_packages__WEBPACK_IMPORTED_MODULE_8__[\"default\"].logs(\"CryptoJS\");\n\n _this4.hide();\n\n return;\n }\n\n oss_config = _this4.$AVUE.qiniu;\n var token = Object(plugin_qiniu___WEBPACK_IMPORTED_MODULE_6__[\"getToken\"])(oss_config.AK, oss_config.SK, {\n scope: oss_config.scope,\n deadline: new Date().getTime() + oss_config.deadline * 3600\n });\n param.append(\"token\", token);\n url = oss_config.bucket;\n } else if (_this4.isAliOss) {\n if (!window.OSS) {\n core_packages__WEBPACK_IMPORTED_MODULE_8__[\"default\"].logs(\"AliOSS\");\n\n _this4.hide();\n\n return;\n }\n\n oss_config = _this4.$AVUE.ali;\n client = Object(plugin_ali___WEBPACK_IMPORTED_MODULE_7__[\"getClient\"])(oss_config);\n }\n\n (function () {\n if (_this4.isAliOss) {\n return client.put(uploadfile.name, uploadfile, {\n headers: _this4.headers\n });\n } else {\n return _this4.$axios.post(url, param, {\n headers: headers\n });\n }\n })().then(function (res) {\n _this4.res = {};\n\n if (_this4.isQiniuOss) {\n res.data.key = oss_config.url + res.data.key;\n }\n\n if (_this4.isAliOss) {\n _this4.res = Object(utils_util__WEBPACK_IMPORTED_MODULE_4__[\"getAsVal\"])(res, _this4.resKey);\n } else {\n _this4.res = Object(utils_util__WEBPACK_IMPORTED_MODULE_4__[\"getAsVal\"])(res.data, _this4.resKey);\n }\n\n if (typeof _this4.uploadAfter === \"function\") _this4.uploadAfter(_this4.res, _this4.show, function () {\n _this4.loading = false;\n }, _this4.column);else _this4.show(_this4.res);\n })[\"catch\"](function (error) {\n if (typeof _this4.uploadAfter === \"function\") _this4.uploadAfter(error, _this4.hide, function () {\n _this4.loading = false;\n }, _this4.column);else _this4.hide(error);\n });\n };\n\n if (typeof _this4.uploadBefore === \"function\") _this4.uploadBefore(_this4.file, callback, function () {\n _this4.loading = false;\n }, _this4.column);else callback();\n }; //是否开启水印\n\n\n if (!this.validatenull(this.canvasOption)) {\n Object(plugin_canvas___WEBPACK_IMPORTED_MODULE_5__[\"detailImg\"])(file, this.canvasOption).then(function (res) {\n file = res;\n done();\n });\n } else {\n done();\n }\n },\n handleExceed: function handleExceed(files, fileList) {\n this.uploadExceed && this.uploadExceed(this.limit, files, fileList, this.column);\n },\n handlePreview: function handlePreview(file) {\n var _this5 = this;\n\n var callback = function callback() {\n var index = _this5.fileList.findIndex(function (ele) {\n return ele.url === file.url;\n });\n\n _this5.$ImagePreview(_this5.fileList, index);\n };\n\n if (typeof this.uploadPreview === \"function\") {\n this.uploadPreview(file, this.column, callback);\n } else {\n callback();\n }\n },\n handleDelete: function handleDelete(file) {\n var _this6 = this;\n\n this.beforeRemove(file).then(function () {\n _this6.text = [];\n _this6.menu = false;\n })[\"catch\"](function () {});\n },\n beforeRemove: function beforeRemove(file) {\n if (typeof this.uploadDelete === \"function\") {\n return this.uploadDelete(file, this.column);\n } else {\n return Promise.resolve();\n }\n }\n }\n}));\n\n//# sourceURL=webpack://AVUE/./packages/element-ui/upload/index.vue?./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options");
1026
1026
 
1027
1027
  /***/ }),
1028
1028
 
@@ -1107,15 +1107,15 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) *
1107
1107
 
1108
1108
  /***/ }),
1109
1109
 
1110
- /***/ "./node_modules/vue-loader/lib/loaders/templateLoader.js?!./node_modules/vue-loader/lib/index.js?!./packages/core/components/image-preview/index.vue?vue&type=template&id=68d49af4&":
1110
+ /***/ "./node_modules/vue-loader/lib/loaders/templateLoader.js?!./node_modules/vue-loader/lib/index.js?!./packages/core/components/image-preview/index.vue?vue&type=template&id=3ab738a4&":
1111
1111
  /*!***********************************************************************************************************************************************************************************************************************!*\
1112
- !*** ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/core/components/image-preview/index.vue?vue&type=template&id=68d49af4& ***!
1112
+ !*** ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/core/components/image-preview/index.vue?vue&type=template&id=3ab738a4& ***!
1113
1113
  \***********************************************************************************************************************************************************************************************************************/
1114
1114
  /*! exports provided: render, staticRenderFns */
1115
1115
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
1116
1116
 
1117
1117
  "use strict";
1118
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"render\", function() { return render; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"staticRenderFns\", function() { return staticRenderFns; });\nvar render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return (_vm.isShow)?_c('div',{class:_vm.b()},[(_vm.ops.modal)?_c('div',{class:_vm.b('mask'),on:{\"click\":_vm.close}}):_vm._e(),_vm._v(\" \"),_c('span',{staticClass:\"el-image-viewer__btn el-image-viewer__close\",on:{\"click\":_vm.close}},[_c('i',{staticClass:\"el-icon-circle-close\"})]),_vm._v(\" \"),(_vm.isRrrow)?_c('span',{staticClass:\"el-image-viewer__btn el-image-viewer__prev\",on:{\"click\":function($event){return _vm.handlePrev()}}},[_c('i',{staticClass:\"el-icon-arrow-left\"})]):_vm._e(),_vm._v(\" \"),(_vm.isRrrow)?_c('span',{staticClass:\"el-image-viewer__btn el-image-viewer__next\",on:{\"click\":function($event){return _vm.handleNext()}}},[_c('i',{staticClass:\"el-icon-arrow-right\"})]):_vm._e(),_vm._v(\" \"),_c('div',{ref:\"box\",class:_vm.b('box')},[_c('el-carousel',{ref:\"carousel\",attrs:{\"show-indicators\":false,\"initial-index\":_vm.index,\"initial-swipe\":_vm.index,\"interval\":0,\"arrow\":\"never\",\"indicator-position\":\"none\",\"height\":_vm.height},on:{\"change\":_vm.handleChange}},_vm._l((_vm.datas),function(item,indexs){return _c('el-carousel-item',{key:indexs,nativeOn:{\"click\":function($event){if($event.target !== $event.currentTarget){ return null; }_vm.ops.closeOnClickModal?_vm.close():''}}},[(_vm.isMedia(item))?_c(_vm.getIsVideo(item),{ref:\"item\",refInFor:true,tag:\"img\",style:([_vm.styleName,_vm.styleBoxName]),attrs:{\"id\":'avue-image-preview__'+indexs,\"src\":item.url,\"controls\":\"controls\",\"ondragstart\":\"return false\"},on:{\"mousedown\":_vm.move}}):_c('div',{class:_vm.b('file'),attrs:{\"id\":'avue-image-preview__'+indexs}},[_c('a',{attrs:{\"href\":item.url,\"target\":\"_blank\"}},[_c('i',{staticClass:\"el-icon-document\"}),_vm._v(\" \"),_c('p',[_vm._v(_vm._s(item.name))])])])],1)}),1)],1),_vm._v(\" \"),_c('div',{staticClass:\"el-image-viewer__btn el-image-viewer__actions\"},[_c('div',{staticClass:\"el-image-viewer__actions__inner\"},[_c('i',{staticClass:\"el-icon-zoom-out\",on:{\"click\":_vm.subScale}}),_vm._v(\" \"),_c('i',{staticClass:\"el-icon-zoom-in\",on:{\"click\":_vm.addScale}}),_vm._v(\" \"),_c('i',{staticClass:\"el-image-viewer__actions__divider\"}),_vm._v(\" \"),_c('i',{staticClass:\"el-icon-printer\",on:{\"click\":_vm.handlePrint}}),_vm._v(\" \"),_c('i',{staticClass:\"el-image-viewer__actions__divider\"}),_vm._v(\" \"),_c('i',{staticClass:\"el-icon-refresh-left\",on:{\"click\":function($event){_vm.rotate=_vm.rotate-90}}}),_vm._v(\" \"),_c('i',{staticClass:\"el-icon-refresh-right\",on:{\"click\":function($event){_vm.rotate=_vm.rotate+90}}})])])]):_vm._e()}\nvar staticRenderFns = []\n\n\n\n//# sourceURL=webpack://AVUE/./packages/core/components/image-preview/index.vue?./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options");
1118
+ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"render\", function() { return render; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"staticRenderFns\", function() { return staticRenderFns; });\nvar render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return (_vm.isShow)?_c('div',{class:_vm.b()},[(_vm.ops.modal)?_c('div',{class:_vm.b('mask'),on:{\"click\":_vm.close}}):_vm._e(),_vm._v(\" \"),_c('span',{staticClass:\"el-image-viewer__btn el-image-viewer__close\",on:{\"click\":_vm.close}},[_c('i',{staticClass:\"el-icon-circle-close\"})]),_vm._v(\" \"),(_vm.isRrrow)?_c('span',{staticClass:\"el-image-viewer__btn el-image-viewer__prev\",on:{\"click\":function($event){return _vm.handlePrev()}}},[_c('i',{staticClass:\"el-icon-arrow-left\"})]):_vm._e(),_vm._v(\" \"),(_vm.isRrrow)?_c('span',{staticClass:\"el-image-viewer__btn el-image-viewer__next\",on:{\"click\":function($event){return _vm.handleNext()}}},[_c('i',{staticClass:\"el-icon-arrow-right\"})]):_vm._e(),_vm._v(\" \"),_c('div',{ref:\"box\",class:_vm.b('box')},[_c('el-carousel',{ref:\"carousel\",attrs:{\"show-indicators\":false,\"initial-index\":_vm.index,\"initial-swipe\":_vm.index,\"interval\":0,\"arrow\":\"never\",\"indicator-position\":\"none\",\"height\":_vm.height},on:{\"change\":_vm.handleChange}},_vm._l((_vm.datas),function(item,indexs){return _c('el-carousel-item',{key:indexs,nativeOn:{\"click\":function($event){if($event.target !== $event.currentTarget){ return null; }_vm.ops.closeOnClickModal?_vm.close():''}}},[(item.isImage==false)?_c('div',{class:_vm.b('file'),attrs:{\"id\":'avue-image-preview__'+indexs}},[_c('a',{attrs:{\"href\":item.url,\"target\":\"_blank\"}},[_c('i',{staticClass:\"el-icon-document\"}),_vm._v(\" \"),_c('p',[_vm._v(_vm._s(item.name))])])]):_c(_vm.getIsVideo(item),{ref:\"item\",refInFor:true,tag:\"img\",style:([_vm.styleName,_vm.styleBoxName]),attrs:{\"id\":'avue-image-preview__'+indexs,\"src\":item.url,\"controls\":\"controls\",\"ondragstart\":\"return false\"},on:{\"mousedown\":_vm.move}})],1)}),1)],1),_vm._v(\" \"),_c('div',{staticClass:\"el-image-viewer__btn el-image-viewer__actions\"},[_c('div',{staticClass:\"el-image-viewer__actions__inner\"},[_c('i',{staticClass:\"el-icon-zoom-out\",on:{\"click\":_vm.subScale}}),_vm._v(\" \"),_c('i',{staticClass:\"el-icon-zoom-in\",on:{\"click\":_vm.addScale}}),_vm._v(\" \"),_c('i',{staticClass:\"el-image-viewer__actions__divider\"}),_vm._v(\" \"),_c('i',{staticClass:\"el-icon-printer\",on:{\"click\":_vm.handlePrint}}),_vm._v(\" \"),_c('i',{staticClass:\"el-image-viewer__actions__divider\"}),_vm._v(\" \"),_c('i',{staticClass:\"el-icon-refresh-left\",on:{\"click\":function($event){_vm.rotate=_vm.rotate-90}}}),_vm._v(\" \"),_c('i',{staticClass:\"el-icon-refresh-right\",on:{\"click\":function($event){_vm.rotate=_vm.rotate+90}}})])])]):_vm._e()}\nvar staticRenderFns = []\n\n\n\n//# sourceURL=webpack://AVUE/./packages/core/components/image-preview/index.vue?./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options");
1119
1119
 
1120
1120
  /***/ }),
1121
1121
 
@@ -1995,9 +1995,9 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) *
1995
1995
 
1996
1996
  /***/ }),
1997
1997
 
1998
- /***/ "./node_modules/vue-loader/lib/loaders/templateLoader.js?!./node_modules/vue-loader/lib/index.js?!./packages/element-ui/upload/index.vue?vue&type=template&id=6276cefd&":
1998
+ /***/ "./node_modules/vue-loader/lib/loaders/templateLoader.js?!./node_modules/vue-loader/lib/index.js?!./packages/element-ui/upload/index.vue?vue&type=template&id=dd4b87ba&":
1999
1999
  /*!***********************************************************************************************************************************************************************************************************!*\
2000
- !*** ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/element-ui/upload/index.vue?vue&type=template&id=6276cefd& ***!
2000
+ !*** ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/element-ui/upload/index.vue?vue&type=template&id=dd4b87ba& ***!
2001
2001
  \***********************************************************************************************************************************************************************************************************/
2002
2002
  /*! exports provided: render, staticRenderFns */
2003
2003
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
@@ -2195,7 +2195,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _ind
2195
2195
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
2196
2196
 
2197
2197
  "use strict";
2198
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _index_vue_vue_type_template_id_68d49af4___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./index.vue?vue&type=template&id=68d49af4& */ \"./packages/core/components/image-preview/index.vue?vue&type=template&id=68d49af4&\");\n/* harmony import */ var _index_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./index.vue?vue&type=script&lang=js& */ \"./packages/core/components/image-preview/index.vue?vue&type=script&lang=js&\");\n/* empty/unused harmony star reexport *//* harmony import */ var _node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js */ \"./node_modules/vue-loader/lib/runtime/componentNormalizer.js\");\n\n\n\n\n\n/* normalize component */\n\nvar component = Object(_node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_2__[\"default\"])(\n _index_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__[\"default\"],\n _index_vue_vue_type_template_id_68d49af4___WEBPACK_IMPORTED_MODULE_0__[\"render\"],\n _index_vue_vue_type_template_id_68d49af4___WEBPACK_IMPORTED_MODULE_0__[\"staticRenderFns\"],\n false,\n null,\n null,\n null\n \n)\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (component.exports);\n\n//# sourceURL=webpack://AVUE/./packages/core/components/image-preview/index.vue?");
2198
+ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _index_vue_vue_type_template_id_3ab738a4___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./index.vue?vue&type=template&id=3ab738a4& */ \"./packages/core/components/image-preview/index.vue?vue&type=template&id=3ab738a4&\");\n/* harmony import */ var _index_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./index.vue?vue&type=script&lang=js& */ \"./packages/core/components/image-preview/index.vue?vue&type=script&lang=js&\");\n/* empty/unused harmony star reexport *//* harmony import */ var _node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js */ \"./node_modules/vue-loader/lib/runtime/componentNormalizer.js\");\n\n\n\n\n\n/* normalize component */\n\nvar component = Object(_node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_2__[\"default\"])(\n _index_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__[\"default\"],\n _index_vue_vue_type_template_id_3ab738a4___WEBPACK_IMPORTED_MODULE_0__[\"render\"],\n _index_vue_vue_type_template_id_3ab738a4___WEBPACK_IMPORTED_MODULE_0__[\"staticRenderFns\"],\n false,\n null,\n null,\n null\n \n)\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (component.exports);\n\n//# sourceURL=webpack://AVUE/./packages/core/components/image-preview/index.vue?");
2199
2199
 
2200
2200
  /***/ }),
2201
2201
 
@@ -2211,15 +2211,15 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _nod
2211
2211
 
2212
2212
  /***/ }),
2213
2213
 
2214
- /***/ "./packages/core/components/image-preview/index.vue?vue&type=template&id=68d49af4&":
2214
+ /***/ "./packages/core/components/image-preview/index.vue?vue&type=template&id=3ab738a4&":
2215
2215
  /*!*****************************************************************************************!*\
2216
- !*** ./packages/core/components/image-preview/index.vue?vue&type=template&id=68d49af4& ***!
2216
+ !*** ./packages/core/components/image-preview/index.vue?vue&type=template&id=3ab738a4& ***!
2217
2217
  \*****************************************************************************************/
2218
2218
  /*! exports provided: render, staticRenderFns */
2219
2219
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
2220
2220
 
2221
2221
  "use strict";
2222
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _node_modules_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_vue_loader_lib_index_js_vue_loader_options_index_vue_vue_type_template_id_68d49af4___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!../../../../node_modules/vue-loader/lib??vue-loader-options!./index.vue?vue&type=template&id=68d49af4& */ \"./node_modules/vue-loader/lib/loaders/templateLoader.js?!./node_modules/vue-loader/lib/index.js?!./packages/core/components/image-preview/index.vue?vue&type=template&id=68d49af4&\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"render\", function() { return _node_modules_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_vue_loader_lib_index_js_vue_loader_options_index_vue_vue_type_template_id_68d49af4___WEBPACK_IMPORTED_MODULE_0__[\"render\"]; });\n\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"staticRenderFns\", function() { return _node_modules_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_vue_loader_lib_index_js_vue_loader_options_index_vue_vue_type_template_id_68d49af4___WEBPACK_IMPORTED_MODULE_0__[\"staticRenderFns\"]; });\n\n\n\n//# sourceURL=webpack://AVUE/./packages/core/components/image-preview/index.vue?");
2222
+ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _node_modules_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_vue_loader_lib_index_js_vue_loader_options_index_vue_vue_type_template_id_3ab738a4___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!../../../../node_modules/vue-loader/lib??vue-loader-options!./index.vue?vue&type=template&id=3ab738a4& */ \"./node_modules/vue-loader/lib/loaders/templateLoader.js?!./node_modules/vue-loader/lib/index.js?!./packages/core/components/image-preview/index.vue?vue&type=template&id=3ab738a4&\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"render\", function() { return _node_modules_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_vue_loader_lib_index_js_vue_loader_options_index_vue_vue_type_template_id_3ab738a4___WEBPACK_IMPORTED_MODULE_0__[\"render\"]; });\n\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"staticRenderFns\", function() { return _node_modules_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_vue_loader_lib_index_js_vue_loader_options_index_vue_vue_type_template_id_3ab738a4___WEBPACK_IMPORTED_MODULE_0__[\"staticRenderFns\"]; });\n\n\n\n//# sourceURL=webpack://AVUE/./packages/core/components/image-preview/index.vue?");
2223
2223
 
2224
2224
  /***/ }),
2225
2225
 
@@ -4907,7 +4907,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _nod
4907
4907
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
4908
4908
 
4909
4909
  "use strict";
4910
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _index_vue_vue_type_template_id_6276cefd___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./index.vue?vue&type=template&id=6276cefd& */ \"./packages/element-ui/upload/index.vue?vue&type=template&id=6276cefd&\");\n/* harmony import */ var _index_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./index.vue?vue&type=script&lang=js& */ \"./packages/element-ui/upload/index.vue?vue&type=script&lang=js&\");\n/* empty/unused harmony star reexport *//* harmony import */ var _node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js */ \"./node_modules/vue-loader/lib/runtime/componentNormalizer.js\");\n\n\n\n\n\n/* normalize component */\n\nvar component = Object(_node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_2__[\"default\"])(\n _index_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__[\"default\"],\n _index_vue_vue_type_template_id_6276cefd___WEBPACK_IMPORTED_MODULE_0__[\"render\"],\n _index_vue_vue_type_template_id_6276cefd___WEBPACK_IMPORTED_MODULE_0__[\"staticRenderFns\"],\n false,\n null,\n null,\n null\n \n)\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (component.exports);\n\n//# sourceURL=webpack://AVUE/./packages/element-ui/upload/index.vue?");
4910
+ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _index_vue_vue_type_template_id_dd4b87ba___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./index.vue?vue&type=template&id=dd4b87ba& */ \"./packages/element-ui/upload/index.vue?vue&type=template&id=dd4b87ba&\");\n/* harmony import */ var _index_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./index.vue?vue&type=script&lang=js& */ \"./packages/element-ui/upload/index.vue?vue&type=script&lang=js&\");\n/* empty/unused harmony star reexport *//* harmony import */ var _node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js */ \"./node_modules/vue-loader/lib/runtime/componentNormalizer.js\");\n\n\n\n\n\n/* normalize component */\n\nvar component = Object(_node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_2__[\"default\"])(\n _index_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__[\"default\"],\n _index_vue_vue_type_template_id_dd4b87ba___WEBPACK_IMPORTED_MODULE_0__[\"render\"],\n _index_vue_vue_type_template_id_dd4b87ba___WEBPACK_IMPORTED_MODULE_0__[\"staticRenderFns\"],\n false,\n null,\n null,\n null\n \n)\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (component.exports);\n\n//# sourceURL=webpack://AVUE/./packages/element-ui/upload/index.vue?");
4911
4911
 
4912
4912
  /***/ }),
4913
4913
 
@@ -4923,15 +4923,15 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _nod
4923
4923
 
4924
4924
  /***/ }),
4925
4925
 
4926
- /***/ "./packages/element-ui/upload/index.vue?vue&type=template&id=6276cefd&":
4926
+ /***/ "./packages/element-ui/upload/index.vue?vue&type=template&id=dd4b87ba&":
4927
4927
  /*!*****************************************************************************!*\
4928
- !*** ./packages/element-ui/upload/index.vue?vue&type=template&id=6276cefd& ***!
4928
+ !*** ./packages/element-ui/upload/index.vue?vue&type=template&id=dd4b87ba& ***!
4929
4929
  \*****************************************************************************/
4930
4930
  /*! exports provided: render, staticRenderFns */
4931
4931
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
4932
4932
 
4933
4933
  "use strict";
4934
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _node_modules_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_vue_loader_lib_index_js_vue_loader_options_index_vue_vue_type_template_id_6276cefd___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!../../../node_modules/vue-loader/lib??vue-loader-options!./index.vue?vue&type=template&id=6276cefd& */ \"./node_modules/vue-loader/lib/loaders/templateLoader.js?!./node_modules/vue-loader/lib/index.js?!./packages/element-ui/upload/index.vue?vue&type=template&id=6276cefd&\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"render\", function() { return _node_modules_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_vue_loader_lib_index_js_vue_loader_options_index_vue_vue_type_template_id_6276cefd___WEBPACK_IMPORTED_MODULE_0__[\"render\"]; });\n\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"staticRenderFns\", function() { return _node_modules_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_vue_loader_lib_index_js_vue_loader_options_index_vue_vue_type_template_id_6276cefd___WEBPACK_IMPORTED_MODULE_0__[\"staticRenderFns\"]; });\n\n\n\n//# sourceURL=webpack://AVUE/./packages/element-ui/upload/index.vue?");
4934
+ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _node_modules_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_vue_loader_lib_index_js_vue_loader_options_index_vue_vue_type_template_id_dd4b87ba___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!../../../node_modules/vue-loader/lib??vue-loader-options!./index.vue?vue&type=template&id=dd4b87ba& */ \"./node_modules/vue-loader/lib/loaders/templateLoader.js?!./node_modules/vue-loader/lib/index.js?!./packages/element-ui/upload/index.vue?vue&type=template&id=dd4b87ba&\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"render\", function() { return _node_modules_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_vue_loader_lib_index_js_vue_loader_options_index_vue_vue_type_template_id_dd4b87ba___WEBPACK_IMPORTED_MODULE_0__[\"render\"]; });\n\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"staticRenderFns\", function() { return _node_modules_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_vue_loader_lib_index_js_vue_loader_options_index_vue_vue_type_template_id_dd4b87ba___WEBPACK_IMPORTED_MODULE_0__[\"staticRenderFns\"]; });\n\n\n\n//# sourceURL=webpack://AVUE/./packages/element-ui/upload/index.vue?");
4935
4935
 
4936
4936
  /***/ }),
4937
4937
 
@@ -5423,7 +5423,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) *
5423
5423
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
5424
5424
 
5425
5425
  "use strict";
5426
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"version\", function() { return version; });\nvar version = '2.9.1';\n\n//# sourceURL=webpack://AVUE/./src/version.js?");
5426
+ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"version\", function() { return version; });\nvar version = '2.9.2';\n\n//# sourceURL=webpack://AVUE/./src/version.js?");
5427
5427
 
5428
5428
  /***/ }),
5429
5429