@smallwei/avue 2.8.26 → 2.8.27

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.8.26
2
+ * Avue.js v2.8.27
3
3
  * (c) 2017-2022 Smallwei
4
4
  * Released under the MIT License.
5
5
  *
@@ -386,7 +386,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var core
386
386
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
387
387
 
388
388
  "use strict";
389
- 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 dayjs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! dayjs */ \"./node_modules/dayjs/dayjs.min.js\");\n/* harmony import */ var dayjs__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(dayjs__WEBPACK_IMPORTED_MODULE_1__);\nfunction _typeof(obj) { \"@babel/helpers - typeof\"; if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\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//\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//\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: \"chat\",\n data: function data() {\n return {\n upload: {\n box: false,\n src: \"\",\n type: '',\n title: ''\n },\n visible: false,\n imgSrc: '',\n videoSrc: '',\n audioSrc: '',\n keys: \"\",\n show: false,\n msg: ''\n };\n },\n props: {\n beforeOpen: Function,\n tools: {\n type: Object,\n \"default\": function _default() {\n return {\n img: true,\n video: true,\n file: true\n };\n }\n },\n placeholder: {\n type: String,\n \"default\": '请输入...'\n },\n width: {\n type: [String, Number],\n \"default\": 320\n },\n height: {\n type: [String, Number],\n \"default\": 520\n },\n value: {\n type: String\n },\n notice: {\n type: Boolean,\n \"default\": true\n },\n audio: {\n type: Array,\n \"default\": function _default() {\n return ['https://www.helloweba.net/demo/notifysound/notify.ogg', 'https://www.helloweba.net/demo/notifysound/notify.mp3', 'https://www.helloweba.net/demo/notifysound/notify.wav'];\n }\n },\n config: {\n type: Object,\n \"default\": function _default() {\n return {};\n }\n },\n keylist: {\n type: Array,\n \"default\": function _default() {\n return [];\n }\n },\n list: {\n type: Array,\n \"default\": function _default() {\n return [];\n }\n }\n },\n watch: {\n 'upload.box': function uploadBox(val) {\n var _this = this;\n\n if (val) {\n this.$nextTick(function () {\n _this.$refs.form.clearValidate();\n });\n }\n },\n value: {\n handler: function handler() {\n this.msg = this.value;\n },\n immediate: true\n },\n msg: {\n handler: function handler() {\n this.$emit('input', this.msg);\n },\n immediate: true\n }\n },\n computed: {\n heightStyleName: function heightStyleName() {\n return {\n height: this.setPx(this.height)\n };\n },\n widthStyleName: function widthStyleName() {\n return {\n width: this.setPx(this.width)\n };\n },\n msgActive: function msgActive() {\n return !this.validatenull(this.msg.replace(/[\\r\\n]/g, \"\"));\n }\n },\n methods: {\n uploadSubmit: function uploadSubmit() {\n var _this2 = this;\n\n this.$refs.form.validate(function (valid) {\n if (valid) {\n _this2.upload.box = false;\n\n _this2.$emit('submit', _this2.getDetail(_this2.upload));\n }\n });\n },\n handleUpload: function handleUpload(type) {\n this.upload.type = type;\n this.upload.src = '';\n\n if (type === 'img') {\n this.upload.title = \"图片上传\";\n } else if (type === 'video') {\n this.upload.title = \"视频上传\";\n } else if (type === 'file') {\n this.upload.title = \"文件上传\";\n }\n\n this.upload.box = true;\n },\n handleClose: function handleClose(done) {\n this.imgSrc = undefined;\n this.videoSrc = undefined;\n this.audioSrc = undefined;\n done();\n },\n addKey: function addKey() {\n if (this.keys !== '') {\n this.$emit('keyadd', this.keys);\n this.keys = '';\n }\n\n this.visible = false;\n },\n sendKey: function sendKey(key) {\n this.$emit('keysend', key);\n },\n getAudio: function getAudio() {\n this.$refs.chatAudio.play();\n },\n getNotification: function getNotification(text) {\n var safe = this;\n var NotificationInstance = Notification || window.Notification;\n\n if (!!NotificationInstance) {\n var setPermission = function setPermission() {\n //请求获取通知权限\n NotificationInstance.requestPermission(function (PERMISSION) {\n if (PERMISSION === 'granted') {\n CreatNotification();\n } else {\n console.log('用户无情残忍的拒绝了你!!!');\n }\n });\n };\n\n var CreatNotification = function CreatNotification() {\n var n = new Notification(safe.config.name, {\n body: text,\n icon: safe.config.img\n });\n\n n.onshow = function () {\n safe.getAudio();\n setTimeout(function () {\n n.close();\n }, 2500);\n };\n\n n.onclick = function (e) {\n n.close();\n };\n };\n\n var permissionNow = NotificationInstance.permission;\n\n if (permissionNow === 'granted') {\n //允许通知\n CreatNotification();\n } else if (permissionNow === 'denied') {\n console.log('用户拒绝了你!!!');\n } else {\n setPermission();\n }\n }\n },\n //mine为'我'的对话\n //text为内容\n pushMsg: function pushMsg() {\n var _this3 = this;\n\n var params = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n var mine = params.mine === true ? true : false;\n var text = params.text || {};\n var date = params.date;\n var textObj = {\n date: date || dayjs__WEBPACK_IMPORTED_MODULE_1___default()().format('YYYY-MM-DD HH:mm:ss'),\n text: function () {\n if (_typeof(text) != 'object') {\n return {\n text: text\n };\n }\n\n return text;\n }(),\n mine: mine,\n img: mine ? this.config.myImg : this.config.img,\n name: mine ? this.config.myName : this.config.name\n };\n this.list.push(textObj);\n setTimeout(function () {\n _this3.setScroll();\n }, 50);\n },\n setScroll: function setScroll(count) {\n var _this4 = this;\n\n //滚动条一直处于下方\n this.$nextTick(function () {\n _this4.$refs.main.scrollTop = count || _this4.$refs.main.scrollHeight;\n });\n },\n //用户主动发送\n handleSend: function handleSend() {\n if (this.msgActive) {\n this.$emit('submit');\n }\n },\n //选择列表\n handleItemMsg: function handleItemMsg(item) {\n this.$emit('submit', item.ask);\n },\n //处理排版\n handleDetail: function handleDetail() {\n var _this5 = this;\n\n var html = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';\n var result = html;\n setTimeout(function () {\n var list = _this5.$refs.content;\n list.forEach(function (ele) {\n var _loop = function _loop(i) {\n var child = ele.children[i];\n\n if (child.getAttribute('data-flag') != 0) {\n child.setAttribute('data-flag', 0);\n\n child.onclick = function () {\n _this5.handleEvent(child.dataset);\n };\n\n if (child.tagName === 'IMG') {\n child.className = 'web__msg--img';\n child.src = child.getAttribute('data-src');\n } else if (child.tagName === 'VIDEO') {\n child.className = 'web__msg--video';\n child.src = child.getAttribute('data-src');\n } else if (child.tagName === 'AUDIO') {\n child.className = 'web__msg--audio';\n child.controls = 'controls';\n child.src = child.getAttribute('data-src');\n } else if (child.tagName === 'FILE') {\n child.className = 'web__msg--file';\n child.innerHTML = \"<h2>File</h2><span>\".concat(child.getAttribute('data-name'), \"</span>\");\n } else if (child.tagName === 'MAP') {\n child.className = 'web__msg--file web__msg--map';\n child.innerHTML = \"<h2>Map</h2><span>\".concat(child.getAttribute('data-longitude'), \" , \").concat(child.getAttribute('data-latitude'), \"<br />\").concat(child.getAttribute('data-address'), \"</span>\");\n }\n\n _this5.setScroll();\n }\n };\n\n for (var i = 0; i < ele.children.length; i++) {\n _loop(i);\n }\n });\n }, 0);\n return result;\n },\n getDetail: function getDetail() {\n var params = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n var type = params.type,\n src = params.src,\n name = params.name,\n longitude = params.longitude,\n latitude = params.latitude,\n address = params.address;\n\n if (type === 'img') {\n return \"<img data-type=\\\"IMG\\\" data-src=\\\"\".concat(src, \"\\\" />\");\n } else if (type === 'video') {\n return \"<video data-type=\\\"VIDEO\\\" data-src=\\\"\".concat(src, \"\\\"></video>\");\n } else if (type === 'audio') {\n return \"<audio data-type=\\\"AUDIO\\\" data-src=\\\"\".concat(src, \"\\\"></audio>\");\n } else if (type === 'file') {\n return \"<file data-type=\\\"FILE\\\" data-name=\\\"\".concat(name, \"\\\" data-src=\\\"\").concat(src, \"\\\"></file>\");\n } else if (type === 'map') {\n return \"<map data-type=\\\"MAP\\\" data-src=\\\"\".concat(src, \"\\\" data-address=\\\"\").concat(address, \" \\\"data-latitude=\\\"\").concat(latitude, \"\\\" data-longitude=\\\"\").concat(longitude, \"\\\"></map>\");\n }\n },\n //处理事件\n handleEvent: function handleEvent(params) {\n var _this6 = this;\n\n var callback = function callback() {\n if (params.type === 'IMG') {\n _this6.imgSrc = params.src;\n _this6.show = true;\n } else if (params.type === 'VIDEO') {\n _this6.videoSrc = params.src;\n _this6.show = true;\n } else if (params.type === 'AUDIO') {\n _this6.audioSrc = params.src;\n _this6.show = true;\n } else if (params.type === 'FILE') {\n window.open(params.src);\n }\n };\n\n if (typeof this.beforeOpen === 'function') {\n this.beforeOpen(params, callback);\n } else {\n callback();\n }\n },\n rootSendMsg: function rootSendMsg(msg) {\n this.pushMsg({\n text: msg\n });\n\n if (this.notice) {\n this.getNotification(msg.text || msg);\n }\n }\n }\n}));\n\n//# sourceURL=webpack://AVUE/./packages/element-ui/chat/index.vue?./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options");
389
+ 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 dayjs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! dayjs */ \"./node_modules/dayjs/dayjs.min.js\");\n/* harmony import */ var dayjs__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(dayjs__WEBPACK_IMPORTED_MODULE_1__);\nfunction _typeof(obj) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && \"function\" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }, _typeof(obj); }\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//\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//\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: \"chat\",\n data: function data() {\n return {\n upload: {\n box: false,\n src: \"\",\n type: '',\n title: ''\n },\n visible: false,\n imgSrc: '',\n videoSrc: '',\n audioSrc: '',\n keys: \"\",\n show: false,\n msg: ''\n };\n },\n props: {\n beforeOpen: Function,\n tools: {\n type: Object,\n \"default\": function _default() {\n return {\n img: true,\n video: true,\n file: true\n };\n }\n },\n placeholder: {\n type: String,\n \"default\": '请输入...'\n },\n width: {\n type: [String, Number],\n \"default\": 320\n },\n height: {\n type: [String, Number],\n \"default\": 520\n },\n value: {\n type: String\n },\n notice: {\n type: Boolean,\n \"default\": true\n },\n audio: {\n type: Array,\n \"default\": function _default() {\n return ['https://www.helloweba.net/demo/notifysound/notify.ogg', 'https://www.helloweba.net/demo/notifysound/notify.mp3', 'https://www.helloweba.net/demo/notifysound/notify.wav'];\n }\n },\n config: {\n type: Object,\n \"default\": function _default() {\n return {};\n }\n },\n keylist: {\n type: Array,\n \"default\": function _default() {\n return [];\n }\n },\n list: {\n type: Array,\n \"default\": function _default() {\n return [];\n }\n }\n },\n watch: {\n 'upload.box': function uploadBox(val) {\n var _this = this;\n\n if (val) {\n this.$nextTick(function () {\n _this.$refs.form.clearValidate();\n });\n }\n },\n value: {\n handler: function handler() {\n this.msg = this.value;\n },\n immediate: true\n },\n msg: {\n handler: function handler() {\n this.$emit('input', this.msg);\n },\n immediate: true\n }\n },\n computed: {\n heightStyleName: function heightStyleName() {\n return {\n height: this.setPx(this.height)\n };\n },\n widthStyleName: function widthStyleName() {\n return {\n width: this.setPx(this.width)\n };\n },\n msgActive: function msgActive() {\n return !this.validatenull(this.msg.replace(/[\\r\\n]/g, \"\"));\n }\n },\n methods: {\n uploadSubmit: function uploadSubmit() {\n var _this2 = this;\n\n this.$refs.form.validate(function (valid) {\n if (valid) {\n _this2.upload.box = false;\n\n _this2.$emit('submit', _this2.getDetail(_this2.upload));\n }\n });\n },\n handleUpload: function handleUpload(type) {\n this.upload.type = type;\n this.upload.src = '';\n\n if (type === 'img') {\n this.upload.title = \"图片上传\";\n } else if (type === 'video') {\n this.upload.title = \"视频上传\";\n } else if (type === 'file') {\n this.upload.title = \"文件上传\";\n }\n\n this.upload.box = true;\n },\n handleClose: function handleClose(done) {\n this.imgSrc = undefined;\n this.videoSrc = undefined;\n this.audioSrc = undefined;\n done();\n },\n addKey: function addKey() {\n if (this.keys !== '') {\n this.$emit('keyadd', this.keys);\n this.keys = '';\n }\n\n this.visible = false;\n },\n sendKey: function sendKey(key) {\n this.$emit('keysend', key);\n },\n getAudio: function getAudio() {\n this.$refs.chatAudio.play();\n },\n getNotification: function getNotification(text) {\n var safe = this;\n var NotificationInstance = Notification || window.Notification;\n\n if (!!NotificationInstance) {\n var setPermission = function setPermission() {\n //请求获取通知权限\n NotificationInstance.requestPermission(function (PERMISSION) {\n if (PERMISSION === 'granted') {\n CreatNotification();\n } else {\n console.log('用户无情残忍的拒绝了你!!!');\n }\n });\n };\n\n var CreatNotification = function CreatNotification() {\n var n = new Notification(safe.config.name, {\n body: text,\n icon: safe.config.img\n });\n\n n.onshow = function () {\n safe.getAudio();\n setTimeout(function () {\n n.close();\n }, 2500);\n };\n\n n.onclick = function (e) {\n n.close();\n };\n };\n\n var permissionNow = NotificationInstance.permission;\n\n if (permissionNow === 'granted') {\n //允许通知\n CreatNotification();\n } else if (permissionNow === 'denied') {\n console.log('用户拒绝了你!!!');\n } else {\n setPermission();\n }\n }\n },\n //mine为'我'的对话\n //text为内容\n pushMsg: function pushMsg() {\n var _this3 = this;\n\n var params = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n var mine = params.mine === true ? true : false;\n var text = params.text || {};\n var date = params.date;\n var textObj = {\n date: date || dayjs__WEBPACK_IMPORTED_MODULE_1___default()().format('YYYY-MM-DD HH:mm:ss'),\n text: function () {\n if (_typeof(text) != 'object') {\n return {\n text: text\n };\n }\n\n return text;\n }(),\n mine: mine,\n img: mine ? this.config.myImg : this.config.img,\n name: mine ? this.config.myName : this.config.name\n };\n this.list.push(textObj);\n setTimeout(function () {\n _this3.setScroll();\n }, 50);\n },\n setScroll: function setScroll(count) {\n var _this4 = this;\n\n //滚动条一直处于下方\n this.$nextTick(function () {\n _this4.$refs.main.scrollTop = count || _this4.$refs.main.scrollHeight;\n });\n },\n //用户主动发送\n handleSend: function handleSend() {\n if (this.msgActive) {\n this.$emit('submit');\n }\n },\n //选择列表\n handleItemMsg: function handleItemMsg(item) {\n this.$emit('submit', item.ask);\n },\n //处理排版\n handleDetail: function handleDetail() {\n var _this5 = this;\n\n var html = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';\n var result = html;\n setTimeout(function () {\n var list = _this5.$refs.content;\n list.forEach(function (ele) {\n var _loop = function _loop(i) {\n var child = ele.children[i];\n\n if (child.getAttribute('data-flag') != 0) {\n child.setAttribute('data-flag', 0);\n\n child.onclick = function () {\n _this5.handleEvent(child.dataset);\n };\n\n if (child.tagName === 'IMG') {\n child.className = 'web__msg--img';\n child.src = child.getAttribute('data-src');\n } else if (child.tagName === 'VIDEO') {\n child.className = 'web__msg--video';\n child.src = child.getAttribute('data-src');\n } else if (child.tagName === 'AUDIO') {\n child.className = 'web__msg--audio';\n child.controls = 'controls';\n child.src = child.getAttribute('data-src');\n } else if (child.tagName === 'FILE') {\n child.className = 'web__msg--file';\n child.innerHTML = \"<h2>File</h2><span>\".concat(child.getAttribute('data-name'), \"</span>\");\n } else if (child.tagName === 'MAP') {\n child.className = 'web__msg--file web__msg--map';\n child.innerHTML = \"<h2>Map</h2><span>\".concat(child.getAttribute('data-longitude'), \" , \").concat(child.getAttribute('data-latitude'), \"<br />\").concat(child.getAttribute('data-address'), \"</span>\");\n }\n\n _this5.setScroll();\n }\n };\n\n for (var i = 0; i < ele.children.length; i++) {\n _loop(i);\n }\n });\n }, 0);\n return result;\n },\n getDetail: function getDetail() {\n var params = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n var type = params.type,\n src = params.src,\n name = params.name,\n longitude = params.longitude,\n latitude = params.latitude,\n address = params.address;\n\n if (type === 'img') {\n return \"<img data-type=\\\"IMG\\\" data-src=\\\"\".concat(src, \"\\\" />\");\n } else if (type === 'video') {\n return \"<video data-type=\\\"VIDEO\\\" data-src=\\\"\".concat(src, \"\\\"></video>\");\n } else if (type === 'audio') {\n return \"<audio data-type=\\\"AUDIO\\\" data-src=\\\"\".concat(src, \"\\\"></audio>\");\n } else if (type === 'file') {\n return \"<file data-type=\\\"FILE\\\" data-name=\\\"\".concat(name, \"\\\" data-src=\\\"\").concat(src, \"\\\"></file>\");\n } else if (type === 'map') {\n return \"<map data-type=\\\"MAP\\\" data-src=\\\"\".concat(src, \"\\\" data-address=\\\"\").concat(address, \" \\\"data-latitude=\\\"\").concat(latitude, \"\\\" data-longitude=\\\"\").concat(longitude, \"\\\"></map>\");\n }\n },\n //处理事件\n handleEvent: function handleEvent(params) {\n var _this6 = this;\n\n var callback = function callback() {\n if (params.type === 'IMG') {\n _this6.imgSrc = params.src;\n _this6.show = true;\n } else if (params.type === 'VIDEO') {\n _this6.videoSrc = params.src;\n _this6.show = true;\n } else if (params.type === 'AUDIO') {\n _this6.audioSrc = params.src;\n _this6.show = true;\n } else if (params.type === 'FILE') {\n window.open(params.src);\n }\n };\n\n if (typeof this.beforeOpen === 'function') {\n this.beforeOpen(params, callback);\n } else {\n callback();\n }\n },\n rootSendMsg: function rootSendMsg(msg) {\n this.pushMsg({\n text: msg\n });\n\n if (this.notice) {\n this.getNotification(msg.text || msg);\n }\n }\n }\n}));\n\n//# sourceURL=webpack://AVUE/./packages/element-ui/chat/index.vue?./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options");
390
390
 
391
391
  /***/ }),
392
392
 
@@ -398,7 +398,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var core
398
398
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
399
399
 
400
400
  "use strict";
401
- 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//\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: \"checkbox\",\n props: {\n all: {\n type: Boolean,\n \"default\": false\n }\n },\n mixins: [Object(_core_common_props_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"])(), Object(_core_common_event_js__WEBPACK_IMPORTED_MODULE_2__[\"default\"])()],\n data: function data() {\n return {\n checkAll: false,\n isIndeterminate: false,\n name: 'checkbox'\n };\n },\n watch: {\n dic: function dic() {\n this.handleCheckChange(this.text);\n },\n text: {\n handler: function handler(val) {\n this.handleChange(val);\n this.handleCheckChange(val);\n },\n immediate: true\n }\n },\n created: function created() {},\n mounted: function mounted() {},\n methods: {\n handleCheckAll: function handleCheckAll(val) {\n var _this = this;\n\n if (!this.all) return;\n this.text = val ? this.dic.map(function (ele) {\n return ele[_this.valueKey];\n }) : [];\n this.isIndeterminate = false;\n },\n handleCheckChange: function handleCheckChange() {\n var value = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];\n if (!this.all) return;\n var checkedCount = value.length;\n if (checkedCount === 0) return;\n var dicLen = this.dic.length;\n this.checkAll = checkedCount === dicLen;\n this.isIndeterminate = checkedCount > 0 && checkedCount < dicLen;\n }\n }\n}));\n\n//# sourceURL=webpack://AVUE/./packages/element-ui/checkbox/index.vue?./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options");
401
+ 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//\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: \"checkbox\",\n props: {\n all: {\n type: Boolean,\n \"default\": false\n }\n },\n mixins: [Object(_core_common_props_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"])(), Object(_core_common_event_js__WEBPACK_IMPORTED_MODULE_2__[\"default\"])()],\n data: function data() {\n return {\n checkAll: false,\n isIndeterminate: false,\n name: 'checkbox'\n };\n },\n watch: {\n dic: function dic() {\n this.handleCheckChange(this.text);\n },\n text: {\n handler: function handler(val) {\n this.handleChange(val);\n this.handleCheckChange(val);\n },\n immediate: true\n }\n },\n created: function created() {},\n mounted: function mounted() {},\n methods: {\n handleCheckAll: function handleCheckAll(val) {\n var _this = this;\n\n if (!this.all) return;\n this.text = val ? this.dic.map(function (ele) {\n return ele[_this.valueKey];\n }) : [];\n this.isIndeterminate = false;\n },\n handleCheckChange: function handleCheckChange() {\n var value = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];\n if (!this.all) return;\n var checkedCount = value.length;\n var dicLen = this.dic.length;\n this.checkAll = checkedCount === dicLen;\n this.isIndeterminate = checkedCount > 0 && checkedCount < dicLen;\n }\n }\n}));\n\n//# sourceURL=webpack://AVUE/./packages/element-ui/checkbox/index.vue?./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options");
402
402
 
403
403
  /***/ }),
404
404
 
@@ -482,7 +482,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var core
482
482
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
483
483
 
484
484
  "use strict";
485
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var core_detail__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! core/detail */ \"./src/core/detail.js\");\n/* harmony import */ var global_variable__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! global/variable */ \"./src/global/variable.js\");\n/* harmony import */ var core_dic__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! core/dic */ \"./src/core/dic.js\");\n/* harmony import */ var _core_components_form_index__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../core/components/form/index */ \"./packages/core/components/form/index.vue\");\nfunction _typeof(obj) { \"@babel/helpers - typeof\"; if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\nfunction _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }\n\nfunction _nonIterableSpread() { throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\n\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\n\nfunction _iterableToArray(iter) { if (typeof Symbol !== \"undefined\" && iter[Symbol.iterator] != null || iter[\"@@iterator\"] != null) return Array.from(iter); }\n\nfunction _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }\n\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }\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//\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//\nvar count = {};\n\n\n\n\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\n name: 'column-slot',\n inject: [\"dynamic\", 'crud'],\n components: {\n formTemp: _core_components_form_index__WEBPACK_IMPORTED_MODULE_3__[\"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 Object.keys(this.dynamic).forEach(function (ele) {\n if (list.includes(ele)) {\n _this[ele] = _this.dynamic[ele];\n }\n });\n },\n methods: {\n allParams: function allParams(item) {\n return {\n is: this.$typeList.video.test(item) ? 'video' : 'img'\n };\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_0__[\"detail\"])(row, column, this.crud.tableOption, DIC);\n row[\"$\" + column.prop] = result;\n }\n\n return result;\n },\n columnChange: function columnChange($index, row, column) {\n if (this.validatenull(count[$index])) count[$index] = {};\n if (column.cascader) this.handleChange(column, row);\n\n if (!count[$index][column.prop]) {\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 this.crud.$emit('column-change', {\n row: row,\n column: column,\n index: $index,\n value: row[column.prop]\n });\n count[$index][column.prop] = true;\n this.$nextTick(function () {\n return count[$index][column.prop] = false;\n });\n }\n },\n handleChange: function handleChange(column, row) {\n var _this2 = this;\n\n this.$nextTick(function () {\n var columnOption = _toConsumableArray(_this2.crud.propOption); //本节点;\n\n\n var cascader = column.cascader;\n var str = cascader.join(\",\");\n var columnNextProp = cascader[0];\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.$set(_this2.crud.cascaderDIC, rowIndex, {});\n }\n\n if (_this2.crud.formIndexList.includes(rowIndex)) {\n //清空子类字典\n cascader.forEach(function (ele) {\n _this2.$set(_this2.crud.cascaderDIC[rowIndex], ele.prop, []);\n\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_2__[\"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 = Array.isArray(res) ? res : []; // 修改字典\n\n _this2.$set(_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_1__[\"DIC_PROPS\"].value];\n }\n });\n });\n },\n openImg: function openImg(list, index) {\n list = list.map(function (ele) {\n return {\n thumbUrl: ele,\n url: ele\n };\n });\n this.$ImagePreview(list, index);\n },\n corArray: function corArray(list) {\n var separator = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : global_variable__WEBPACK_IMPORTED_MODULE_1__[\"DIC_SPLIT\"];\n\n if (this.validatenull(list)) {\n return [];\n } else if (!Array.isArray(list)) {\n return list.split(separator);\n }\n\n return list;\n },\n handleDetail: function handleDetail(row, column) {\n var result = row[column.prop];\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_0__[\"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 getImgList: function getImgList(row, column) {\n var url = (column.propsHttp || {}).home || '';\n var value = (column.props || {}).value || global_variable__WEBPACK_IMPORTED_MODULE_1__[\"DIC_PROPS\"].value;\n if (this.validatenull(row[column.prop])) return [];\n if (column.listType == 'picture-img') return [url + row[column.prop]];\n var list = this.corArray(this.deepClone(row[column.prop]), column.separator);\n list.forEach(function (ele, index) {\n if (_typeof(ele) === 'object') {\n list[index] = url + ele[value];\n } else {\n list[index] = url + ele;\n }\n });\n return list;\n }\n }\n});\n\n//# sourceURL=webpack://AVUE/./packages/element-ui/crud/column-slot.vue?./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options");
485
+ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var core_detail__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! core/detail */ \"./src/core/detail.js\");\n/* harmony import */ var global_variable__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! global/variable */ \"./src/global/variable.js\");\n/* harmony import */ var core_dic__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! core/dic */ \"./src/core/dic.js\");\n/* harmony import */ var _core_components_form_index__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../core/components/form/index */ \"./packages/core/components/form/index.vue\");\nfunction _typeof(obj) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && \"function\" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }, _typeof(obj); }\n\nfunction _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }\n\nfunction _nonIterableSpread() { throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\n\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\n\nfunction _iterableToArray(iter) { if (typeof Symbol !== \"undefined\" && iter[Symbol.iterator] != null || iter[\"@@iterator\"] != null) return Array.from(iter); }\n\nfunction _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }\n\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }\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//\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//\nvar count = {};\n\n\n\n\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\n name: 'column-slot',\n inject: [\"dynamic\", 'crud'],\n components: {\n formTemp: _core_components_form_index__WEBPACK_IMPORTED_MODULE_3__[\"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 Object.keys(this.dynamic).forEach(function (ele) {\n if (list.includes(ele)) {\n _this[ele] = _this.dynamic[ele];\n }\n });\n },\n methods: {\n allParams: function allParams(item) {\n return {\n is: this.$typeList.video.test(item) ? 'video' : 'img'\n };\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_0__[\"detail\"])(row, column, this.crud.tableOption, DIC);\n row[\"$\" + column.prop] = result;\n }\n\n return result;\n },\n columnChange: function columnChange($index, row, column) {\n if (this.validatenull(count[$index])) count[$index] = {};\n if (column.cascader) this.handleChange(column, row);\n\n if (!count[$index][column.prop]) {\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 this.crud.$emit('column-change', {\n row: row,\n column: column,\n index: $index,\n value: row[column.prop]\n });\n count[$index][column.prop] = true;\n this.$nextTick(function () {\n return count[$index][column.prop] = false;\n });\n }\n },\n handleChange: function handleChange(column, row) {\n var _this2 = this;\n\n this.$nextTick(function () {\n var columnOption = _toConsumableArray(_this2.crud.propOption); //本节点;\n\n\n var cascader = column.cascader;\n var str = cascader.join(\",\");\n var columnNextProp = cascader[0];\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.$set(_this2.crud.cascaderDIC, rowIndex, {});\n }\n\n if (_this2.crud.formIndexList.includes(rowIndex)) {\n //清空子类字典\n cascader.forEach(function (ele) {\n _this2.$set(_this2.crud.cascaderDIC[rowIndex], ele.prop, []);\n\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_2__[\"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 = Array.isArray(res) ? res : []; // 修改字典\n\n _this2.$set(_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_1__[\"DIC_PROPS\"].value];\n }\n });\n });\n },\n openImg: function openImg(list, index) {\n list = list.map(function (ele) {\n return {\n thumbUrl: ele,\n url: ele\n };\n });\n this.$ImagePreview(list, index);\n },\n corArray: function corArray(list) {\n var separator = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : global_variable__WEBPACK_IMPORTED_MODULE_1__[\"DIC_SPLIT\"];\n\n if (this.validatenull(list)) {\n return [];\n } else if (!Array.isArray(list)) {\n return list.split(separator);\n }\n\n return list;\n },\n handleDetail: function handleDetail(row, column) {\n var result = row[column.prop];\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_0__[\"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 getImgList: function getImgList(row, column) {\n var url = (column.propsHttp || {}).home || '';\n var value = (column.props || {}).value || global_variable__WEBPACK_IMPORTED_MODULE_1__[\"DIC_PROPS\"].value;\n var result = this.handleDetail(row, column);\n if (this.validatenull(result)) return [];\n if (column.listType == 'picture-img') return [url + result];\n var list = this.corArray(this.deepClone(result), column.separator);\n list.forEach(function (ele, index) {\n list[index] = url + (_typeof(ele) === 'object' ? ele[value] : ele);\n });\n return list;\n }\n }\n});\n\n//# sourceURL=webpack://AVUE/./packages/element-ui/crud/column-slot.vue?./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options");
486
486
 
487
487
  /***/ }),
488
488
 
@@ -566,7 +566,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _cor
566
566
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
567
567
 
568
568
  "use strict";
569
- 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 utils_util__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! utils/util */ \"./src/utils/util.js\");\n/* harmony import */ var utils_validate__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! utils/validate */ \"./src/utils/validate.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 core_slot__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! core/slot */ \"./src/core/slot.js\");\n/* harmony import */ var core_dataformat__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! core/dataformat */ \"./src/core/dataformat.js\");\n/* harmony import */ var _config__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./config */ \"./packages/element-ui/crud/config.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/* harmony default export */ __webpack_exports__[\"default\"] = (Object(core_create__WEBPACK_IMPORTED_MODULE_0__[\"default\"])({\n name: \"crud__search\",\n inject: [\"crud\"],\n mixins: [_core_common_locale__WEBPACK_IMPORTED_MODULE_3__[\"default\"], core_slot__WEBPACK_IMPORTED_MODULE_4__[\"default\"]],\n data: function data() {\n return {\n show: false,\n flag: false,\n reload: false,\n defaultForm: {\n searchForm: {}\n },\n searchShow: true,\n searchForm: {}\n };\n },\n props: {\n search: {\n type: Object,\n \"default\": function _default() {\n return {};\n }\n }\n },\n watch: {\n 'crud.propOption': {\n handler: function handler() {\n this.dataFormat();\n },\n immediate: true\n },\n search: {\n handler: function handler() {\n this.searchForm = Object.assign(this.searchForm, this.search);\n },\n immediate: true,\n deep: true\n },\n searchShow: {\n handler: function handler() {\n var _this = this;\n\n this.$nextTick(function () {\n setTimeout(function () {\n _this.crud.getTableHeight();\n }, 300);\n });\n }\n }\n },\n created: function created() {\n this.initFun();\n },\n computed: {\n isGroup: function isGroup() {\n return !this.validatenull(this.crud.tableOption.group);\n },\n isSearchIcon: function isSearchIcon() {\n return this.vaildData(this.crud.option.searchIcon, this.$AVUE.searchIcon) === true && this.columnLen > this.searchIndex;\n },\n searchIndex: function searchIndex() {\n return this.crud.option.searchIndex || 2;\n },\n columnLen: function columnLen() {\n var count = 0;\n this.crud.propOption.forEach(function (ele) {\n if (ele.search) count++;\n });\n return count;\n },\n option: function option() {\n var _this2 = this;\n\n var option = this.crud.option;\n\n var detailColumn = function detailColumn() {\n var list = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];\n var column = [];\n var count = 0; //根据order排序\n\n list.forEach(function (ele) {\n if (ele.search) {\n var isCount = count < _this2.searchIndex;\n var obj = {};\n Object.keys(ele).forEach(function (item) {\n var key = 'search';\n\n if (item.includes(key)) {\n var _result = item.replace(key, '');\n\n if (_result.length == 0) return;\n _result = _result.replace(_result[0], _result[0].toLowerCase());\n obj[_result] = ele[item];\n }\n });\n ele = Object.assign(ele, obj, {\n type: Object(core_dataformat__WEBPACK_IMPORTED_MODULE_5__[\"getSearchType\"])(ele),\n detail: false,\n dicFlag: ele.cascaderItem ? true : _this2.vaildData(ele.dicFlag, false),\n span: ele.searchSpan || option.searchSpan || _config__WEBPACK_IMPORTED_MODULE_6__[\"default\"].searchSpan,\n gutter: ele.searchGutter || option.searchGutter || _config__WEBPACK_IMPORTED_MODULE_6__[\"default\"].searchGutter,\n labelWidth: ele.searchLabelWidth || option.searchLabelWidth || _config__WEBPACK_IMPORTED_MODULE_6__[\"default\"].searchLabelWidth,\n labelPosition: ele.searchLabelPosition || option.searchLabelPosition,\n size: ele.searchSize || option.searchSize,\n value: ele.searchValue || _this2.searchForm[ele.prop],\n rules: ele.searchRules,\n row: ele.searchRow,\n display: _this2.isSearchIcon ? _this2.show ? true : isCount : true\n });\n delete ele.bind;\n var whiteList = ['disabled', 'readonly'];\n whiteList.forEach(function (key) {\n delete ele[key];\n });\n column.push(ele);\n count = count + 1;\n }\n });\n return column;\n };\n\n var dataDetail = function dataDetail(list) {\n var result = _this2.deepClone(list);\n\n result.translate = false;\n\n if (result.group) {\n delete result.group;\n }\n\n result.column = detailColumn(_this2.deepClone(_this2.crud.propOption));\n result = Object.assign(result, {\n rowKey: option.searchRowKey || 'null',\n tabs: false,\n enter: _this2.vaildData(option.searchEnter, true),\n printBtn: false,\n mockBtn: false,\n size: option.searchSize,\n submitText: option.searchBtnText || _this2.t('crud.searchBtn'),\n submitBtn: _this2.vaildData(option.searchBtn, _config__WEBPACK_IMPORTED_MODULE_6__[\"default\"].searchSubBtn),\n submitIcon: _this2.crud.getBtnIcon('searchBtn'),\n emptyText: option.emptyBtnText || _this2.t('crud.emptyBtn'),\n emptyBtn: _this2.vaildData(option.emptyBtn, _config__WEBPACK_IMPORTED_MODULE_6__[\"default\"].emptyBtn),\n emptyIcon: _this2.crud.getBtnIcon('emptyBtn'),\n menuSpan: function () {\n if (_this2.show || !_this2.isSearchIcon) {\n return option.searchMenuSpan;\n } else {\n return 6;\n }\n }(),\n menuPosition: option.searchMenuPosition || 'center',\n dicFlag: false,\n dicData: _this2.crud.DIC\n });\n return result;\n };\n\n var result = dataDetail(option);\n return result;\n },\n searchFlag: function searchFlag() {\n return !!this.crud.$scopedSlots.search || !Object(utils_validate__WEBPACK_IMPORTED_MODULE_2__[\"validatenull\"])(this.searchForm);\n }\n },\n methods: {\n initFun: function initFun() {\n var _this3 = this;\n\n ['searchReset', 'searchChange'].forEach(function (ele) {\n return _this3.crud[ele] = _this3[ele];\n });\n },\n getSlotName: function getSlotName(item) {\n return item.replace('Search', '');\n },\n handleChange: function handleChange() {\n this.crud.$emit('update:search', this.searchForm);\n },\n // 搜索回调\n searchChange: function searchChange(form, done) {\n this.crud.$emit(\"search-change\", form, done);\n },\n // 搜索清空\n resetChange: function resetChange() {\n this.crud.$emit(\"search-reset\", this.defaultForm.tableForm);\n },\n // 搜索清空\n searchReset: function searchReset() {\n this.$refs.form.resetForm();\n },\n handleSearchShow: function handleSearchShow() {\n this.searchShow = !this.searchShow;\n },\n dataFormat: function dataFormat() {\n this.defaultForm = Object(core_dataformat__WEBPACK_IMPORTED_MODULE_5__[\"formInitVal\"])(this.option.column);\n this.searchForm = this.deepClone(this.defaultForm.tableForm);\n this.searchShow = Object(utils_util__WEBPACK_IMPORTED_MODULE_1__[\"vaildData\"])(this.crud.tableOption.searchShow, _config__WEBPACK_IMPORTED_MODULE_6__[\"default\"].searchShow);\n }\n }\n}));\n\n//# sourceURL=webpack://AVUE/./packages/element-ui/crud/header-search.vue?./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options");
569
+ 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 utils_util__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! utils/util */ \"./src/utils/util.js\");\n/* harmony import */ var utils_validate__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! utils/validate */ \"./src/utils/validate.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 core_slot__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! core/slot */ \"./src/core/slot.js\");\n/* harmony import */ var core_dataformat__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! core/dataformat */ \"./src/core/dataformat.js\");\n/* harmony import */ var _config__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./config */ \"./packages/element-ui/crud/config.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/* harmony default export */ __webpack_exports__[\"default\"] = (Object(core_create__WEBPACK_IMPORTED_MODULE_0__[\"default\"])({\n name: \"crud__search\",\n inject: [\"crud\"],\n mixins: [_core_common_locale__WEBPACK_IMPORTED_MODULE_3__[\"default\"], core_slot__WEBPACK_IMPORTED_MODULE_4__[\"default\"]],\n data: function data() {\n return {\n show: false,\n flag: false,\n reload: false,\n defaultForm: {\n searchForm: {}\n },\n searchShow: true,\n searchForm: {}\n };\n },\n props: {\n search: {\n type: Object,\n \"default\": function _default() {\n return {};\n }\n }\n },\n watch: {\n 'crud.propOption': {\n handler: function handler() {\n this.dataFormat();\n },\n immediate: true\n },\n search: {\n handler: function handler() {\n this.searchForm = Object.assign(this.searchForm, this.search);\n },\n immediate: true,\n deep: true\n },\n show: {\n handler: function handler() {\n this.crud.getTableHeight();\n }\n },\n searchShow: {\n handler: function handler() {\n this.crud.getTableHeight();\n }\n }\n },\n created: function created() {\n this.initFun();\n },\n computed: {\n isGroup: function isGroup() {\n return !this.validatenull(this.crud.tableOption.group);\n },\n isSearchIcon: function isSearchIcon() {\n return this.vaildData(this.crud.option.searchIcon, this.$AVUE.searchIcon) === true && this.columnLen > this.searchIndex;\n },\n searchIndex: function searchIndex() {\n return this.crud.option.searchIndex || 2;\n },\n columnLen: function columnLen() {\n var count = 0;\n this.crud.propOption.forEach(function (ele) {\n if (ele.search) count++;\n });\n return count;\n },\n option: function option() {\n var _this = this;\n\n var option = this.crud.option;\n\n var detailColumn = function detailColumn() {\n var list = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];\n var column = [];\n var count = 0;\n list = list.sort(function (a, b) {\n return b.searchOrder || 0 - a.searchOrder || 0;\n });\n list.forEach(function (ele) {\n if (ele.search) {\n var isCount = count < _this.searchIndex;\n var obj = {};\n Object.keys(ele).forEach(function (item) {\n var key = 'search';\n\n if (item.includes(key)) {\n var _result = item.replace(key, '');\n\n if (_result.length == 0) return;\n _result = _result.replace(_result[0], _result[0].toLowerCase());\n obj[_result] = ele[item];\n }\n });\n ele = Object.assign(ele, obj, {\n type: Object(core_dataformat__WEBPACK_IMPORTED_MODULE_5__[\"getSearchType\"])(ele),\n detail: false,\n dicFlag: ele.cascaderItem ? true : _this.vaildData(ele.dicFlag, false),\n span: ele.searchSpan || option.searchSpan || _config__WEBPACK_IMPORTED_MODULE_6__[\"default\"].searchSpan,\n control: ele.searchControl,\n gutter: ele.searchGutter || option.searchGutter || _config__WEBPACK_IMPORTED_MODULE_6__[\"default\"].searchGutter,\n labelWidth: ele.searchLabelWidth || option.searchLabelWidth || _config__WEBPACK_IMPORTED_MODULE_6__[\"default\"].searchLabelWidth,\n labelPosition: ele.searchLabelPosition || option.searchLabelPosition,\n size: ele.searchSize || option.searchSize,\n value: ele.searchValue || _this.searchForm[ele.prop],\n rules: ele.searchRules,\n row: ele.searchRow,\n display: _this.isSearchIcon ? _this.show ? true : isCount : true\n });\n delete ele.bind;\n var whiteList = ['disabled', 'readonly'];\n whiteList.forEach(function (key) {\n delete ele[key];\n });\n column.push(ele);\n count = count + 1;\n }\n });\n return column;\n };\n\n var dataDetail = function dataDetail(list) {\n var result = _this.deepClone(list);\n\n result.translate = false;\n\n if (result.group) {\n delete result.group;\n }\n\n result.column = detailColumn(_this.deepClone(_this.crud.propOption));\n result = Object.assign(result, {\n rowKey: option.searchRowKey || 'null',\n tabs: false,\n enter: _this.vaildData(option.searchEnter, true),\n printBtn: false,\n mockBtn: false,\n size: option.searchSize,\n submitText: option.searchBtnText || _this.t('crud.searchBtn'),\n submitBtn: _this.vaildData(option.searchBtn, _config__WEBPACK_IMPORTED_MODULE_6__[\"default\"].searchSubBtn),\n submitIcon: _this.crud.getBtnIcon('searchBtn'),\n emptyText: option.emptyBtnText || _this.t('crud.emptyBtn'),\n emptyBtn: _this.vaildData(option.emptyBtn, _config__WEBPACK_IMPORTED_MODULE_6__[\"default\"].emptyBtn),\n emptyIcon: _this.crud.getBtnIcon('emptyBtn'),\n menuSpan: function () {\n if (_this.show || !_this.isSearchIcon) {\n return option.searchMenuSpan;\n } else {\n return 6;\n }\n }(),\n menuPosition: option.searchMenuPosition || 'center',\n dicFlag: false,\n dicData: _this.crud.DIC\n });\n return result;\n };\n\n var result = dataDetail(option);\n return result;\n },\n searchFlag: function searchFlag() {\n return !!this.crud.$scopedSlots.search || !Object(utils_validate__WEBPACK_IMPORTED_MODULE_2__[\"validatenull\"])(this.searchForm);\n }\n },\n methods: {\n initFun: function initFun() {\n var _this2 = this;\n\n ['searchReset', 'searchChange'].forEach(function (ele) {\n return _this2.crud[ele] = _this2[ele];\n });\n },\n getSlotName: function getSlotName(item) {\n return item.replace('Search', '');\n },\n handleChange: function handleChange() {\n this.crud.$emit('update:search', this.searchForm);\n },\n // 搜索回调\n searchChange: function searchChange(form, done) {\n this.crud.$emit(\"search-change\", form, done);\n },\n // 搜索清空\n resetChange: function resetChange() {\n this.crud.$emit(\"search-reset\", this.defaultForm.tableForm);\n },\n // 搜索清空\n searchReset: function searchReset() {\n this.$refs.form.resetForm();\n },\n handleSearchShow: function handleSearchShow() {\n this.searchShow = !this.searchShow;\n },\n dataFormat: function dataFormat() {\n this.defaultForm = Object(core_dataformat__WEBPACK_IMPORTED_MODULE_5__[\"formInitVal\"])(this.option.column);\n this.searchForm = this.deepClone(this.defaultForm.tableForm);\n this.searchShow = Object(utils_util__WEBPACK_IMPORTED_MODULE_1__[\"vaildData\"])(this.crud.tableOption.searchShow, _config__WEBPACK_IMPORTED_MODULE_6__[\"default\"].searchShow);\n }\n }\n}));\n\n//# sourceURL=webpack://AVUE/./packages/element-ui/crud/header-search.vue?./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options");
570
570
 
571
571
  /***/ }),
572
572
 
@@ -578,7 +578,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var core
578
578
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
579
579
 
580
580
  "use strict";
581
- 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_packages__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! core/packages */ \"./src/core/packages.js\");\n/* harmony import */ var _core_directive_permission__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../core/directive/permission */ \"./packages/core/directive/permission.js\");\n/* harmony import */ var _core_common_init_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../core/common/init.js */ \"./packages/core/common/init.js\");\n/* harmony import */ var _table_page__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./table-page */ \"./packages/element-ui/crud/table-page.vue\");\n/* harmony import */ var _header_search__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./header-search */ \"./packages/element-ui/crud/header-search.vue\");\n/* harmony import */ var _core_common_locale__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../core/common/locale */ \"./packages/core/common/locale.js\");\n/* harmony import */ var _column__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./column */ \"./packages/element-ui/crud/column.vue\");\n/* harmony import */ var _header_menu__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./header-menu */ \"./packages/element-ui/crud/header-menu.vue\");\n/* harmony import */ var _dialog_column__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./dialog-column */ \"./packages/element-ui/crud/dialog-column.vue\");\n/* harmony import */ var _dialog_filter__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./dialog-filter */ \"./packages/element-ui/crud/dialog-filter.vue\");\n/* harmony import */ var _dialog_form__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./dialog-form */ \"./packages/element-ui/crud/dialog-form.vue\");\n/* harmony import */ var _dialog_excel__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./dialog-excel */ \"./packages/element-ui/crud/dialog-excel.vue\");\n/* harmony import */ var _column_menu__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./column-menu */ \"./packages/element-ui/crud/column-menu.vue\");\n/* harmony import */ var _column_default__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./column-default */ \"./packages/element-ui/crud/column-default.vue\");\n/* harmony import */ var _config_js__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./config.js */ \"./packages/element-ui/crud/config.js\");\n/* harmony import */ var _eval__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./eval */ \"./packages/element-ui/crud/eval.js\");\n/* harmony import */ var core_dataformat__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! core/dataformat */ \"./src/core/dataformat.js\");\nfunction _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== \"undefined\" && o[Symbol.iterator] || o[\"@@iterator\"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === \"number\") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError(\"Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it[\"return\"] != null) it[\"return\"](); } finally { if (didErr) throw err; } } }; }\n\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\n\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }\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//\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//\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: \"crud\",\n mixins: [Object(_core_common_init_js__WEBPACK_IMPORTED_MODULE_3__[\"default\"])(), _core_common_locale__WEBPACK_IMPORTED_MODULE_6__[\"default\"]],\n directives: {\n permission: _core_directive_permission__WEBPACK_IMPORTED_MODULE_2__[\"default\"]\n },\n provide: function provide() {\n return {\n crud: this\n };\n },\n components: {\n column: _column__WEBPACK_IMPORTED_MODULE_7__[\"default\"],\n columnDefault: _column_default__WEBPACK_IMPORTED_MODULE_14__[\"default\"],\n //其它列,\n columnMenu: _column_menu__WEBPACK_IMPORTED_MODULE_13__[\"default\"],\n //操作栏,\n tablePage: _table_page__WEBPACK_IMPORTED_MODULE_4__[\"default\"],\n //分页\n headerSearch: _header_search__WEBPACK_IMPORTED_MODULE_5__[\"default\"],\n //搜索\n headerMenu: _header_menu__WEBPACK_IMPORTED_MODULE_8__[\"default\"],\n //菜单头部\n dialogColumn: _dialog_column__WEBPACK_IMPORTED_MODULE_9__[\"default\"],\n //显隐列\n dialogFilter: _dialog_filter__WEBPACK_IMPORTED_MODULE_10__[\"default\"],\n //过滤器\n dialogExcel: _dialog_excel__WEBPACK_IMPORTED_MODULE_12__[\"default\"],\n //导出数据\n dialogForm: _dialog_form__WEBPACK_IMPORTED_MODULE_11__[\"default\"] //分页,\n\n },\n data: function data() {\n return {\n reload: true,\n config: _config_js__WEBPACK_IMPORTED_MODULE_15__[\"default\"],\n list: [],\n listError: {},\n tableForm: {},\n tableHeight: undefined,\n tableIndex: -1,\n tableSelect: [],\n formIndexList: [],\n sumsList: [],\n cascaderDicList: {},\n formCascaderList: {},\n btnDisabledList: {},\n btnDisabled: false,\n \"default\": {},\n defaultBind: {}\n };\n },\n created: function created() {\n // 初始化数据\n this.dataInit();\n },\n mounted: function mounted() {\n var _this = this;\n\n this.refreshTable(function () {\n //动态计算表格高度\n _this.getTableHeight();\n });\n },\n computed: {\n defaultColumn: function defaultColumn() {\n return [{\n label: this.t('crud.column.hide'),\n prop: 'hide'\n }, {\n label: this.t('crud.column.fixed'),\n prop: 'fixed'\n }, {\n label: this.t('crud.column.filters'),\n prop: 'filters'\n }, {\n label: this.t('crud.column.screen'),\n prop: 'screen'\n }, {\n label: this.t('crud.column.sortable'),\n prop: 'sortable'\n }, {\n label: this.t('crud.column.index'),\n prop: 'index',\n hide: true\n }, {\n label: this.t('crud.column.width'),\n prop: 'width',\n hide: true\n }];\n },\n isSortable: function isSortable() {\n return this.tableOption.sortable;\n },\n treeProps: function treeProps() {\n return this.tableOption.treeProps || {};\n },\n isAutoHeight: function isAutoHeight() {\n return this.tableOption.height === \"auto\";\n },\n cellForm: function cellForm() {\n var _this2 = this;\n\n var list = this.list;\n list = list.filter(function (ele) {\n var result = [];\n\n for (var o in _this2.objectOption) {\n if (!_this2.validatenull(_this2.objectOption[o].screenValue)) {\n var value = (ele['$' + o] ? ele['$' + o] : ele[o]) + '';\n result.push(value.indexOf(_this2.objectOption[o].screenValue) !== -1);\n }\n }\n\n if (_this2.validatenull(result)) {\n return true;\n }\n\n return eval(result.join('&&'));\n });\n return {\n list: list\n };\n },\n formSlot: function formSlot() {\n return this.getSlotList(['Error', 'Label', 'Type', 'Form'], this.$scopedSlots, this.propOption);\n },\n searchSlot: function searchSlot() {\n return this.getSlotList(['Search'], this.$scopedSlots, this.propOption);\n },\n mainSlot: function mainSlot() {\n var _this3 = this;\n\n var result = [];\n this.propOption.forEach(function (item) {\n if (_this3.$scopedSlots[item.prop]) result.push(item.prop);\n });\n return this.getSlotList(['Header', 'Form'], this.$scopedSlots, this.propOption).concat(result);\n },\n calcHeight: function calcHeight() {\n return (this.tableOption.calcHeight || 0) + this.$AVUE.calcHeight;\n },\n propOption: function propOption() {\n var result = [];\n\n function findProp() {\n var list = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];\n if (!Array.isArray(list)) return;\n list.forEach(function (ele) {\n result.push(ele);\n if (ele.children) findProp(ele.children);\n });\n }\n\n findProp(this.columnOption);\n result = Object(core_dataformat__WEBPACK_IMPORTED_MODULE_17__[\"calcCascader\"])(result);\n return result;\n },\n isShowSummary: function isShowSummary() {\n return this.option.showSummary;\n },\n isHeader: function isHeader() {\n var flag = false;\n this.columnOption.forEach(function (ele) {\n if (ele.children) {\n flag = true;\n }\n });\n return flag;\n },\n isTree: function isTree() {\n var flag = false;\n this.data.forEach(function (ele) {\n if (ele.children) {\n flag = true;\n }\n });\n return flag;\n },\n isCard: function isCard() {\n return this.option.card ? 'always' : 'never';\n },\n expandLevel: function expandLevel() {\n return this.parentOption.expandLevel || 0;\n },\n expandAll: function expandAll() {\n return this.parentOption.expandAll || false;\n },\n rowParentKey: function rowParentKey() {\n return this.tableOption.rowParentKey || \"parentId\";\n },\n parentOption: function parentOption() {\n return this.tableOption || {};\n },\n columnOption: function columnOption() {\n return this.tableOption.column || [];\n },\n sumColumnList: function sumColumnList() {\n return this.tableOption.sumColumnList || [];\n },\n selectLen: function selectLen() {\n return this.tableSelect ? this.tableSelect.length : 0;\n }\n },\n watch: {\n value: {\n handler: function handler() {\n this.tableForm = this.value;\n },\n immediate: true,\n deep: true\n },\n data: {\n handler: function handler() {\n this.dataInit();\n },\n deep: true\n }\n },\n props: {\n sortBy: Function,\n sortOrders: Array,\n sortMethod: Function,\n spanMethod: Function,\n summaryMethod: Function,\n rowStyle: Function,\n cellStyle: Function,\n beforeClose: Function,\n beforeOpen: Function,\n rowClassName: Function,\n cellClassName: Function,\n headerCellClassName: Function,\n uploadBefore: Function,\n uploadAfter: Function,\n uploadDelete: Function,\n uploadPreview: Function,\n uploadError: Function,\n uploadExceed: Function,\n permission: {\n type: [Function, Object],\n \"default\": function _default() {\n return {};\n }\n },\n value: {\n type: Object,\n \"default\": function _default() {\n return {};\n }\n },\n search: {\n type: Object,\n \"default\": function _default() {\n return {};\n }\n },\n page: {\n type: Object,\n \"default\": function _default() {\n return {};\n }\n },\n tableLoading: {\n type: Boolean,\n \"default\": false\n },\n disabled: {\n type: Boolean,\n \"default\": false\n },\n data: {\n type: Array,\n required: true,\n \"default\": function _default() {\n return [];\n }\n }\n },\n methods: {\n handleValidate: function handleValidate(prop, valid, msg) {\n if (!this.listError[prop]) this.$set(this.listError, prop, {\n valid: false,\n msg: ''\n });\n this.listError[prop].valid = !valid;\n this.listError[prop].msg = msg;\n },\n getPermission: function getPermission(key, row, index) {\n if (typeof this.permission === \"function\") {\n return this.permission(key, row, index);\n } else if (!this.validatenull(this.permission[key])) {\n return this.permission[key];\n } else {\n return true;\n }\n },\n getTableHeight: function getTableHeight() {\n var _this4 = this;\n\n if (this.isAutoHeight) {\n this.$nextTick(function () {\n var tableRef = _this4.$refs.table;\n var tablePageRef = _this4.$refs.tablePage;\n if (!tableRef) return;\n var tableStyle = tableRef.$el;\n var pageStyle = tablePageRef.$el.offsetHeight || 20;\n _this4.tableHeight = _config_js__WEBPACK_IMPORTED_MODULE_15__[\"default\"].clientHeight - tableStyle.offsetTop - pageStyle - _this4.calcHeight;\n });\n } else {\n this.tableHeight = this.tableOption.height;\n }\n },\n doLayout: function doLayout() {\n this.$refs.table.doLayout();\n },\n refreshTable: function refreshTable(callback) {\n var _this5 = this;\n\n this.reload = false;\n this.$nextTick(function () {\n _this5.reload = true; //是否开启表格排序\n\n setTimeout(function () {\n return _this5.$refs.columnDefault.setSort();\n });\n callback && callback();\n });\n },\n //树懒加载\n treeLoad: function treeLoad(tree, treeNode, resolve) {\n this.$emit('tree-load', tree, treeNode, function (data) {\n tree.children = data;\n resolve(data);\n });\n },\n // 格式化数据源\n formatData: function formatData() {\n var data = this.data;\n\n if (data.length === 0) {\n return [];\n }\n\n Object(_eval__WEBPACK_IMPORTED_MODULE_16__[\"addAttrs\"])(this, data, {\n expand: this.expandAll,\n expandLevel: this.expandLevel\n });\n this.list = Object(_eval__WEBPACK_IMPORTED_MODULE_16__[\"default\"])(this, data);\n },\n menuIcon: function menuIcon(value) {\n return this.vaildData(this.tableOption[value + 'Text'], this.t(\"crud.\" + value));\n },\n getBtnIcon: function getBtnIcon(value) {\n var name = value + 'Icon';\n return this.tableOption[name] || _config_js__WEBPACK_IMPORTED_MODULE_15__[\"default\"][name];\n },\n //对部分表单字段进行校验的方法\n validateField: function validateField(val) {\n return this.$refs.dialogForm.$refs.tableForm.validateField(val);\n },\n handleGetRowKeys: function handleGetRowKeys(row) {\n var rowKey = row[this.rowKey];\n return rowKey;\n },\n selectClear: function selectClear() {\n this.$refs.table.clearSelection();\n },\n toggleRowSelection: function toggleRowSelection(row, selected) {\n this.$refs.table.toggleRowSelection(row, selected);\n },\n toggleRowExpansion: function toggleRowExpansion(row, expanded) {\n this.$refs.table.toggleRowExpansion(row, expanded);\n },\n setCurrentRow: function setCurrentRow(row) {\n this.$refs.table.setCurrentRow(row);\n },\n columnInit: function columnInit() {\n var _this6 = this;\n\n this.propOption.forEach(function (column) {\n if (_this6.defaultBind[column.prop] === true) return;\n\n _this6.defaultColumn.forEach(function (ele) {\n if (!_this6.objectOption[column.prop][ele.prop] && ele.prop == 'index') _this6.$set(_this6.objectOption[column.prop], ele.prop, '');\n\n if (['hide', 'filters', 'index'].includes(ele.prop)) {\n _this6.$watch(\"objectOption.\".concat(column.prop, \".\").concat(ele.prop), function () {\n return _this6.refreshTable();\n });\n }\n });\n\n _this6.defaultBind[column.prop] = true;\n });\n },\n dataInit: function dataInit() {\n var _this7 = this;\n\n this.list = this.data; //初始化序列的参数\n\n this.list.forEach(function (ele, index) {\n if (ele.$cellEdit && !_this7.formCascaderList[index]) {\n _this7.formCascaderList[index] = _this7.deepClone(ele);\n }\n\n ele.$index = index;\n });\n },\n //拖动表头事件\n headerDragend: function headerDragend(newWidth, oldWidth, column, event) {\n this.objectOption[column.property].width = newWidth;\n this.$emit(\"header-dragend\", newWidth, oldWidth, column, event);\n },\n headerSort: function headerSort(oldIndex, newIndex) {\n var _this8 = this;\n\n var column = this.propOption;\n var targetRow = column.splice(oldIndex, 1)[0];\n column.splice(newIndex, 0, targetRow);\n this.propOption.forEach(function (ele, index) {\n _this8.objectOption[ele.prop].index = index + 1;\n });\n },\n //展开或则关闭\n expandChange: function expandChange(row, expand) {\n this.$emit(\"expand-change\", row, expand);\n },\n //设置单选\n currentRowChange: function currentRowChange(currentRow, oldCurrentRow) {\n this.$emit(\"current-row-change\", currentRow, oldCurrentRow);\n },\n //刷新事件\n refreshChange: function refreshChange() {\n this.$emit(\"refresh-change\");\n },\n // 选中实例\n toggleSelection: function toggleSelection(rows) {\n var _this9 = this;\n\n if (rows) {\n rows.forEach(function (row) {\n _this9.$refs.table.toggleRowSelection(row);\n });\n } else {\n this.$refs.table.clearSelection();\n }\n },\n // 选择回调\n selectionChange: function selectionChange(val) {\n this.tableSelect = val;\n this.$emit(\"selection-change\", this.tableSelect);\n },\n // 单个选择回调\n select: function select(selection, row) {\n this.$emit(\"select\", selection, row);\n },\n // 点击勾选全选 Checkbox\n selectAll: function selectAll(selection) {\n this.$emit(\"select-all\", selection);\n },\n //筛选回调用\n filterChange: function filterChange(filters) {\n this.$emit(\"filter-change\", filters);\n },\n // 排序回调\n sortChange: function sortChange(val) {\n this.$emit(\"sort-change\", val);\n },\n // 行双击\n rowDblclick: function rowDblclick(row, event) {\n this.$emit(\"row-dblclick\", row, event);\n },\n // 行单机\n rowClick: function rowClick(row, event, column) {\n this.$emit(\"row-click\", row, event, column);\n },\n //清空排序\n clearSort: function clearSort() {\n this.$refs.table.clearSort();\n },\n //当单元格 hover 进入时会触发该事件\n cellMouseEnter: function cellMouseEnter(row, column, cell, event) {\n this.$emit(\"cell-mouse-enter\", row, column, cell, event);\n },\n //当单元格 hover 退出时会触发该事件\n cellMouseLeave: function cellMouseLeave(row, column, cell, event) {\n this.$emit(\"cell-mouse-leave\", row, column, cell, event);\n },\n //当某个单元格被点击时会触发该事件\n cellClick: function cellClick(row, column, cell, event) {\n this.$emit(\"cell-click\", row, column, cell, event);\n },\n //\t当某一列的表头被点击时会触发该事件\n headerClick: function headerClick(column, event) {\n this.$emit(\"header-click\", column, event);\n },\n //当某一行被鼠标右键点击时会触发该事件\n rowContextmenu: function rowContextmenu(row, column, event) {\n this.$emit(\"row-contextmenu\", row, column, event);\n },\n //当某一列的表头被鼠标右键点击时触发该事件\n headerContextmenu: function headerContextmenu(column, event) {\n this.$emit(\"header-contextmenu\", column, event);\n },\n //当某个单元格被双击击时会触发该事件\n cellDblclick: function cellDblclick(row, column, cell, event) {\n this.$emit(\"cell-dblclick\", row, column, cell, event);\n },\n //行编辑点击\n rowCell: function rowCell(row, index) {\n if (row.$cellEdit) {\n this.rowCellUpdate(row, index);\n } else {\n this.rowCellEdit(row, index);\n }\n },\n //单元格新增\n rowCellAdd: function rowCellAdd() {\n var _this10 = this;\n\n var row = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n var len = this.list.length;\n var formDefault = Object(core_dataformat__WEBPACK_IMPORTED_MODULE_17__[\"formInitVal\"])(this.propOption).tableForm;\n row = this.deepClone(Object.assign({\n $cellEdit: true,\n $index: len\n }, formDefault, row));\n this.list.push(row);\n this.formIndexList.push(len);\n setTimeout(function () {\n return _this10.$refs.columnDefault.setSort();\n });\n },\n //行取消\n rowCancel: function rowCancel(row, index) {\n if (this.validatenull(row[this.rowKey])) {\n this.list.splice(index, 1);\n return;\n }\n\n this.formCascaderList[index].$cellEdit = false; //设置行数据\n\n this.$set(this.list, index, this.formCascaderList[index]);\n delete this.formCascaderList[index]; //设置级联字典\n\n this.$set(this.cascaderDIC, index, this.cascaderDicList[index]);\n this.formIndexList.splice(this.formIndexList.indexOf(index), 1);\n },\n // 单元格编辑\n rowCellEdit: function rowCellEdit(row, index) {\n var _this11 = this;\n\n row.$cellEdit = true;\n this.$set(this.list, index, row); //缓冲行数据\n\n this.formCascaderList[index] = this.deepClone(row); //缓冲级联字典\n\n this.cascaderDicList[index] = this.deepClone(this.cascaderDIC[index]);\n setTimeout(function () {\n _this11.formIndexList.push(index);\n }, 1000);\n },\n // 对部分表单字段进行校验\n validateCellForm: function validateCellForm(cb) {\n var _this12 = this;\n\n return new Promise(function (resolve) {\n _this12.$refs.cellForm.validate(function (valid, msg) {\n resolve(msg);\n });\n });\n },\n validateCellField: function validateCellField(index) {\n var result = true;\n\n var _iterator = _createForOfIteratorHelper(this.$refs.cellForm.fields),\n _step;\n\n try {\n for (_iterator.s(); !(_step = _iterator.n()).done;) {\n var item = _step.value;\n\n if (item.prop.split('.')[1] == index) {\n this.$refs.cellForm.validateField(item.prop, function (error) {\n if (error) {\n result = false;\n }\n });\n }\n\n if (!result) break;\n }\n } catch (err) {\n _iterator.e(err);\n } finally {\n _iterator.f();\n }\n\n return result;\n },\n rowCellUpdate: function rowCellUpdate(row, index) {\n var _this13 = this;\n\n var result = this.validateCellField(index);\n\n var done = function done() {\n _this13.btnDisabledList[index] = false;\n _this13.btnDisabled = false;\n row.$cellEdit = false;\n\n _this13.$set(_this13.list, index, row);\n\n delete _this13.formCascaderList[index];\n };\n\n var loading = function loading() {\n _this13.btnDisabledList[index] = false;\n _this13.btnDisabled = false;\n };\n\n if (result) {\n this.btnDisabledList[index] = true;\n this.btnDisabled = true;\n\n if (this.validatenull(row[this.rowKey])) {\n this.$emit(\"row-save\", row, done, loading);\n } else {\n this.$emit(\"row-update\", row, index, done, loading);\n }\n }\n },\n rowAdd: function rowAdd() {\n this.$refs.dialogForm.show(\"add\");\n },\n rowSave: function rowSave() {\n return this.$refs.dialogForm.$refs.tableForm.submit();\n },\n rowUpdate: function rowUpdate() {\n return this.$refs.dialogForm.$refs.tableForm.submit();\n },\n closeDialog: function closeDialog() {\n return this.$refs.dialogForm.closeDialog();\n },\n //对象克隆\n rowClone: function rowClone(row) {\n var rowData = {};\n Object.keys(row).forEach(function (ele) {\n if (![\"_parent\", \"children\"].includes(ele)) {\n rowData[ele] = row[ele];\n }\n });\n return rowData;\n },\n getPropRef: function getPropRef(prop) {\n return this.$refs.dialogForm.$refs.tableForm.getPropRef(prop);\n },\n // 编辑\n rowEdit: function rowEdit(row, index) {\n this.tableForm = this.rowClone(row);\n this.tableIndex = index;\n this.$emit(\"input\", this.tableForm);\n this.$refs.dialogForm.show(\"edit\");\n },\n //复制\n rowCopy: function rowCopy(row) {\n this.tableForm = this.rowClone(row);\n delete this.tableForm[this.rowKey];\n this.tableIndex = -1;\n this.$emit(\"input\", this.tableForm);\n this.$refs.dialogForm.show(\"add\");\n },\n //查看\n rowView: function rowView(row, index) {\n this.tableForm = this.rowClone(row);\n this.tableIndex = index;\n this.$emit(\"input\", this.tableForm);\n this.$refs.dialogForm.show(\"view\");\n },\n vaildParent: function vaildParent(row) {\n return this.validatenull(row[this.rowParentKey]);\n },\n // 删除\n rowDel: function rowDel(row, index) {\n var _this14 = this;\n\n this.$emit(\"row-del\", row, index, function () {\n var callback = function callback() {\n var list = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];\n var index = list.findIndex(function (ele) {\n return ele[_this14.rowKey] === row[_this14.rowKey];\n });\n list.splice(index, 1);\n };\n\n if (_this14.isTree) {\n if (_this14.vaildParent(row)) {\n callback(_this14.data);\n } else {\n var parent = _this14.findObject(_this14.data, row[_this14.rowParentKey], _this14.rowKey);\n\n if (parent === undefined) {\n callback(_this14.data);\n } else {\n callback(parent.children);\n }\n }\n } else {\n callback(_this14.data);\n }\n });\n },\n //合并行\n tableSpanMethod: function tableSpanMethod(param) {\n if (typeof this.spanMethod === \"function\") return this.spanMethod(param);\n },\n //合集统计逻辑\n tableSummaryMethod: function tableSummaryMethod(param) {\n var _this15 = this;\n\n //如果自己写逻辑则调用summaryMethod方法\n if (typeof this.summaryMethod === \"function\") return this.summaryMethod(param);\n var columns = param.columns,\n data = param.data;\n var sums = [];\n\n if (columns.length > 0) {\n columns.forEach(function (column, index) {\n var currItem = _this15.sumColumnList.find(function (item) {\n return item.name === column.property;\n });\n\n if (index === 0) {\n sums[index] = '';\n } else if (currItem) {\n var decimals = currItem.decimals || 2;\n var label = currItem.label || '';\n\n switch (currItem.type) {\n case \"count\":\n sums[index] = label + data.length;\n break;\n\n case \"avg\":\n var avgValues = data.map(function (item) {\n return Number(item[column.property]);\n });\n var nowindex = 1;\n sums[index] = avgValues.reduce(function (perv, curr) {\n var value = Number(curr);\n\n if (!isNaN(value)) {\n return (perv * (nowindex - 1) + curr) / nowindex++;\n } else {\n return perv;\n }\n }, 0);\n sums[index] = label + sums[index].toFixed(decimals);\n break;\n\n case \"sum\":\n var values = data.map(function (item) {\n return Number(item[column.property]);\n });\n sums[index] = values.reduce(function (perv, curr) {\n var value = Number(curr);\n\n if (!isNaN(value)) {\n return perv + curr;\n } else {\n return perv;\n }\n }, 0);\n sums[index] = label + sums[index].toFixed(decimals);\n break;\n }\n } else {\n sums[index] = \"-\";\n }\n });\n }\n\n this.sumsList = sums;\n return sums;\n },\n tableDrop: function tableDrop(el, callback) {\n if (this.isSortable) {\n if (!window.Sortable) {\n core_packages__WEBPACK_IMPORTED_MODULE_1__[\"default\"].logs(\"Sortable\");\n return;\n }\n\n window.Sortable.create(el, {\n ghostClass: _config_js__WEBPACK_IMPORTED_MODULE_15__[\"default\"].ghostClass,\n chosenClass: _config_js__WEBPACK_IMPORTED_MODULE_15__[\"default\"].ghostClass,\n animation: 500,\n delay: 0,\n onEnd: function onEnd(evt) {\n return callback(evt);\n }\n });\n }\n }\n }\n}));\n\n//# sourceURL=webpack://AVUE/./packages/element-ui/crud/index.vue?./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options");
581
+ 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_packages__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! core/packages */ \"./src/core/packages.js\");\n/* harmony import */ var _core_directive_permission__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../core/directive/permission */ \"./packages/core/directive/permission.js\");\n/* harmony import */ var _core_common_init_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../core/common/init.js */ \"./packages/core/common/init.js\");\n/* harmony import */ var _table_page__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./table-page */ \"./packages/element-ui/crud/table-page.vue\");\n/* harmony import */ var _header_search__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./header-search */ \"./packages/element-ui/crud/header-search.vue\");\n/* harmony import */ var _core_common_locale__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../core/common/locale */ \"./packages/core/common/locale.js\");\n/* harmony import */ var _column__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./column */ \"./packages/element-ui/crud/column.vue\");\n/* harmony import */ var _header_menu__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./header-menu */ \"./packages/element-ui/crud/header-menu.vue\");\n/* harmony import */ var _dialog_column__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./dialog-column */ \"./packages/element-ui/crud/dialog-column.vue\");\n/* harmony import */ var _dialog_filter__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./dialog-filter */ \"./packages/element-ui/crud/dialog-filter.vue\");\n/* harmony import */ var _dialog_form__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./dialog-form */ \"./packages/element-ui/crud/dialog-form.vue\");\n/* harmony import */ var _dialog_excel__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./dialog-excel */ \"./packages/element-ui/crud/dialog-excel.vue\");\n/* harmony import */ var _column_menu__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./column-menu */ \"./packages/element-ui/crud/column-menu.vue\");\n/* harmony import */ var _column_default__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./column-default */ \"./packages/element-ui/crud/column-default.vue\");\n/* harmony import */ var _config_js__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./config.js */ \"./packages/element-ui/crud/config.js\");\n/* harmony import */ var _eval__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./eval */ \"./packages/element-ui/crud/eval.js\");\n/* harmony import */ var core_dataformat__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! core/dataformat */ \"./src/core/dataformat.js\");\nfunction _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== \"undefined\" && o[Symbol.iterator] || o[\"@@iterator\"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === \"number\") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError(\"Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it[\"return\"] != null) it[\"return\"](); } finally { if (didErr) throw err; } } }; }\n\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\n\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }\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//\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//\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: \"crud\",\n mixins: [Object(_core_common_init_js__WEBPACK_IMPORTED_MODULE_3__[\"default\"])(), _core_common_locale__WEBPACK_IMPORTED_MODULE_6__[\"default\"]],\n directives: {\n permission: _core_directive_permission__WEBPACK_IMPORTED_MODULE_2__[\"default\"]\n },\n provide: function provide() {\n return {\n crud: this\n };\n },\n components: {\n column: _column__WEBPACK_IMPORTED_MODULE_7__[\"default\"],\n columnDefault: _column_default__WEBPACK_IMPORTED_MODULE_14__[\"default\"],\n //其它列,\n columnMenu: _column_menu__WEBPACK_IMPORTED_MODULE_13__[\"default\"],\n //操作栏,\n tablePage: _table_page__WEBPACK_IMPORTED_MODULE_4__[\"default\"],\n //分页\n headerSearch: _header_search__WEBPACK_IMPORTED_MODULE_5__[\"default\"],\n //搜索\n headerMenu: _header_menu__WEBPACK_IMPORTED_MODULE_8__[\"default\"],\n //菜单头部\n dialogColumn: _dialog_column__WEBPACK_IMPORTED_MODULE_9__[\"default\"],\n //显隐列\n dialogFilter: _dialog_filter__WEBPACK_IMPORTED_MODULE_10__[\"default\"],\n //过滤器\n dialogExcel: _dialog_excel__WEBPACK_IMPORTED_MODULE_12__[\"default\"],\n //导出数据\n dialogForm: _dialog_form__WEBPACK_IMPORTED_MODULE_11__[\"default\"] //分页,\n\n },\n data: function data() {\n return {\n reload: 0,\n config: _config_js__WEBPACK_IMPORTED_MODULE_15__[\"default\"],\n list: [],\n listError: {},\n tableForm: {},\n tableHeight: undefined,\n tableIndex: -1,\n tableSelect: [],\n formIndexList: [],\n sumsList: [],\n cascaderDicList: {},\n formCascaderList: {},\n btnDisabledList: {},\n btnDisabled: false,\n \"default\": {},\n defaultBind: {}\n };\n },\n created: function created() {\n // 初始化数据\n this.dataInit();\n },\n mounted: function mounted() {\n var _this = this;\n\n this.refreshTable(function () {\n //动态计算表格高度\n _this.getTableHeight();\n });\n },\n computed: {\n defaultColumn: function defaultColumn() {\n return [{\n label: this.t('crud.column.hide'),\n prop: 'hide'\n }, {\n label: this.t('crud.column.fixed'),\n prop: 'fixed'\n }, {\n label: this.t('crud.column.filters'),\n prop: 'filters'\n }, {\n label: this.t('crud.column.screen'),\n prop: 'screen'\n }, {\n label: this.t('crud.column.sortable'),\n prop: 'sortable'\n }, {\n label: this.t('crud.column.index'),\n prop: 'index',\n hide: true\n }, {\n label: this.t('crud.column.width'),\n prop: 'width',\n hide: true\n }];\n },\n isSortable: function isSortable() {\n return this.tableOption.sortable;\n },\n treeProps: function treeProps() {\n return this.tableOption.treeProps || {};\n },\n isAutoHeight: function isAutoHeight() {\n return this.tableOption.height === \"auto\";\n },\n cellForm: function cellForm() {\n var _this2 = this;\n\n var list = this.list;\n list = list.filter(function (ele) {\n var result = [];\n\n for (var o in _this2.objectOption) {\n if (!_this2.validatenull(_this2.objectOption[o].screenValue)) {\n var value = (ele['$' + o] ? ele['$' + o] : ele[o]) + '';\n result.push(value.indexOf(_this2.objectOption[o].screenValue) !== -1);\n }\n }\n\n if (_this2.validatenull(result)) {\n return true;\n }\n\n return eval(result.join('&&'));\n });\n return {\n list: list\n };\n },\n formSlot: function formSlot() {\n return this.getSlotList(['Error', 'Label', 'Type', 'Form'], this.$scopedSlots, this.propOption);\n },\n searchSlot: function searchSlot() {\n return this.getSlotList(['Search'], this.$scopedSlots, this.propOption);\n },\n mainSlot: function mainSlot() {\n var _this3 = this;\n\n var result = [];\n this.propOption.forEach(function (item) {\n if (_this3.$scopedSlots[item.prop]) result.push(item.prop);\n });\n return this.getSlotList(['Header', 'Form'], this.$scopedSlots, this.propOption).concat(result);\n },\n calcHeight: function calcHeight() {\n return (this.tableOption.calcHeight || 0) + this.$AVUE.calcHeight;\n },\n propOption: function propOption() {\n var result = [];\n\n function findProp() {\n var list = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];\n if (!Array.isArray(list)) return;\n list.forEach(function (ele) {\n result.push(ele);\n if (ele.children) findProp(ele.children);\n });\n }\n\n findProp(this.columnOption);\n result = Object(core_dataformat__WEBPACK_IMPORTED_MODULE_17__[\"calcCascader\"])(result);\n return result;\n },\n isShowSummary: function isShowSummary() {\n return this.option.showSummary;\n },\n isHeader: function isHeader() {\n var flag = false;\n this.columnOption.forEach(function (ele) {\n if (ele.children) {\n flag = true;\n }\n });\n return flag;\n },\n isTree: function isTree() {\n var flag = false;\n this.data.forEach(function (ele) {\n if (ele.children) {\n flag = true;\n }\n });\n return flag;\n },\n isCard: function isCard() {\n return this.option.card ? 'always' : 'never';\n },\n expandLevel: function expandLevel() {\n return this.parentOption.expandLevel || 0;\n },\n expandAll: function expandAll() {\n return this.parentOption.expandAll || false;\n },\n rowParentKey: function rowParentKey() {\n return this.tableOption.rowParentKey || \"parentId\";\n },\n parentOption: function parentOption() {\n return this.tableOption || {};\n },\n columnOption: function columnOption() {\n return this.tableOption.column || [];\n },\n sumColumnList: function sumColumnList() {\n return this.tableOption.sumColumnList || [];\n },\n selectLen: function selectLen() {\n return this.tableSelect ? this.tableSelect.length : 0;\n }\n },\n watch: {\n value: {\n handler: function handler() {\n this.tableForm = this.value;\n },\n immediate: true,\n deep: true\n },\n data: {\n handler: function handler() {\n this.dataInit();\n },\n deep: true\n }\n },\n props: {\n sortBy: Function,\n sortOrders: Array,\n sortMethod: Function,\n spanMethod: Function,\n summaryMethod: Function,\n rowStyle: Function,\n cellStyle: Function,\n beforeClose: Function,\n beforeOpen: Function,\n rowClassName: Function,\n cellClassName: Function,\n headerCellClassName: Function,\n uploadBefore: Function,\n uploadAfter: Function,\n uploadDelete: Function,\n uploadPreview: Function,\n uploadError: Function,\n uploadExceed: Function,\n permission: {\n type: [Function, Object],\n \"default\": function _default() {\n return {};\n }\n },\n value: {\n type: Object,\n \"default\": function _default() {\n return {};\n }\n },\n search: {\n type: Object,\n \"default\": function _default() {\n return {};\n }\n },\n page: {\n type: Object,\n \"default\": function _default() {\n return {};\n }\n },\n tableLoading: {\n type: Boolean,\n \"default\": false\n },\n disabled: {\n type: Boolean,\n \"default\": false\n },\n data: {\n type: Array,\n required: true,\n \"default\": function _default() {\n return [];\n }\n }\n },\n methods: {\n handleValidate: function handleValidate(prop, valid, msg) {\n if (!this.listError[prop]) this.$set(this.listError, prop, {\n valid: false,\n msg: ''\n });\n this.listError[prop].valid = !valid;\n this.listError[prop].msg = msg;\n },\n getPermission: function getPermission(key, row, index) {\n if (typeof this.permission === \"function\") {\n return this.permission(key, row, index);\n } else if (!this.validatenull(this.permission[key])) {\n return this.permission[key];\n } else {\n return true;\n }\n },\n getTableHeight: function getTableHeight() {\n var _this4 = this;\n\n if (this.isAutoHeight) {\n this.$nextTick(function () {\n var tableRef = _this4.$refs.table;\n var tablePageRef = _this4.$refs.tablePage;\n if (!tableRef) return;\n var tableStyle = tableRef.$el;\n var pageStyle = tablePageRef.$el.offsetHeight || 20;\n _this4.tableHeight = _config_js__WEBPACK_IMPORTED_MODULE_15__[\"default\"].clientHeight - tableStyle.offsetTop - pageStyle - _this4.calcHeight;\n });\n } else {\n this.tableHeight = this.tableOption.height;\n }\n },\n doLayout: function doLayout() {\n this.$refs.table.doLayout();\n },\n refreshTable: function refreshTable(callback) {\n var _this5 = this;\n\n this.reload = this.reload + 1;\n this.$nextTick(function () {\n _this5.$refs.columnDefault.setSort();\n\n callback && callback();\n });\n },\n //树懒加载\n treeLoad: function treeLoad(tree, treeNode, resolve) {\n this.$emit('tree-load', tree, treeNode, function (data) {\n tree.children = data;\n resolve(data);\n });\n },\n // 格式化数据源\n formatData: function formatData() {\n var data = this.data;\n\n if (data.length === 0) {\n return [];\n }\n\n Object(_eval__WEBPACK_IMPORTED_MODULE_16__[\"addAttrs\"])(this, data, {\n expand: this.expandAll,\n expandLevel: this.expandLevel\n });\n this.list = Object(_eval__WEBPACK_IMPORTED_MODULE_16__[\"default\"])(this, data);\n },\n menuIcon: function menuIcon(value) {\n return this.vaildData(this.tableOption[value + 'Text'], this.t(\"crud.\" + value));\n },\n getBtnIcon: function getBtnIcon(value) {\n var name = value + 'Icon';\n return this.tableOption[name] || _config_js__WEBPACK_IMPORTED_MODULE_15__[\"default\"][name];\n },\n //对部分表单字段进行校验的方法\n validateField: function validateField(val) {\n return this.$refs.dialogForm.$refs.tableForm.validateField(val);\n },\n handleGetRowKeys: function handleGetRowKeys(row) {\n var rowKey = row[this.rowKey];\n return rowKey;\n },\n selectClear: function selectClear() {\n this.$refs.table.clearSelection();\n },\n toggleRowSelection: function toggleRowSelection(row, selected) {\n this.$refs.table.toggleRowSelection(row, selected);\n },\n toggleRowExpansion: function toggleRowExpansion(row, expanded) {\n this.$refs.table.toggleRowExpansion(row, expanded);\n },\n setCurrentRow: function setCurrentRow(row) {\n this.$refs.table.setCurrentRow(row);\n },\n columnInit: function columnInit() {\n var _this6 = this;\n\n this.propOption.forEach(function (column) {\n if (_this6.defaultBind[column.prop] === true) return;\n\n _this6.defaultColumn.forEach(function (ele) {\n if (!_this6.objectOption[column.prop][ele.prop] && ele.prop == 'index') _this6.$set(_this6.objectOption[column.prop], ele.prop, '');\n\n if (['hide', 'filters', 'index'].includes(ele.prop)) {\n _this6.$watch(\"objectOption.\".concat(column.prop, \".\").concat(ele.prop), function () {\n return _this6.refreshTable();\n });\n }\n });\n\n _this6.defaultBind[column.prop] = true;\n });\n },\n dataInit: function dataInit() {\n var _this7 = this;\n\n this.list = this.data; //初始化序列的参数\n\n this.list.forEach(function (ele, index) {\n if (ele.$cellEdit && !_this7.formCascaderList[index]) {\n _this7.formCascaderList[index] = _this7.deepClone(ele);\n }\n\n ele.$index = index;\n });\n },\n //拖动表头事件\n headerDragend: function headerDragend(newWidth, oldWidth, column, event) {\n this.objectOption[column.property].width = newWidth;\n this.$emit(\"header-dragend\", newWidth, oldWidth, column, event);\n },\n headerSort: function headerSort(oldIndex, newIndex) {\n var _this8 = this;\n\n var column = this.propOption;\n var targetRow = column.splice(oldIndex, 1)[0];\n column.splice(newIndex, 0, targetRow);\n this.propOption.forEach(function (ele, index) {\n _this8.objectOption[ele.prop].index = index + 1;\n });\n },\n //展开或则关闭\n expandChange: function expandChange(row, expand) {\n this.$emit(\"expand-change\", row, expand);\n },\n //设置单选\n currentRowChange: function currentRowChange(currentRow, oldCurrentRow) {\n this.$emit(\"current-row-change\", currentRow, oldCurrentRow);\n },\n //刷新事件\n refreshChange: function refreshChange() {\n this.$emit(\"refresh-change\");\n },\n // 选中实例\n toggleSelection: function toggleSelection(rows) {\n var _this9 = this;\n\n if (rows) {\n rows.forEach(function (row) {\n _this9.$refs.table.toggleRowSelection(row);\n });\n } else {\n this.$refs.table.clearSelection();\n }\n },\n // 选择回调\n selectionChange: function selectionChange(val) {\n this.tableSelect = val;\n this.$emit(\"selection-change\", this.tableSelect);\n },\n // 单个选择回调\n select: function select(selection, row) {\n this.$emit(\"select\", selection, row);\n },\n // 点击勾选全选 Checkbox\n selectAll: function selectAll(selection) {\n this.$emit(\"select-all\", selection);\n },\n //筛选回调用\n filterChange: function filterChange(filters) {\n this.$emit(\"filter-change\", filters);\n },\n // 排序回调\n sortChange: function sortChange(val) {\n this.$emit(\"sort-change\", val);\n },\n // 行双击\n rowDblclick: function rowDblclick(row, event) {\n this.$emit(\"row-dblclick\", row, event);\n },\n // 行单机\n rowClick: function rowClick(row, event, column) {\n this.$emit(\"row-click\", row, event, column);\n },\n //清空排序\n clearSort: function clearSort() {\n this.$refs.table.clearSort();\n },\n //当单元格 hover 进入时会触发该事件\n cellMouseEnter: function cellMouseEnter(row, column, cell, event) {\n this.$emit(\"cell-mouse-enter\", row, column, cell, event);\n },\n //当单元格 hover 退出时会触发该事件\n cellMouseLeave: function cellMouseLeave(row, column, cell, event) {\n this.$emit(\"cell-mouse-leave\", row, column, cell, event);\n },\n //当某个单元格被点击时会触发该事件\n cellClick: function cellClick(row, column, cell, event) {\n this.$emit(\"cell-click\", row, column, cell, event);\n },\n //\t当某一列的表头被点击时会触发该事件\n headerClick: function headerClick(column, event) {\n this.$emit(\"header-click\", column, event);\n },\n //当某一行被鼠标右键点击时会触发该事件\n rowContextmenu: function rowContextmenu(row, column, event) {\n this.$emit(\"row-contextmenu\", row, column, event);\n },\n //当某一列的表头被鼠标右键点击时触发该事件\n headerContextmenu: function headerContextmenu(column, event) {\n this.$emit(\"header-contextmenu\", column, event);\n },\n //当某个单元格被双击击时会触发该事件\n cellDblclick: function cellDblclick(row, column, cell, event) {\n this.$emit(\"cell-dblclick\", row, column, cell, event);\n },\n //行编辑点击\n rowCell: function rowCell(row, index) {\n if (row.$cellEdit) {\n this.rowCellUpdate(row, index);\n } else {\n this.rowCellEdit(row, index);\n }\n },\n //单元格新增\n rowCellAdd: function rowCellAdd() {\n var _this10 = this;\n\n var row = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n var len = this.list.length;\n var formDefault = Object(core_dataformat__WEBPACK_IMPORTED_MODULE_17__[\"formInitVal\"])(this.propOption).tableForm;\n row = this.deepClone(Object.assign({\n $cellEdit: true,\n $index: len\n }, formDefault, row));\n this.list.push(row);\n this.formIndexList.push(len);\n setTimeout(function () {\n return _this10.$refs.columnDefault.setSort();\n });\n },\n //行取消\n rowCancel: function rowCancel(row, index) {\n if (this.validatenull(row[this.rowKey])) {\n this.list.splice(index, 1);\n return;\n }\n\n this.formCascaderList[index].$cellEdit = false; //设置行数据\n\n this.$set(this.list, index, this.formCascaderList[index]);\n delete this.formCascaderList[index]; //设置级联字典\n\n this.$set(this.cascaderDIC, index, this.cascaderDicList[index]);\n this.formIndexList.splice(this.formIndexList.indexOf(index), 1);\n },\n // 单元格编辑\n rowCellEdit: function rowCellEdit(row, index) {\n var _this11 = this;\n\n row.$cellEdit = true;\n this.$set(this.list, index, row); //缓冲行数据\n\n this.formCascaderList[index] = this.deepClone(row); //缓冲级联字典\n\n this.cascaderDicList[index] = this.deepClone(this.cascaderDIC[index]);\n setTimeout(function () {\n _this11.formIndexList.push(index);\n }, 1000);\n },\n // 对部分表单字段进行校验\n validateCellForm: function validateCellForm(cb) {\n var _this12 = this;\n\n return new Promise(function (resolve) {\n _this12.$refs.cellForm.validate(function (valid, msg) {\n resolve(msg);\n });\n });\n },\n validateCellField: function validateCellField(index) {\n var result = true;\n\n var _iterator = _createForOfIteratorHelper(this.$refs.cellForm.fields),\n _step;\n\n try {\n for (_iterator.s(); !(_step = _iterator.n()).done;) {\n var item = _step.value;\n\n if (item.prop.split('.')[1] == index) {\n this.$refs.cellForm.validateField(item.prop, function (error) {\n if (error) {\n result = false;\n }\n });\n }\n\n if (!result) break;\n }\n } catch (err) {\n _iterator.e(err);\n } finally {\n _iterator.f();\n }\n\n return result;\n },\n rowCellUpdate: function rowCellUpdate(row, index) {\n var _this13 = this;\n\n var result = this.validateCellField(index);\n\n var done = function done() {\n _this13.btnDisabledList[index] = false;\n _this13.btnDisabled = false;\n row.$cellEdit = false;\n\n _this13.$set(_this13.list, index, row);\n\n delete _this13.formCascaderList[index];\n };\n\n var loading = function loading() {\n _this13.btnDisabledList[index] = false;\n _this13.btnDisabled = false;\n };\n\n if (result) {\n this.btnDisabledList[index] = true;\n this.btnDisabled = true;\n\n if (this.validatenull(row[this.rowKey])) {\n this.$emit(\"row-save\", row, done, loading);\n } else {\n this.$emit(\"row-update\", row, index, done, loading);\n }\n }\n },\n rowAdd: function rowAdd() {\n this.$refs.dialogForm.show(\"add\");\n },\n rowSave: function rowSave() {\n return this.$refs.dialogForm.$refs.tableForm.submit();\n },\n rowUpdate: function rowUpdate() {\n return this.$refs.dialogForm.$refs.tableForm.submit();\n },\n closeDialog: function closeDialog() {\n return this.$refs.dialogForm.closeDialog();\n },\n //对象克隆\n rowClone: function rowClone(row) {\n var rowData = {};\n Object.keys(row).forEach(function (ele) {\n if (![\"_parent\", \"children\"].includes(ele)) {\n rowData[ele] = row[ele];\n }\n });\n return rowData;\n },\n getPropRef: function getPropRef(prop) {\n return this.$refs.dialogForm.$refs.tableForm.getPropRef(prop);\n },\n // 编辑\n rowEdit: function rowEdit(row, index) {\n this.tableForm = this.rowClone(row);\n this.tableIndex = index;\n this.$emit(\"input\", this.tableForm);\n this.$refs.dialogForm.show(\"edit\");\n },\n //复制\n rowCopy: function rowCopy(row) {\n this.tableForm = this.rowClone(row);\n delete this.tableForm[this.rowKey];\n this.tableIndex = -1;\n this.$emit(\"input\", this.tableForm);\n this.$refs.dialogForm.show(\"add\");\n },\n //查看\n rowView: function rowView(row, index) {\n this.tableForm = this.rowClone(row);\n this.tableIndex = index;\n this.$emit(\"input\", this.tableForm);\n this.$refs.dialogForm.show(\"view\");\n },\n vaildParent: function vaildParent(row) {\n return this.validatenull(row[this.rowParentKey]);\n },\n // 删除\n rowDel: function rowDel(row, index) {\n var _this14 = this;\n\n this.$emit(\"row-del\", row, index, function () {\n var callback = function callback() {\n var list = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];\n var index = list.findIndex(function (ele) {\n return ele[_this14.rowKey] === row[_this14.rowKey];\n });\n list.splice(index, 1);\n };\n\n if (_this14.isTree) {\n if (_this14.vaildParent(row)) {\n callback(_this14.data);\n } else {\n var parent = _this14.findObject(_this14.data, row[_this14.rowParentKey], _this14.rowKey);\n\n if (parent === undefined) {\n callback(_this14.data);\n } else {\n callback(parent.children);\n }\n }\n } else {\n callback(_this14.data);\n }\n });\n },\n //合并行\n tableSpanMethod: function tableSpanMethod(param) {\n if (typeof this.spanMethod === \"function\") return this.spanMethod(param);\n },\n //合集统计逻辑\n tableSummaryMethod: function tableSummaryMethod(param) {\n var _this15 = this;\n\n //如果自己写逻辑则调用summaryMethod方法\n if (typeof this.summaryMethod === \"function\") return this.summaryMethod(param);\n var columns = param.columns,\n data = param.data;\n var sums = [];\n\n if (columns.length > 0) {\n columns.forEach(function (column, index) {\n var currItem = _this15.sumColumnList.find(function (item) {\n return item.name === column.property;\n });\n\n if (index === 0) {\n sums[index] = '';\n } else if (currItem) {\n var decimals = currItem.decimals || 2;\n var label = currItem.label || '';\n\n switch (currItem.type) {\n case \"count\":\n sums[index] = label + data.length;\n break;\n\n case \"avg\":\n var avgValues = data.map(function (item) {\n return Number(item[column.property]);\n });\n var nowindex = 1;\n sums[index] = avgValues.reduce(function (perv, curr) {\n var value = Number(curr);\n\n if (!isNaN(value)) {\n return (perv * (nowindex - 1) + curr) / nowindex++;\n } else {\n return perv;\n }\n }, 0);\n sums[index] = label + sums[index].toFixed(decimals);\n break;\n\n case \"sum\":\n var values = data.map(function (item) {\n return Number(item[column.property]);\n });\n sums[index] = values.reduce(function (perv, curr) {\n var value = Number(curr);\n\n if (!isNaN(value)) {\n return perv + curr;\n } else {\n return perv;\n }\n }, 0);\n sums[index] = label + sums[index].toFixed(decimals);\n break;\n }\n } else {\n sums[index] = \"-\";\n }\n });\n }\n\n this.sumsList = sums;\n return sums;\n },\n tableDrop: function tableDrop(el, callback) {\n if (this.isSortable) {\n if (!window.Sortable) {\n core_packages__WEBPACK_IMPORTED_MODULE_1__[\"default\"].logs(\"Sortable\");\n return;\n }\n\n window.Sortable.create(el, {\n ghostClass: _config_js__WEBPACK_IMPORTED_MODULE_15__[\"default\"].ghostClass,\n chosenClass: _config_js__WEBPACK_IMPORTED_MODULE_15__[\"default\"].ghostClass,\n animation: 500,\n delay: 0,\n onEnd: function onEnd(evt) {\n return callback(evt);\n }\n });\n }\n }\n }\n}));\n\n//# sourceURL=webpack://AVUE/./packages/element-ui/crud/index.vue?./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options");
582
582
 
583
583
  /***/ }),
584
584
 
@@ -674,7 +674,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var core
674
674
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
675
675
 
676
676
  "use strict";
677
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var core_detail__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! core/detail */ \"./src/core/detail.js\");\n/* harmony import */ var core_create__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! core/create */ \"./src/core/create.js\");\n/* harmony import */ var _core_common_init__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../core/common/init */ \"./packages/core/common/init.js\");\n/* harmony import */ var _core_components_form_index__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../core/components/form/index */ \"./packages/core/components/form/index.vue\");\n/* harmony import */ var global_variable__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! global/variable */ \"./src/global/variable.js\");\n/* harmony import */ var core_dataformat__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! core/dataformat */ \"./src/core/dataformat.js\");\n/* harmony import */ var core_dic__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! core/dic */ \"./src/core/dic.js\");\n/* harmony import */ var utils_util__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! utils/util */ \"./src/utils/util.js\");\n/* harmony import */ var utils_mock__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! utils/mock */ \"./src/utils/mock.js\");\n/* harmony import */ var _menu__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./menu */ \"./packages/element-ui/form/menu.vue\");\nfunction _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }\n\nfunction _nonIterableSpread() { throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\n\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\n\nfunction _iterableToArray(iter) { if (typeof Symbol !== \"undefined\" && iter[Symbol.iterator] != null || iter[\"@@iterator\"] != null) return Array.from(iter); }\n\nfunction _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }\n\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }\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//\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//\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_1__[\"default\"])({\n name: \"form\",\n mixins: [Object(_core_common_init__WEBPACK_IMPORTED_MODULE_2__[\"default\"])()],\n components: {\n formTemp: _core_components_form_index__WEBPACK_IMPORTED_MODULE_3__[\"default\"],\n formMenu: _menu__WEBPACK_IMPORTED_MODULE_9__[\"default\"]\n },\n data: function data() {\n return {\n activeName: '',\n labelWidth: 90,\n allDisabled: false,\n optionIndex: [],\n optionBox: false,\n tableOption: {},\n itemSpanDefault: 12,\n bindList: {},\n form: {},\n formList: [],\n formCreate: false,\n formDefault: {},\n formVal: {}\n };\n },\n provide: function provide() {\n return {\n formSafe: this\n };\n },\n watch: {\n tabsActive: {\n handler: function handler(val) {\n this.activeName = this.tabsActive;\n },\n immediate: true\n },\n form: {\n handler: function handler(val) {\n if (this.formCreate) this.setVal();\n },\n deep: true\n },\n allDisabled: {\n handler: function handler(val) {\n this.$emit('update:status', val);\n },\n deep: true,\n immediate: true\n },\n value: {\n handler: function handler(val) {\n if (this.formCreate) {\n this.setForm(val);\n } else {\n this.formVal = Object.assign(this.formVal, val || {});\n }\n },\n deep: true,\n immediate: true\n }\n },\n computed: {\n columnSlot: function columnSlot() {\n var _this = this;\n\n return Object.keys(this.$scopedSlots).filter(function (item) {\n return !_this.propOption.map(function (ele) {\n return ele.prop;\n }).includes(item);\n });\n },\n labelSuffix: function labelSuffix() {\n return this.parentOption.labelSuffix || ':';\n },\n isMenu: function isMenu() {\n return this.columnOption.length != 1;\n },\n isDetail: function isDetail() {\n return this.detail == true;\n },\n isAdd: function isAdd() {\n return this.boxType === \"add\";\n },\n isTabs: function isTabs() {\n return this.parentOption.tabs;\n },\n isEdit: function isEdit() {\n return this.boxType === \"edit\";\n },\n isView: function isView() {\n return this.boxType === \"view\";\n },\n gutter: function gutter() {\n return this.setPx((this.parentOption.gutter || 10) / 2);\n },\n detail: function detail() {\n return this.parentOption.detail;\n },\n disabled: function disabled() {\n return this.parentOption.disabled;\n },\n readonly: function readonly() {\n return this.parentOption.readonly;\n },\n tabsType: function tabsType() {\n return this.parentOption.tabsType;\n },\n columnLen: function columnLen() {\n return this.columnOption.length;\n },\n dynamicOption: function dynamicOption() {\n var _this2 = this;\n\n var list = [];\n this.propOption.forEach(function (ele) {\n if (ele.type == 'dynamic' && _this2.vaildDisplay(ele)) {\n list.push(ele);\n }\n });\n return list;\n },\n controlOption: function controlOption() {\n var list = [];\n this.propOption.forEach(function (ele) {\n if (ele.control) list.push(ele);\n });\n return list;\n },\n propOption: function propOption() {\n var list = [];\n this.columnOption.forEach(function (option) {\n option.column.forEach(function (column) {\n return list.push(column);\n });\n });\n return list;\n },\n parentOption: function parentOption() {\n var option = this.deepClone(this.tableOption);\n var group = option.group;\n\n if (!group) {\n option = Object.assign(option, {\n group: [this.deepClone(option)]\n });\n }\n\n if (group) {\n //处理分组以外的部分\n group.unshift({\n arrow: false,\n column: option.column\n });\n }\n\n return option;\n },\n columnOption: function columnOption() {\n var _this3 = this;\n\n var list = _toConsumableArray(this.parentOption.group) || [];\n list.forEach(function (ele, index) {\n ele.column = ele.column || []; // 循环列的全部属性\n\n ele.column.forEach(function (column, cindex) {\n //动态计算列的位置,如果为隐藏状态则或则手机状态不计算\n if (column.display !== false && !_this3.isMobile) {\n column = Object(core_dataformat__WEBPACK_IMPORTED_MODULE_5__[\"calcCount\"])(column, _this3.itemSpanDefault, cindex === 0);\n }\n }); //处理级联属性\n\n ele.column = Object(core_dataformat__WEBPACK_IMPORTED_MODULE_5__[\"calcCascader\"])(ele.column); //根据order排序\n\n ele.column = Object(utils_util__WEBPACK_IMPORTED_MODULE_7__[\"arraySort\"])(ele.column, 'order', function (a, b) {\n return a.order - b.order;\n });\n });\n return list;\n },\n menuPosition: function menuPosition() {\n if (this.parentOption.menuPosition) {\n return this.parentOption.menuPosition;\n } else {\n return \"center\";\n }\n },\n boxType: function boxType() {\n return this.parentOption.boxType;\n },\n isPrint: function isPrint() {\n return this.vaildData(this.parentOption.printBtn, false);\n },\n tabsActive: function tabsActive() {\n return this.vaildData(this.tableOption.tabsActive + '', '1');\n },\n isMock: function isMock() {\n return this.vaildData(this.parentOption.mockBtn, false);\n }\n },\n props: {\n uploadBefore: Function,\n uploadAfter: Function,\n uploadDelete: Function,\n uploadPreview: Function,\n uploadError: Function,\n uploadExceed: Function,\n status: {\n type: Boolean,\n \"default\": false\n },\n isCrud: {\n type: Boolean,\n \"default\": false\n },\n value: {\n type: Object,\n required: true,\n \"default\": function _default() {\n return {};\n }\n }\n },\n created: function created() {\n var _this4 = this;\n\n this.$nextTick(function () {\n _this4.dataFormat();\n\n _this4.setVal();\n\n _this4.$nextTick(function () {\n return _this4.clearValidate();\n });\n\n _this4.formCreate = true;\n });\n },\n methods: {\n getComponent: core_dataformat__WEBPACK_IMPORTED_MODULE_5__[\"getComponent\"],\n getPlaceholder: core_dataformat__WEBPACK_IMPORTED_MODULE_5__[\"getPlaceholder\"],\n getDisabled: function getDisabled(column) {\n return this.vaildDetail(column) || this.isDetail || this.vaildDisabled(column) || this.allDisabled;\n },\n getSpan: function getSpan(column) {\n return column.span || this.parentOption.span || this.itemSpanDefault;\n },\n isGroupShow: function isGroupShow(item, index) {\n if (this.isTabs) {\n return index == this.activeName || index == 0;\n } else {\n return true;\n }\n },\n forEachLabel: function forEachLabel() {\n var _this5 = this;\n\n this.propOption.forEach(function (column) {\n var result;\n var DIC = _this5.DIC[column.prop];\n\n if (!_this5.validatenull(DIC)) {\n result = Object(core_detail__WEBPACK_IMPORTED_MODULE_0__[\"detail\"])(_this5.form, column, _this5.tableOption, DIC);\n\n _this5.$set(_this5.form, [\"$\" + column.prop], result);\n }\n });\n },\n handleGroupClick: function handleGroupClick(activeNames) {\n this.$emit('tab-click', activeNames);\n },\n handleTabClick: function handleTabClick(tab, event) {\n this.$emit('tab-click', tab, event);\n },\n getLabelWidth: function getLabelWidth(column, item) {\n var result;\n\n if (!this.validatenull(column.labelWidth)) {\n result = column.labelWidth;\n } else if (!this.validatenull(item.labelWidth)) {\n result = item.labelWidth;\n } else {\n result = this.parentOption.labelWidth;\n }\n\n return this.setPx(result, this.labelWidth);\n },\n //对部分表单字段进行校验的方法\n validateField: function validateField(val) {\n return this.$refs.form.validateField(val);\n },\n validTip: function validTip(column) {\n return !column.tip || column.type === 'upload';\n },\n getPropRef: function getPropRef(prop) {\n return this.$refs[prop][0];\n },\n //初始化表单\n dataFormat: function dataFormat() {\n this.formDefault = Object(core_dataformat__WEBPACK_IMPORTED_MODULE_5__[\"formInitVal\"])(this.propOption);\n var value = this.deepClone(this.formDefault.tableForm);\n this.setForm(this.deepClone(Object.assign(value, this.formVal)));\n },\n setVal: function setVal() {\n this.setControl();\n this.$emit(\"input\", this.form);\n this.$emit(\"change\", this.form);\n },\n setControl: function setControl() {\n var _this6 = this;\n\n this.controlOption.forEach(function (ele) {\n var control = ele.control(_this6.form[ele.prop], _this6.form) || {};\n Object.keys(control).forEach(function (item) {\n _this6.objectOption[item] = Object.assign(_this6.objectOption[item], control[item]);\n\n if (control[item].dicData) {\n _this6.DIC[item] = control[item].dicData;\n }\n });\n });\n },\n //表单赋值\n setForm: function setForm(value) {\n var _this7 = this;\n\n Object.keys(value).forEach(function (ele) {\n var result = value[ele];\n\n var column = _this7.propOption.find(function (column) {\n return column.prop == ele;\n });\n\n _this7.$set(_this7.form, ele, result);\n\n if (!column) return;\n var prop = column.prop;\n var bind = column.bind;\n\n if (bind && !_this7.bindList[prop]) {\n _this7.$watch('form.' + prop, function (n, o) {\n if (n != o) Object(utils_util__WEBPACK_IMPORTED_MODULE_7__[\"setAsVal\"])(_this7.form, bind, n);\n });\n\n _this7.$watch('form.' + bind, function (n, o) {\n if (n != o) _this7.$set(_this7.form, prop, n);\n });\n\n _this7.$set(_this7.form, prop, eval('value.' + bind));\n\n _this7.bindList[prop] = true;\n }\n });\n this.forEachLabel();\n },\n handleChange: function handleChange(list, column) {\n var _this8 = this;\n\n this.$nextTick(function () {\n var cascader = column.cascader;\n var str = cascader.join(\",\");\n var columnNextProp = cascader[0];\n var value = _this8.form[column.prop]; // 下一个节点\n\n var columnNext = _this8.findObject(list, columnNextProp);\n\n if (_this8.validatenull(columnNext)) return; // 如果不是首次加载则清空全部关联节点的属性值和字典值\n\n if (_this8.formList.includes(str)) {\n //清空子类字典列表和值\n cascader.forEach(function (ele) {\n _this8.form[ele] = \"\";\n\n _this8.$set(_this8.DIC, ele, []);\n });\n }\n /**\n * 1.判断当前节点是否有下级节点\n * 2.判断当前节点是否有值\n */\n\n\n if (_this8.validatenull(cascader) || _this8.validatenull(value) || _this8.validatenull(columnNext)) {\n return;\n } // 根据当前节点值获取下一个节点的字典\n\n\n Object(core_dic__WEBPACK_IMPORTED_MODULE_6__[\"sendDic\"])({\n column: columnNext,\n value: value,\n form: _this8.form\n }).then(function (res) {\n //首次加载的放入队列记录\n if (!_this8.formList.includes(str)) _this8.formList.push(str); // 修改字典\n\n var dic = Array.isArray(res) ? res : [];\n\n _this8.$set(_this8.DIC, columnNextProp, dic);\n\n if (!_this8.validatenull(dic) && !_this8.validatenull(dic) && !_this8.validatenull(columnNext.cascaderIndex) && _this8.validatenull(_this8.form[columnNextProp])) {\n _this8.form[columnNextProp] = dic[columnNext.cascaderIndex][(columnNext.props || {}).value || global_variable__WEBPACK_IMPORTED_MODULE_4__[\"DIC_PROPS\"].value];\n }\n });\n });\n },\n handlePrint: function handlePrint() {\n this.$Print(this.$el);\n },\n propChange: function propChange(option, column) {\n if (column.cascader) this.handleChange(option, column);\n },\n handleMock: function handleMock() {\n var _this9 = this;\n\n if (!this.isMock) return;\n this.columnOption.forEach(function (column) {\n var form = Object(utils_mock__WEBPACK_IMPORTED_MODULE_8__[\"default\"])(column.column, _this9.DIC, _this9.form, _this9.isMock);\n\n if (!_this9.validatenull(form)) {\n Object.keys(form).forEach(function (ele) {\n _this9.form[ele] = form[ele];\n });\n }\n });\n this.$nextTick(function () {\n _this9.clearValidate();\n\n _this9.$emit('mock-change', _this9.form);\n });\n },\n vaildDetail: function vaildDetail(column) {\n var key;\n if (this.detail) return false;\n\n if (!this.validatenull(column.detail)) {\n key = 'detail';\n } else if (this.isAdd) {\n key = 'addDetail';\n } else if (this.isEdit) {\n key = 'editDetail';\n } else if (this.isView) {\n return false;\n }\n\n if (key) return this.vaildData(column[key], false);\n return false;\n },\n // 验证表单是否禁止\n vaildDisabled: function vaildDisabled(column) {\n var key;\n if (this.disabled) return true;\n\n if (!this.validatenull(column.disabled)) {\n key = 'disabled';\n } else if (this.isAdd) {\n key = 'addDisabled';\n } else if (this.isEdit) {\n key = 'editDisabled';\n } else if (this.isView) {\n return true;\n }\n\n if (key) return this.vaildData(column[key], false);\n return false;\n },\n // 验证表单是否显隐\n vaildDisplay: function vaildDisplay(column) {\n var key;\n\n if (!this.validatenull(column.display)) {\n key = 'display';\n } else if (this.isAdd) {\n key = 'addDisplay';\n } else if (this.isEdit) {\n key = 'editDisplay';\n } else if (this.isView) {\n key = 'viewDisplay';\n }\n\n if (key) return this.vaildData(column[key], true);\n return true;\n },\n clearValidate: function clearValidate(list) {\n this.$refs.form.clearValidate(list);\n },\n validateCellForm: function validateCellForm() {\n var _this10 = this;\n\n return new Promise(function (resolve) {\n _this10.$refs.form.validate(function (valid, msg) {\n resolve(msg);\n });\n });\n },\n validate: function validate(callback) {\n var _this11 = this;\n\n this.$refs.form.validate(function (valid, msg) {\n var dynamicList = [];\n var dynamicName = [];\n var dynamicError = {};\n\n _this11.dynamicOption.forEach(function (ele) {\n var isForm = ele.children.type === 'form';\n dynamicName.push(ele.prop);\n\n if (isForm) {\n if (!_this11.validatenull(_this11.$refs[ele.prop][0].$refs.temp.$refs.main)) {\n _this11.$refs[ele.prop][0].$refs.temp.$refs.main.forEach(function (ele) {\n dynamicList.push(ele.validateCellForm());\n });\n }\n } else {\n dynamicList.push(_this11.$refs[ele.prop][0].$refs.temp.$refs.main.validateCellForm());\n }\n });\n\n Promise.all(dynamicList).then(function (res) {\n var count = 0;\n res.forEach(function (error, index) {\n if (!_this11.validatenull(error)) {\n dynamicError[dynamicName[index]] = error;\n }\n });\n var result = Object.assign(dynamicError, msg);\n\n if (_this11.validatenull(result)) {\n _this11.show();\n\n callback(true, _this11.hide);\n } else {\n callback(false, _this11.hide, result);\n }\n });\n });\n },\n resetForm: function resetForm() {\n var _this12 = this;\n\n this.form = Object(utils_util__WEBPACK_IMPORTED_MODULE_7__[\"clearVal\"])(this.form, (this.tableOption.clearExclude || []).concat([this.rowKey]));\n this.$nextTick(function () {\n _this12.clearValidate();\n\n _this12.$emit(\"reset-change\");\n });\n },\n resetFields: function resetFields() {\n this.$refs.form.resetFields();\n },\n show: function show() {\n this.allDisabled = true;\n },\n hide: function hide() {\n this.allDisabled = false;\n },\n submit: function submit() {\n var _this13 = this;\n\n this.validate(function (valid, msg) {\n if (valid) {\n _this13.$emit(\"submit\", Object(utils_util__WEBPACK_IMPORTED_MODULE_7__[\"filterDefaultParams\"])(_this13.form, _this13.parentOption.translate), _this13.hide);\n } else {\n _this13.$emit(\"error\", msg);\n }\n });\n }\n }\n}));\n\n//# sourceURL=webpack://AVUE/./packages/element-ui/form/index.vue?./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options");
677
+ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var core_detail__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! core/detail */ \"./src/core/detail.js\");\n/* harmony import */ var core_create__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! core/create */ \"./src/core/create.js\");\n/* harmony import */ var _core_common_init__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../core/common/init */ \"./packages/core/common/init.js\");\n/* harmony import */ var _core_components_form_index__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../core/components/form/index */ \"./packages/core/components/form/index.vue\");\n/* harmony import */ var global_variable__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! global/variable */ \"./src/global/variable.js\");\n/* harmony import */ var core_dataformat__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! core/dataformat */ \"./src/core/dataformat.js\");\n/* harmony import */ var core_dic__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! core/dic */ \"./src/core/dic.js\");\n/* harmony import */ var utils_util__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! utils/util */ \"./src/utils/util.js\");\n/* harmony import */ var utils_mock__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! utils/mock */ \"./src/utils/mock.js\");\n/* harmony import */ var _menu__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./menu */ \"./packages/element-ui/form/menu.vue\");\nfunction _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }\n\nfunction _nonIterableSpread() { throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\n\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\n\nfunction _iterableToArray(iter) { if (typeof Symbol !== \"undefined\" && iter[Symbol.iterator] != null || iter[\"@@iterator\"] != null) return Array.from(iter); }\n\nfunction _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }\n\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }\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//\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//\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_1__[\"default\"])({\n name: \"form\",\n mixins: [Object(_core_common_init__WEBPACK_IMPORTED_MODULE_2__[\"default\"])()],\n components: {\n formTemp: _core_components_form_index__WEBPACK_IMPORTED_MODULE_3__[\"default\"],\n formMenu: _menu__WEBPACK_IMPORTED_MODULE_9__[\"default\"]\n },\n data: function data() {\n return {\n activeName: '',\n labelWidth: 90,\n allDisabled: false,\n optionIndex: [],\n optionBox: false,\n tableOption: {},\n itemSpanDefault: 12,\n bindList: {},\n form: {},\n formList: [],\n formCreate: false,\n formDefault: {},\n formVal: {}\n };\n },\n provide: function provide() {\n return {\n formSafe: this\n };\n },\n watch: {\n tabsActive: {\n handler: function handler(val) {\n this.activeName = this.tabsActive;\n },\n immediate: true\n },\n form: {\n handler: function handler(val) {\n if (this.formCreate) this.setVal();\n },\n deep: true\n },\n allDisabled: {\n handler: function handler(val) {\n this.$emit('update:status', val);\n },\n deep: true,\n immediate: true\n },\n value: {\n handler: function handler(val) {\n if (this.formCreate) {\n this.setForm(val);\n } else {\n this.formVal = Object.assign(this.formVal, val || {});\n }\n },\n deep: true,\n immediate: true\n }\n },\n computed: {\n columnSlot: function columnSlot() {\n var _this = this;\n\n return Object.keys(this.$scopedSlots).filter(function (item) {\n return !_this.propOption.map(function (ele) {\n return ele.prop;\n }).includes(item);\n });\n },\n labelSuffix: function labelSuffix() {\n return this.parentOption.labelSuffix || ':';\n },\n isMenu: function isMenu() {\n return this.columnOption.length != 1;\n },\n isDetail: function isDetail() {\n return this.detail == true;\n },\n isAdd: function isAdd() {\n return this.boxType === \"add\";\n },\n isTabs: function isTabs() {\n return this.parentOption.tabs;\n },\n isEdit: function isEdit() {\n return this.boxType === \"edit\";\n },\n isView: function isView() {\n return this.boxType === \"view\";\n },\n gutter: function gutter() {\n return this.setPx((this.parentOption.gutter || 10) / 2);\n },\n detail: function detail() {\n return this.parentOption.detail;\n },\n disabled: function disabled() {\n return this.parentOption.disabled;\n },\n readonly: function readonly() {\n return this.parentOption.readonly;\n },\n tabsType: function tabsType() {\n return this.parentOption.tabsType;\n },\n columnLen: function columnLen() {\n return this.columnOption.length;\n },\n dynamicOption: function dynamicOption() {\n var _this2 = this;\n\n var list = [];\n this.propOption.forEach(function (ele) {\n if (ele.type == 'dynamic' && _this2.vaildDisplay(ele)) {\n list.push(ele);\n }\n });\n return list;\n },\n controlOption: function controlOption() {\n var list = [];\n this.propOption.forEach(function (ele) {\n if (ele.control) list.push(ele);\n });\n return list;\n },\n propOption: function propOption() {\n var list = [];\n this.columnOption.forEach(function (option) {\n if (option.display !== false) {\n option.column.forEach(function (column) {\n list.push(column);\n });\n }\n });\n return list;\n },\n parentOption: function parentOption() {\n var option = this.deepClone(this.tableOption);\n var group = option.group;\n\n if (!group) {\n option = Object.assign(option, {\n group: [this.deepClone(option)]\n });\n }\n\n if (group) {\n //处理分组以外的部分\n group.unshift({\n arrow: false,\n column: option.column\n });\n }\n\n return option;\n },\n columnOption: function columnOption() {\n var _this3 = this;\n\n var list = _toConsumableArray(this.parentOption.group) || [];\n list.forEach(function (ele, index) {\n ele.column = ele.column || []; // 循环列的全部属性\n\n ele.column.forEach(function (column, cindex) {\n //动态计算列的位置,如果为隐藏状态则或则手机状态不计算\n if (column.display !== false && !_this3.isMobile) {\n column = Object(core_dataformat__WEBPACK_IMPORTED_MODULE_5__[\"calcCount\"])(column, _this3.itemSpanDefault, cindex === 0);\n }\n }); //处理级联属性\n\n ele.column = Object(core_dataformat__WEBPACK_IMPORTED_MODULE_5__[\"calcCascader\"])(ele.column); //根据order排序\n\n ele.column = ele.column.sort(function (a, b) {\n return b.order || 0 - a.order || 0;\n });\n });\n return list;\n },\n menuPosition: function menuPosition() {\n if (this.parentOption.menuPosition) {\n return this.parentOption.menuPosition;\n } else {\n return \"center\";\n }\n },\n boxType: function boxType() {\n return this.parentOption.boxType;\n },\n isPrint: function isPrint() {\n return this.vaildData(this.parentOption.printBtn, false);\n },\n tabsActive: function tabsActive() {\n return this.vaildData(this.tableOption.tabsActive + '', '1');\n },\n isMock: function isMock() {\n return this.vaildData(this.parentOption.mockBtn, false);\n }\n },\n props: {\n uploadBefore: Function,\n uploadAfter: Function,\n uploadDelete: Function,\n uploadPreview: Function,\n uploadError: Function,\n uploadExceed: Function,\n status: {\n type: Boolean,\n \"default\": false\n },\n isCrud: {\n type: Boolean,\n \"default\": false\n },\n value: {\n type: Object,\n required: true,\n \"default\": function _default() {\n return {};\n }\n }\n },\n created: function created() {\n var _this4 = this;\n\n this.$nextTick(function () {\n _this4.dataFormat();\n\n _this4.setVal();\n\n _this4.$nextTick(function () {\n return _this4.clearValidate();\n });\n\n _this4.formCreate = true;\n });\n },\n methods: {\n getComponent: core_dataformat__WEBPACK_IMPORTED_MODULE_5__[\"getComponent\"],\n getPlaceholder: core_dataformat__WEBPACK_IMPORTED_MODULE_5__[\"getPlaceholder\"],\n getDisabled: function getDisabled(column) {\n return this.vaildDetail(column) || this.isDetail || this.vaildDisabled(column) || this.allDisabled;\n },\n getSpan: function getSpan(column) {\n return column.span || this.parentOption.span || this.itemSpanDefault;\n },\n isGroupShow: function isGroupShow(item, index) {\n if (this.isTabs) {\n return index == this.activeName || index == 0;\n } else {\n return true;\n }\n },\n forEachLabel: function forEachLabel() {\n var _this5 = this;\n\n this.propOption.forEach(function (column) {\n var result;\n var DIC = _this5.DIC[column.prop];\n\n if (!_this5.validatenull(DIC)) {\n result = Object(core_detail__WEBPACK_IMPORTED_MODULE_0__[\"detail\"])(_this5.form, column, _this5.tableOption, DIC);\n\n _this5.$set(_this5.form, [\"$\" + column.prop], result);\n }\n });\n },\n handleGroupClick: function handleGroupClick(activeNames) {\n this.$emit('tab-click', activeNames);\n },\n handleTabClick: function handleTabClick(tab, event) {\n this.$emit('tab-click', tab, event);\n },\n getLabelWidth: function getLabelWidth(column, item) {\n var result;\n\n if (!this.validatenull(column.labelWidth)) {\n result = column.labelWidth;\n } else if (!this.validatenull(item.labelWidth)) {\n result = item.labelWidth;\n } else {\n result = this.parentOption.labelWidth;\n }\n\n return this.setPx(result, this.labelWidth);\n },\n //对部分表单字段进行校验的方法\n validateField: function validateField(val) {\n return this.$refs.form.validateField(val);\n },\n validTip: function validTip(column) {\n return !column.tip || column.type === 'upload';\n },\n getPropRef: function getPropRef(prop) {\n return this.$refs[prop][0];\n },\n //初始化表单\n dataFormat: function dataFormat() {\n this.formDefault = Object(core_dataformat__WEBPACK_IMPORTED_MODULE_5__[\"formInitVal\"])(this.propOption);\n var value = this.deepClone(this.formDefault.tableForm);\n this.setForm(this.deepClone(Object.assign(value, this.formVal)));\n },\n setVal: function setVal() {\n this.setControl();\n this.$emit(\"input\", this.form);\n this.$emit(\"change\", this.form);\n },\n setControl: function setControl() {\n var _this6 = this;\n\n this.controlOption.forEach(function (ele) {\n var control = ele.control(_this6.form[ele.prop], _this6.form) || {};\n Object.keys(control).forEach(function (item) {\n _this6.objectOption[item] = Object.assign(_this6.objectOption[item], control[item]);\n\n if (control[item].dicData) {\n _this6.DIC[item] = control[item].dicData;\n }\n });\n });\n },\n //表单赋值\n setForm: function setForm(value) {\n var _this7 = this;\n\n Object.keys(value).forEach(function (ele) {\n var result = value[ele];\n\n var column = _this7.propOption.find(function (column) {\n return column.prop == ele;\n });\n\n _this7.$set(_this7.form, ele, result);\n\n if (!column) return;\n var prop = column.prop;\n var bind = column.bind;\n\n if (bind && !_this7.bindList[prop]) {\n _this7.$watch('form.' + prop, function (n, o) {\n if (n != o) Object(utils_util__WEBPACK_IMPORTED_MODULE_7__[\"setAsVal\"])(_this7.form, bind, n);\n });\n\n _this7.$watch('form.' + bind, function (n, o) {\n if (n != o) _this7.$set(_this7.form, prop, n);\n });\n\n _this7.$set(_this7.form, prop, eval('value.' + bind));\n\n _this7.bindList[prop] = true;\n }\n });\n this.forEachLabel();\n },\n handleChange: function handleChange(list, column) {\n var _this8 = this;\n\n this.$nextTick(function () {\n var cascader = column.cascader;\n var str = cascader.join(\",\");\n var columnNextProp = cascader[0];\n var value = _this8.form[column.prop]; // 下一个节点\n\n var columnNext = _this8.findObject(list, columnNextProp);\n\n if (_this8.validatenull(columnNext)) return; // 如果不是首次加载则清空全部关联节点的属性值和字典值\n\n if (_this8.formList.includes(str)) {\n //清空子类字典列表和值\n cascader.forEach(function (ele) {\n _this8.form[ele] = \"\";\n\n _this8.$set(_this8.DIC, ele, []);\n });\n }\n /**\n * 1.判断当前节点是否有下级节点\n * 2.判断当前节点是否有值\n */\n\n\n if (_this8.validatenull(cascader) || _this8.validatenull(value) || _this8.validatenull(columnNext)) {\n return;\n } // 根据当前节点值获取下一个节点的字典\n\n\n Object(core_dic__WEBPACK_IMPORTED_MODULE_6__[\"sendDic\"])({\n column: columnNext,\n value: value,\n form: _this8.form\n }).then(function (res) {\n //首次加载的放入队列记录\n if (!_this8.formList.includes(str)) _this8.formList.push(str); // 修改字典\n\n var dic = Array.isArray(res) ? res : [];\n\n _this8.$set(_this8.DIC, columnNextProp, dic);\n\n if (!_this8.validatenull(dic) && !_this8.validatenull(dic) && !_this8.validatenull(columnNext.cascaderIndex) && _this8.validatenull(_this8.form[columnNextProp])) {\n _this8.form[columnNextProp] = dic[columnNext.cascaderIndex][(columnNext.props || {}).value || global_variable__WEBPACK_IMPORTED_MODULE_4__[\"DIC_PROPS\"].value];\n }\n });\n });\n },\n handlePrint: function handlePrint() {\n this.$Print(this.$el);\n },\n propChange: function propChange(option, column) {\n if (column.cascader) this.handleChange(option, column);\n },\n handleMock: function handleMock() {\n var _this9 = this;\n\n if (!this.isMock) return;\n this.columnOption.forEach(function (column) {\n var form = Object(utils_mock__WEBPACK_IMPORTED_MODULE_8__[\"default\"])(column.column, _this9.DIC, _this9.form, _this9.isMock);\n\n if (!_this9.validatenull(form)) {\n Object.keys(form).forEach(function (ele) {\n _this9.form[ele] = form[ele];\n });\n }\n });\n this.$nextTick(function () {\n _this9.clearValidate();\n\n _this9.$emit('mock-change', _this9.form);\n });\n },\n vaildDetail: function vaildDetail(column) {\n var key;\n if (this.detail) return false;\n\n if (!this.validatenull(column.detail)) {\n key = 'detail';\n } else if (this.isAdd) {\n key = 'addDetail';\n } else if (this.isEdit) {\n key = 'editDetail';\n } else if (this.isView) {\n return false;\n }\n\n if (key) return this.vaildData(column[key], false);\n return false;\n },\n // 验证表单是否禁止\n vaildDisabled: function vaildDisabled(column) {\n var key;\n if (this.disabled) return true;\n\n if (!this.validatenull(column.disabled)) {\n key = 'disabled';\n } else if (this.isAdd) {\n key = 'addDisabled';\n } else if (this.isEdit) {\n key = 'editDisabled';\n } else if (this.isView) {\n return true;\n }\n\n if (key) return this.vaildData(column[key], false);\n return false;\n },\n // 验证表单是否显隐\n vaildDisplay: function vaildDisplay(column) {\n var key;\n\n if (!this.validatenull(column.display)) {\n key = 'display';\n } else if (this.isAdd) {\n key = 'addDisplay';\n } else if (this.isEdit) {\n key = 'editDisplay';\n } else if (this.isView) {\n key = 'viewDisplay';\n }\n\n if (key) return this.vaildData(column[key], true);\n return true;\n },\n clearValidate: function clearValidate(list) {\n this.$refs.form.clearValidate(list);\n },\n validateCellForm: function validateCellForm() {\n var _this10 = this;\n\n return new Promise(function (resolve) {\n _this10.$refs.form.validate(function (valid, msg) {\n resolve(msg);\n });\n });\n },\n validate: function validate(callback) {\n var _this11 = this;\n\n this.$refs.form.validate(function (valid, msg) {\n var dynamicList = [];\n var dynamicName = [];\n var dynamicError = {};\n\n _this11.dynamicOption.forEach(function (ele) {\n var isForm = ele.children.type === 'form';\n dynamicName.push(ele.prop);\n\n if (isForm) {\n if (!_this11.validatenull(_this11.$refs[ele.prop][0].$refs.temp.$refs.main)) {\n _this11.$refs[ele.prop][0].$refs.temp.$refs.main.forEach(function (ele) {\n dynamicList.push(ele.validateCellForm());\n });\n }\n } else {\n dynamicList.push(_this11.$refs[ele.prop][0].$refs.temp.$refs.main.validateCellForm());\n }\n });\n\n Promise.all(dynamicList).then(function (res) {\n var count = 0;\n res.forEach(function (error, index) {\n if (!_this11.validatenull(error)) {\n dynamicError[dynamicName[index]] = error;\n }\n });\n var result = Object.assign(dynamicError, msg);\n\n if (_this11.validatenull(result)) {\n _this11.show();\n\n callback(true, _this11.hide);\n } else {\n callback(false, _this11.hide, result);\n }\n });\n });\n },\n resetForm: function resetForm() {\n var _this12 = this;\n\n this.form = Object(utils_util__WEBPACK_IMPORTED_MODULE_7__[\"clearVal\"])(this.form, (this.tableOption.clearExclude || []).concat([this.rowKey]));\n this.$nextTick(function () {\n _this12.clearValidate();\n\n _this12.$emit(\"reset-change\");\n });\n },\n resetFields: function resetFields() {\n this.$refs.form.resetFields();\n },\n show: function show() {\n this.allDisabled = true;\n },\n hide: function hide() {\n this.allDisabled = false;\n },\n submit: function submit() {\n var _this13 = this;\n\n this.validate(function (valid, msg) {\n if (valid) {\n _this13.$emit(\"submit\", Object(utils_util__WEBPACK_IMPORTED_MODULE_7__[\"filterDefaultParams\"])(_this13.form, _this13.parentOption.translate), _this13.hide);\n } else {\n _this13.$emit(\"error\", msg);\n }\n });\n }\n }\n}));\n\n//# sourceURL=webpack://AVUE/./packages/element-ui/form/index.vue?./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options");
678
678
 
679
679
  /***/ }),
680
680
 
@@ -890,7 +890,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var core
890
890
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
891
891
 
892
892
  "use strict";
893
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var core_packages__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! core/packages */ \"./src/core/packages.js\");\n/* harmony import */ var core_create__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! core/create */ \"./src/core/create.js\");\n/* harmony import */ var _core_common_props_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../core/common/props.js */ \"./packages/core/common/props.js\");\n/* harmony import */ var _core_common_event_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../core/common/event.js */ \"./packages/core/common/event.js\");\n/* harmony import */ var core_dic__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! core/dic */ \"./src/core/dic.js\");\n/* harmony import */ var global_variable__WEBPACK_IMPORTED_MODULE_5__ = __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/* harmony default export */ __webpack_exports__[\"default\"] = (Object(core_create__WEBPACK_IMPORTED_MODULE_1__[\"default\"])({\n name: \"select\",\n mixins: [Object(_core_common_props_js__WEBPACK_IMPORTED_MODULE_2__[\"default\"])(), Object(_core_common_event_js__WEBPACK_IMPORTED_MODULE_3__[\"default\"])()],\n data: function data() {\n return {\n checkAll: false,\n created: false,\n netDic: [],\n loading: false\n };\n },\n props: {\n value: {},\n loadingText: {\n type: String\n },\n noMatchText: {\n type: String\n },\n noDataText: {\n type: String\n },\n drag: {\n type: Boolean,\n \"default\": false\n },\n remote: {\n type: Boolean,\n \"default\": false\n },\n tags: {\n type: Boolean,\n \"default\": false\n },\n limit: {\n type: Number,\n \"default\": 0\n },\n filterable: {\n type: Boolean,\n \"default\": false\n },\n allowCreate: {\n type: Boolean,\n \"default\": false\n },\n defaultFirstOption: {\n type: Boolean,\n \"default\": false\n },\n all: {\n type: Boolean,\n \"default\": false\n }\n },\n watch: {\n value: function value(val) {\n if (!this.validatenull(val)) {\n if (this.remote && !this.created) {\n this.created = true;\n this.handleRemoteMethod(this.multiple ? this.text.join(global_variable__WEBPACK_IMPORTED_MODULE_5__[\"DIC_SPLIT\"]) : this.text);\n }\n }\n },\n dic: {\n handler: function handler(val) {\n this.netDic = val;\n },\n immediate: true\n }\n },\n mounted: function mounted() {\n if (this.drag) {\n this.setSort();\n }\n },\n methods: {\n setSort: function setSort() {\n var _this = this;\n\n if (!window.Sortable) {\n core_packages__WEBPACK_IMPORTED_MODULE_0__[\"default\"].logs('Sortable');\n return;\n }\n\n var el = this.$refs.main.$el.querySelectorAll('.el-select__tags > span')[0];\n this.sortable = window.Sortable.create(el, {\n ghostClass: 'sortable-ghost',\n // Class name for the drop placeholder,\n setData: function setData(dataTransfer) {\n dataTransfer.setData('Text', ''); // to avoid Firefox bug\n // Detail see : https://github.com/RubaXa/Sortable/issues/1012\n },\n onEnd: function onEnd(evt) {\n var targetRow = _this.value.splice(evt.oldIndex, 1)[0];\n\n _this.value.splice(evt.newIndex, 0, targetRow);\n }\n });\n },\n handleRemoteMethod: function handleRemoteMethod(query) {\n var _this2 = this;\n\n this.loading = true;\n Object(core_dic__WEBPACK_IMPORTED_MODULE_4__[\"sendDic\"])({\n column: this.column,\n value: query\n }).then(function (res) {\n _this2.loading = false;\n _this2.netDic = res;\n });\n },\n selectAll: function selectAll() {\n var _this3 = this;\n\n this.text = [];\n\n if (this.checkAll) {\n this.netDic.map(function (item) {\n _this3.text.push(item[_this3.valueKey]);\n });\n } else {\n this.text = [];\n }\n },\n changeSelect: function changeSelect(val) {\n this.checkAll = val.length === this.netDic.length;\n }\n }\n}));\n\n//# sourceURL=webpack://AVUE/./packages/element-ui/select/index.vue?./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options");
893
+ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var core_packages__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! core/packages */ \"./src/core/packages.js\");\n/* harmony import */ var core_create__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! core/create */ \"./src/core/create.js\");\n/* harmony import */ var _core_common_props_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../core/common/props.js */ \"./packages/core/common/props.js\");\n/* harmony import */ var _core_common_event_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../core/common/event.js */ \"./packages/core/common/event.js\");\n/* harmony import */ var core_dic__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! core/dic */ \"./src/core/dic.js\");\n/* harmony import */ var global_variable__WEBPACK_IMPORTED_MODULE_5__ = __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/* harmony default export */ __webpack_exports__[\"default\"] = (Object(core_create__WEBPACK_IMPORTED_MODULE_1__[\"default\"])({\n name: \"select\",\n mixins: [Object(_core_common_props_js__WEBPACK_IMPORTED_MODULE_2__[\"default\"])(), Object(_core_common_event_js__WEBPACK_IMPORTED_MODULE_3__[\"default\"])()],\n data: function data() {\n return {\n checkAll: false,\n created: false,\n netDic: [],\n loading: false\n };\n },\n props: {\n value: {},\n loadingText: {\n type: String\n },\n noMatchText: {\n type: String\n },\n noDataText: {\n type: String\n },\n drag: {\n type: Boolean,\n \"default\": false\n },\n remote: {\n type: Boolean,\n \"default\": false\n },\n tags: {\n type: Boolean,\n \"default\": false\n },\n limit: {\n type: Number,\n \"default\": 0\n },\n filterable: {\n type: Boolean,\n \"default\": false\n },\n allowCreate: {\n type: Boolean,\n \"default\": false\n },\n defaultFirstOption: {\n type: Boolean,\n \"default\": false\n },\n all: {\n type: Boolean,\n \"default\": false\n }\n },\n watch: {\n value: function value(val) {\n if (!this.validatenull(val)) {\n if (this.remote && !this.created) {\n this.created = true;\n this.handleRemoteMethod(this.multiple ? this.text.join(global_variable__WEBPACK_IMPORTED_MODULE_5__[\"DIC_SPLIT\"]) : this.text);\n }\n }\n },\n dic: {\n handler: function handler(val) {\n this.netDic = val;\n },\n immediate: true\n }\n },\n mounted: function mounted() {\n if (this.drag) {\n this.setSort();\n }\n },\n methods: {\n setSort: function setSort() {\n var _this = this;\n\n if (!window.Sortable) {\n core_packages__WEBPACK_IMPORTED_MODULE_0__[\"default\"].logs('Sortable');\n return;\n }\n\n var el = this.$refs.main.$el.querySelectorAll('.el-select__tags > span')[0];\n window.Sortable.create(el, {\n animation: 100,\n onEnd: function onEnd(evt) {\n var targetRow = _this.value.splice(evt.oldIndex, 1)[0];\n\n _this.value.splice(evt.newIndex, 0, targetRow);\n }\n });\n },\n handleRemoteMethod: function handleRemoteMethod(query) {\n var _this2 = this;\n\n this.loading = true;\n Object(core_dic__WEBPACK_IMPORTED_MODULE_4__[\"sendDic\"])({\n column: this.column,\n value: query\n }).then(function (res) {\n _this2.loading = false;\n _this2.netDic = res;\n });\n },\n selectAll: function selectAll() {\n var _this3 = this;\n\n this.text = [];\n\n if (this.checkAll) {\n this.netDic.map(function (item) {\n _this3.text.push(item[_this3.valueKey]);\n });\n } else {\n this.text = [];\n }\n },\n changeSelect: function changeSelect(val) {\n this.checkAll = val.length === this.netDic.length;\n }\n }\n}));\n\n//# sourceURL=webpack://AVUE/./packages/element-ui/select/index.vue?./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options");
894
894
 
895
895
  /***/ }),
896
896
 
@@ -1010,7 +1010,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var glob
1010
1010
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
1011
1011
 
1012
1012
  "use strict";
1013
- 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 _core_common_upload__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../core/common/upload */ \"./packages/core/common/upload.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/* 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\"])(), Object(_core_common_upload__WEBPACK_IMPORTED_MODULE_4__[\"default\"])(), _core_common_locale__WEBPACK_IMPORTED_MODULE_3__[\"default\"]],\n data: function data() {\n return {\n menu: false\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");
1013
+ 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//\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: 0\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 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 isDrag: function isDrag() {\n if (['picture-card', 'picture-img'].includes(this.listType)) {\n return false;\n }\n\n return this.drag;\n },\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 allParams: function allParams() {\n if (this.$typeList.video.test(this.imgUrl)) {\n return Object.assign({\n is: 'video'\n }, this.params);\n }\n\n return this.params;\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 || _this.$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 = _this2.reload + 1;\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 if (!window.axios) {\n core_packages__WEBPACK_IMPORTED_MODULE_8__[\"default\"].logs('axios');\n return Promise.reject();\n }\n\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");
1014
1014
 
1015
1015
  /***/ }),
1016
1016
 
@@ -1370,9 +1370,9 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) *
1370
1370
 
1371
1371
  /***/ }),
1372
1372
 
1373
- /***/ "./node_modules/vue-loader/lib/loaders/templateLoader.js?!./node_modules/vue-loader/lib/index.js?!./packages/element-ui/checkbox/index.vue?vue&type=template&id=64fd68f0&":
1373
+ /***/ "./node_modules/vue-loader/lib/loaders/templateLoader.js?!./node_modules/vue-loader/lib/index.js?!./packages/element-ui/checkbox/index.vue?vue&type=template&id=bee7318e&":
1374
1374
  /*!*************************************************************************************************************************************************************************************************************!*\
1375
- !*** ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/element-ui/checkbox/index.vue?vue&type=template&id=64fd68f0& ***!
1375
+ !*** ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/element-ui/checkbox/index.vue?vue&type=template&id=bee7318e& ***!
1376
1376
  \*************************************************************************************************************************************************************************************************************/
1377
1377
  /*! exports provided: render, staticRenderFns */
1378
1378
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
@@ -1454,9 +1454,9 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) *
1454
1454
 
1455
1455
  /***/ }),
1456
1456
 
1457
- /***/ "./node_modules/vue-loader/lib/loaders/templateLoader.js?!./node_modules/vue-loader/lib/index.js?!./packages/element-ui/crud/column-slot.vue?vue&type=template&id=253cbbc0&":
1457
+ /***/ "./node_modules/vue-loader/lib/loaders/templateLoader.js?!./node_modules/vue-loader/lib/index.js?!./packages/element-ui/crud/column-slot.vue?vue&type=template&id=6e688136&":
1458
1458
  /*!***************************************************************************************************************************************************************************************************************!*\
1459
- !*** ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/element-ui/crud/column-slot.vue?vue&type=template&id=253cbbc0& ***!
1459
+ !*** ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/element-ui/crud/column-slot.vue?vue&type=template&id=6e688136& ***!
1460
1460
  \***************************************************************************************************************************************************************************************************************/
1461
1461
  /*! exports provided: render, staticRenderFns */
1462
1462
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
@@ -1538,27 +1538,27 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) *
1538
1538
 
1539
1539
  /***/ }),
1540
1540
 
1541
- /***/ "./node_modules/vue-loader/lib/loaders/templateLoader.js?!./node_modules/vue-loader/lib/index.js?!./packages/element-ui/crud/header-search.vue?vue&type=template&id=233c8c0c&":
1541
+ /***/ "./node_modules/vue-loader/lib/loaders/templateLoader.js?!./node_modules/vue-loader/lib/index.js?!./packages/element-ui/crud/header-search.vue?vue&type=template&id=1f403bee&":
1542
1542
  /*!*****************************************************************************************************************************************************************************************************************!*\
1543
- !*** ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/element-ui/crud/header-search.vue?vue&type=template&id=233c8c0c& ***!
1543
+ !*** ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/element-ui/crud/header-search.vue?vue&type=template&id=1f403bee& ***!
1544
1544
  \*****************************************************************************************************************************************************************************************************************/
1545
1545
  /*! exports provided: render, staticRenderFns */
1546
1546
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
1547
1547
 
1548
1548
  "use strict";
1549
- 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 _c('el-collapse-transition',[_c('el-card',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.searchShow && _vm.searchFlag),expression:\"searchShow && searchFlag\"}],class:_vm.b(),attrs:{\"shadow\":_vm.crud.isCard}},[_vm._t(\"search\",null,{\"row\":_vm.searchForm,\"search\":_vm.searchForm,\"size\":_vm.crud.controlSize}),_vm._v(\" \"),(_vm.searchFlag)?_c('avue-form',{ref:\"form\",attrs:{\"option\":_vm.option},on:{\"submit\":_vm.searchChange,\"change\":_vm.handleChange,\"reset-change\":_vm.resetChange},scopedSlots:_vm._u([{key:\"menuForm\",fn:function(scope){return [_vm._t(\"searchMenu\",null,null,Object.assign(scope,{\n search:_vm.searchForm,\n row:_vm.searchForm\n })),_vm._v(\" \"),(_vm.isSearchIcon)?[(_vm.show===false)?_c('el-button',{attrs:{\"type\":\"text\",\"icon\":\"el-icon-arrow-down\"},on:{\"click\":function($event){_vm.show=true}}},[_vm._v(_vm._s(_vm.t('crud.open')))]):_vm._e(),_vm._v(\" \"),(_vm.show===true)?_c('el-button',{attrs:{\"type\":\"text\",\"icon\":\"el-icon-arrow-up\"},on:{\"click\":function($event){_vm.show=false}}},[_vm._v(_vm._s(_vm.t('crud.shrink')))]):_vm._e()]:_vm._e()]}},_vm._l((_vm.crud.searchSlot),function(item){return {key:_vm.getSlotName(item),fn:function(scope){return [_vm._t(item,null,null,Object.assign(scope,{\n search:_vm.searchForm,\n row:_vm.searchForm\n }))]}}})],null,true),model:{value:(_vm.searchForm),callback:function ($$v) {_vm.searchForm=$$v},expression:\"searchForm\"}}):_vm._e()],2)],1)}\nvar staticRenderFns = []\n\n\n\n//# sourceURL=webpack://AVUE/./packages/element-ui/crud/header-search.vue?./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options");
1549
+ 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 _c('el-card',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.searchShow && _vm.searchFlag),expression:\"searchShow && searchFlag\"}],class:_vm.b(),attrs:{\"shadow\":_vm.crud.isCard}},[_vm._t(\"search\",null,{\"row\":_vm.searchForm,\"search\":_vm.searchForm,\"size\":_vm.crud.controlSize}),_vm._v(\" \"),(_vm.searchFlag)?_c('avue-form',{ref:\"form\",attrs:{\"option\":_vm.option},on:{\"submit\":_vm.searchChange,\"change\":_vm.handleChange,\"reset-change\":_vm.resetChange},scopedSlots:_vm._u([{key:\"menuForm\",fn:function(scope){return [_vm._t(\"searchMenu\",null,null,Object.assign(scope,{\n search:_vm.searchForm,\n row:_vm.searchForm\n })),_vm._v(\" \"),(_vm.isSearchIcon)?[(_vm.show===false)?_c('el-button',{attrs:{\"type\":\"text\",\"icon\":\"el-icon-arrow-down\"},on:{\"click\":function($event){_vm.show=true}}},[_vm._v(_vm._s(_vm.t('crud.open')))]):_vm._e(),_vm._v(\" \"),(_vm.show===true)?_c('el-button',{attrs:{\"type\":\"text\",\"icon\":\"el-icon-arrow-up\"},on:{\"click\":function($event){_vm.show=false}}},[_vm._v(_vm._s(_vm.t('crud.shrink')))]):_vm._e()]:_vm._e()]}},_vm._l((_vm.crud.searchSlot),function(item){return {key:_vm.getSlotName(item),fn:function(scope){return [_vm._t(item,null,null,Object.assign(scope,{\n search:_vm.searchForm,\n row:_vm.searchForm\n }))]}}})],null,true),model:{value:(_vm.searchForm),callback:function ($$v) {_vm.searchForm=$$v},expression:\"searchForm\"}}):_vm._e()],2)}\nvar staticRenderFns = []\n\n\n\n//# sourceURL=webpack://AVUE/./packages/element-ui/crud/header-search.vue?./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options");
1550
1550
 
1551
1551
  /***/ }),
1552
1552
 
1553
- /***/ "./node_modules/vue-loader/lib/loaders/templateLoader.js?!./node_modules/vue-loader/lib/index.js?!./packages/element-ui/crud/index.vue?vue&type=template&id=48e1744a&":
1553
+ /***/ "./node_modules/vue-loader/lib/loaders/templateLoader.js?!./node_modules/vue-loader/lib/index.js?!./packages/element-ui/crud/index.vue?vue&type=template&id=0bb2c597&":
1554
1554
  /*!*********************************************************************************************************************************************************************************************************!*\
1555
- !*** ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/element-ui/crud/index.vue?vue&type=template&id=48e1744a& ***!
1555
+ !*** ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/element-ui/crud/index.vue?vue&type=template&id=0bb2c597& ***!
1556
1556
  \*********************************************************************************************************************************************************************************************************/
1557
1557
  /*! exports provided: render, staticRenderFns */
1558
1558
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
1559
1559
 
1560
1560
  "use strict";
1561
- 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 _c('div',{class:_vm.b({'card':!_vm.option.card})},[(_vm.tableOption.title)?_c(_vm.tableOption.titleSize || 'h2',{tag:\"component\",style:(_vm.tableOption.titleStyle)},[_vm._v(_vm._s(_vm.tableOption.title))]):_vm._e(),_vm._v(\" \"),_c('header-search',{ref:\"headerSearch\",attrs:{\"search\":_vm.search},scopedSlots:_vm._u([{key:\"search\",fn:function(scope){return [_vm._t(\"search\",null,null,scope)]}},{key:\"searchMenu\",fn:function(scope){return [_vm._t(\"searchMenu\",null,null,scope)]}},_vm._l((_vm.searchSlot),function(item){return {key:item,fn:function(scope){return [_vm._t(item,null,null,scope)]}}})],null,true)}),_vm._v(\" \"),_c('el-card',{attrs:{\"shadow\":_vm.isCard}},[(_vm.vaildData(_vm.tableOption.header,true))?_c('header-menu',{ref:\"headerMenu\",scopedSlots:_vm._u([{key:\"menuLeft\",fn:function(scope){return [_vm._t(\"menuLeft\",null,null,scope)]}},{key:\"menuRight\",fn:function(scope){return [_vm._t(\"menuRight\",null,null,scope)]}}],null,true)}):_vm._e(),_vm._v(\" \"),(_vm.vaildData(_vm.tableOption.tip,_vm.config.tip) && _vm.tableOption.selection)?_c('el-tag',{staticClass:\"avue-crud__tip\"},[_c('span',{staticClass:\"avue-crud__tip-name\"},[_vm._v(\"\\n \"+_vm._s(_vm.t('crud.tipStartTitle'))+\"\\n \"),_c('span',{staticClass:\"avue-crud__tip-count\"},[_vm._v(_vm._s(_vm.selectLen))]),_vm._v(\"\\n \"+_vm._s(_vm.t('crud.tipEndTitle'))+\"\\n \")]),_vm._v(\" \"),(_vm.vaildData(_vm.tableOption.selectClearBtn,_vm.config.selectClearBtn) && _vm.tableOption.selection)?_c('el-button',{directives:[{name:\"permission\",rawName:\"v-permission\",value:(_vm.getPermission('selectClearBtn')),expression:\"getPermission('selectClearBtn')\"}],attrs:{\"type\":\"text\",\"size\":\"small\"},on:{\"click\":_vm.selectClear}},[_vm._v(_vm._s(_vm.t('crud.emptyBtn')))]):_vm._e(),_vm._v(\" \"),_vm._t(\"tip\")],2):_vm._e(),_vm._v(\" \"),_vm._t(\"header\"),_vm._v(\" \"),_c('el-form',{ref:\"cellForm\",attrs:{\"model\":_vm.cellForm,\"show-message\":false},on:{\"validate\":_vm.handleValidate}},[(_vm.reload)?_c('el-table',{directives:[{name:\"loading\",rawName:\"v-loading\",value:(_vm.tableLoading),expression:\"tableLoading\"}],ref:\"table\",class:{'avue-crud--indeterminate':_vm.vaildData(_vm.tableOption.indeterminate,false)},attrs:{\"data\":_vm.cellForm.list,\"row-key\":_vm.handleGetRowKeys,\"size\":_vm.$AVUE.tableSize || _vm.controlSize,\"lazy\":_vm.vaildData(_vm.tableOption.lazy,false),\"load\":_vm.treeLoad,\"tree-props\":_vm.treeProps,\"expand-row-keys\":_vm.tableOption.expandRowKeys,\"default-expand-all\":_vm.tableOption.defaultExpandAll,\"highlight-current-row\":_vm.tableOption.highlightCurrentRow,\"show-summary\":_vm.tableOption.showSummary,\"summary-method\":_vm.tableSummaryMethod,\"span-method\":_vm.tableSpanMethod,\"stripe\":_vm.tableOption.stripe,\"show-header\":_vm.tableOption.showHeader,\"default-sort\":_vm.tableOption.defaultSort,\"row-class-name\":_vm.rowClassName,\"cell-class-name\":_vm.cellClassName,\"row-style\":_vm.rowStyle,\"cell-style\":_vm.cellStyle,\"sort-method\":_vm.sortMethod,\"sort-orders\":_vm.sortOrders,\"sort-by\":_vm.sortBy,\"fit\":_vm.tableOption.fit,\"header-cell-class-name\":_vm.headerCellClassName,\"max-height\":_vm.isAutoHeight?_vm.tableHeight:_vm.tableOption.maxHeight,\"height\":_vm.tableHeight,\"width\":_vm.setPx(_vm.tableOption.width,_vm.config.width),\"border\":_vm.tableOption.border},on:{\"current-change\":_vm.currentRowChange,\"expand-change\":_vm.expandChange,\"header-dragend\":_vm.headerDragend,\"row-click\":_vm.rowClick,\"row-dblclick\":_vm.rowDblclick,\"cell-mouse-enter\":_vm.cellMouseEnter,\"cell-mouse-leave\":_vm.cellMouseLeave,\"cell-click\":_vm.cellClick,\"header-click\":_vm.headerClick,\"row-contextmenu\":_vm.rowContextmenu,\"header-contextmenu\":_vm.headerContextmenu,\"cell-dblclick\":_vm.cellDblclick,\"filter-change\":_vm.filterChange,\"selection-change\":_vm.selectionChange,\"select\":_vm.select,\"select-all\":_vm.selectAll,\"sort-change\":_vm.sortChange}},[_c('template',{slot:\"empty\"},[_c('div',{class:_vm.b('empty')},[(_vm.$slots.empty)?_vm._t(\"empty\"):_c('avue-empty',{attrs:{\"size\":\"50\",\"image\":\"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNjQiIGhlaWdodD0iNDEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CiAgPGcgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMCAxKSIgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj4KICAgIDxlbGxpcHNlIGZpbGw9IiNGNUY1RjUiIGN4PSIzMiIgY3k9IjMzIiByeD0iMzIiIHJ5PSI3Ii8+CiAgICA8ZyBmaWxsLXJ1bGU9Im5vbnplcm8iIHN0cm9rZT0iI0Q5RDlEOSI+CiAgICAgIDxwYXRoIGQ9Ik01NSAxMi43Nkw0NC44NTQgMS4yNThDNDQuMzY3LjQ3NCA0My42NTYgMCA0Mi45MDcgMEgyMS4wOTNjLS43NDkgMC0xLjQ2LjQ3NC0xLjk0NyAxLjI1N0w5IDEyLjc2MVYyMmg0NnYtOS4yNHoiLz4KICAgICAgPHBhdGggZD0iTTQxLjYxMyAxNS45MzFjMC0xLjYwNS45OTQtMi45MyAyLjIyNy0yLjkzMUg1NXYxOC4xMzdDNTUgMzMuMjYgNTMuNjggMzUgNTIuMDUgMzVoLTQwLjFDMTAuMzIgMzUgOSAzMy4yNTkgOSAzMS4xMzdWMTNoMTEuMTZjMS4yMzMgMCAyLjIyNyAxLjMyMyAyLjIyNyAyLjkyOHYuMDIyYzAgMS42MDUgMS4wMDUgMi45MDEgMi4yMzcgMi45MDFoMTQuNzUyYzEuMjMyIDAgMi4yMzctMS4zMDggMi4yMzctMi45MTN2LS4wMDd6IiBmaWxsPSIjRkFGQUZBIi8+CiAgICA8L2c+CiAgPC9nPgo8L3N2Zz4K\",\"desc\":_vm.tableOption.emptyText || '暂无数据'}})],2)]),_vm._v(\" \"),_c('column',{attrs:{\"columnOption\":_vm.columnOption},scopedSlots:_vm._u([_vm._l((_vm.mainSlot),function(item){return {key:item,fn:function(scope){return [_vm._t(item,null,null,scope)]}}})],null,true)},[_c('column-default',{ref:\"columnDefault\",attrs:{\"slot\":\"header\"},slot:\"header\",scopedSlots:_vm._u([{key:\"expand\",fn:function(ref){\nvar row = ref.row;\nvar index = ref.index;\nreturn [_vm._t(\"expand\",null,{\"row\":row,\"index\":index})]}}],null,true)}),_vm._v(\" \"),_vm._v(\" \"),_c('column-menu',{attrs:{\"slot\":\"footer\"},slot:\"footer\",scopedSlots:_vm._u([{key:\"menu\",fn:function(scope){return [_vm._t(\"menu\",null,null,scope)]}},{key:\"menuBtn\",fn:function(scope){return [_vm._t(\"menuBtn\",null,null,scope)]}}],null,true)})],1)],2):_vm._e()],1),_vm._v(\" \"),_vm._t(\"footer\"),_vm._v(\" \"),_c('table-page',{ref:\"tablePage\",attrs:{\"page\":_vm.page}},[_c('template',{slot:\"page\"},[_vm._t(\"page\")],2)],2)],2),_vm._v(\" \"),_c('dialog-form',{ref:\"dialogForm\",scopedSlots:_vm._u([_vm._l((_vm.formSlot),function(item){return {key:item,fn:function(scope){return [_vm._t(item,null,null,scope)]}}}),{key:\"menuForm\",fn:function(scope){return [_vm._t(\"menuForm\",null,null,scope)]}}],null,true)}),_vm._v(\" \"),_c('dialog-column',{ref:\"dialogColumn\"}),_vm._v(\" \"),_c('dialog-excel',{ref:\"dialogExcel\"}),_vm._v(\" \"),_c('dialog-filter',{ref:\"dialogFilter\"})],1)}\nvar staticRenderFns = []\n\n\n\n//# sourceURL=webpack://AVUE/./packages/element-ui/crud/index.vue?./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options");
1561
+ 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 _c('div',{class:_vm.b({'card':!_vm.option.card})},[(_vm.tableOption.title)?_c(_vm.tableOption.titleSize || 'h2',{tag:\"component\",style:(_vm.tableOption.titleStyle)},[_vm._v(_vm._s(_vm.tableOption.title))]):_vm._e(),_vm._v(\" \"),_c('header-search',{ref:\"headerSearch\",attrs:{\"search\":_vm.search},scopedSlots:_vm._u([{key:\"search\",fn:function(scope){return [_vm._t(\"search\",null,null,scope)]}},{key:\"searchMenu\",fn:function(scope){return [_vm._t(\"searchMenu\",null,null,scope)]}},_vm._l((_vm.searchSlot),function(item){return {key:item,fn:function(scope){return [_vm._t(item,null,null,scope)]}}})],null,true)}),_vm._v(\" \"),_c('el-card',{attrs:{\"shadow\":_vm.isCard}},[(_vm.vaildData(_vm.tableOption.header,true))?_c('header-menu',{ref:\"headerMenu\",scopedSlots:_vm._u([{key:\"menuLeft\",fn:function(scope){return [_vm._t(\"menuLeft\",null,null,scope)]}},{key:\"menuRight\",fn:function(scope){return [_vm._t(\"menuRight\",null,null,scope)]}}],null,true)}):_vm._e(),_vm._v(\" \"),(_vm.vaildData(_vm.tableOption.tip,_vm.config.tip) && _vm.tableOption.selection)?_c('el-tag',{staticClass:\"avue-crud__tip\"},[_c('span',{staticClass:\"avue-crud__tip-name\"},[_vm._v(\"\\n \"+_vm._s(_vm.t('crud.tipStartTitle'))+\"\\n \"),_c('span',{staticClass:\"avue-crud__tip-count\"},[_vm._v(_vm._s(_vm.selectLen))]),_vm._v(\"\\n \"+_vm._s(_vm.t('crud.tipEndTitle'))+\"\\n \")]),_vm._v(\" \"),(_vm.vaildData(_vm.tableOption.selectClearBtn,_vm.config.selectClearBtn) && _vm.tableOption.selection)?_c('el-button',{directives:[{name:\"permission\",rawName:\"v-permission\",value:(_vm.getPermission('selectClearBtn')),expression:\"getPermission('selectClearBtn')\"}],attrs:{\"type\":\"text\",\"size\":\"small\"},on:{\"click\":_vm.selectClear}},[_vm._v(_vm._s(_vm.t('crud.emptyBtn')))]):_vm._e(),_vm._v(\" \"),_vm._t(\"tip\")],2):_vm._e(),_vm._v(\" \"),_vm._t(\"header\"),_vm._v(\" \"),_c('el-form',{ref:\"cellForm\",attrs:{\"model\":_vm.cellForm,\"show-message\":false},on:{\"validate\":_vm.handleValidate}},[_c('el-table',{directives:[{name:\"loading\",rawName:\"v-loading\",value:(_vm.tableLoading),expression:\"tableLoading\"}],key:_vm.reload,ref:\"table\",class:{'avue-crud--indeterminate':_vm.vaildData(_vm.tableOption.indeterminate,false)},attrs:{\"data\":_vm.cellForm.list,\"row-key\":_vm.handleGetRowKeys,\"size\":_vm.$AVUE.tableSize || _vm.controlSize,\"lazy\":_vm.vaildData(_vm.tableOption.lazy,false),\"load\":_vm.treeLoad,\"tree-props\":_vm.treeProps,\"expand-row-keys\":_vm.tableOption.expandRowKeys,\"default-expand-all\":_vm.tableOption.defaultExpandAll,\"highlight-current-row\":_vm.tableOption.highlightCurrentRow,\"show-summary\":_vm.tableOption.showSummary,\"summary-method\":_vm.tableSummaryMethod,\"span-method\":_vm.tableSpanMethod,\"stripe\":_vm.tableOption.stripe,\"show-header\":_vm.tableOption.showHeader,\"default-sort\":_vm.tableOption.defaultSort,\"row-class-name\":_vm.rowClassName,\"cell-class-name\":_vm.cellClassName,\"row-style\":_vm.rowStyle,\"cell-style\":_vm.cellStyle,\"sort-method\":_vm.sortMethod,\"sort-orders\":_vm.sortOrders,\"sort-by\":_vm.sortBy,\"fit\":_vm.tableOption.fit,\"header-cell-class-name\":_vm.headerCellClassName,\"max-height\":_vm.isAutoHeight?_vm.tableHeight:_vm.tableOption.maxHeight,\"height\":_vm.tableHeight,\"width\":_vm.setPx(_vm.tableOption.width,_vm.config.width),\"border\":_vm.tableOption.border},on:{\"current-change\":_vm.currentRowChange,\"expand-change\":_vm.expandChange,\"header-dragend\":_vm.headerDragend,\"row-click\":_vm.rowClick,\"row-dblclick\":_vm.rowDblclick,\"cell-mouse-enter\":_vm.cellMouseEnter,\"cell-mouse-leave\":_vm.cellMouseLeave,\"cell-click\":_vm.cellClick,\"header-click\":_vm.headerClick,\"row-contextmenu\":_vm.rowContextmenu,\"header-contextmenu\":_vm.headerContextmenu,\"cell-dblclick\":_vm.cellDblclick,\"filter-change\":_vm.filterChange,\"selection-change\":_vm.selectionChange,\"select\":_vm.select,\"select-all\":_vm.selectAll,\"sort-change\":_vm.sortChange}},[_c('template',{slot:\"empty\"},[_c('div',{class:_vm.b('empty')},[(_vm.$slots.empty)?_vm._t(\"empty\"):_c('avue-empty',{attrs:{\"size\":\"50\",\"image\":\"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNjQiIGhlaWdodD0iNDEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CiAgPGcgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMCAxKSIgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj4KICAgIDxlbGxpcHNlIGZpbGw9IiNGNUY1RjUiIGN4PSIzMiIgY3k9IjMzIiByeD0iMzIiIHJ5PSI3Ii8+CiAgICA8ZyBmaWxsLXJ1bGU9Im5vbnplcm8iIHN0cm9rZT0iI0Q5RDlEOSI+CiAgICAgIDxwYXRoIGQ9Ik01NSAxMi43Nkw0NC44NTQgMS4yNThDNDQuMzY3LjQ3NCA0My42NTYgMCA0Mi45MDcgMEgyMS4wOTNjLS43NDkgMC0xLjQ2LjQ3NC0xLjk0NyAxLjI1N0w5IDEyLjc2MVYyMmg0NnYtOS4yNHoiLz4KICAgICAgPHBhdGggZD0iTTQxLjYxMyAxNS45MzFjMC0xLjYwNS45OTQtMi45MyAyLjIyNy0yLjkzMUg1NXYxOC4xMzdDNTUgMzMuMjYgNTMuNjggMzUgNTIuMDUgMzVoLTQwLjFDMTAuMzIgMzUgOSAzMy4yNTkgOSAzMS4xMzdWMTNoMTEuMTZjMS4yMzMgMCAyLjIyNyAxLjMyMyAyLjIyNyAyLjkyOHYuMDIyYzAgMS42MDUgMS4wMDUgMi45MDEgMi4yMzcgMi45MDFoMTQuNzUyYzEuMjMyIDAgMi4yMzctMS4zMDggMi4yMzctMi45MTN2LS4wMDd6IiBmaWxsPSIjRkFGQUZBIi8+CiAgICA8L2c+CiAgPC9nPgo8L3N2Zz4K\",\"desc\":_vm.tableOption.emptyText || '暂无数据'}})],2)]),_vm._v(\" \"),_c('column',{attrs:{\"columnOption\":_vm.columnOption},scopedSlots:_vm._u([_vm._l((_vm.mainSlot),function(item){return {key:item,fn:function(scope){return [_vm._t(item,null,null,scope)]}}})],null,true)},[_c('column-default',{ref:\"columnDefault\",attrs:{\"slot\":\"header\"},slot:\"header\",scopedSlots:_vm._u([{key:\"expand\",fn:function(ref){\nvar row = ref.row;\nvar index = ref.index;\nreturn [_vm._t(\"expand\",null,{\"row\":row,\"index\":index})]}}],null,true)}),_vm._v(\" \"),_vm._v(\" \"),_c('column-menu',{attrs:{\"slot\":\"footer\"},slot:\"footer\",scopedSlots:_vm._u([{key:\"menu\",fn:function(scope){return [_vm._t(\"menu\",null,null,scope)]}},{key:\"menuBtn\",fn:function(scope){return [_vm._t(\"menuBtn\",null,null,scope)]}}],null,true)})],1)],2)],1),_vm._v(\" \"),_vm._t(\"footer\"),_vm._v(\" \"),_c('table-page',{ref:\"tablePage\",attrs:{\"page\":_vm.page}},[_c('template',{slot:\"page\"},[_vm._t(\"page\")],2)],2)],2),_vm._v(\" \"),_c('dialog-form',{ref:\"dialogForm\",scopedSlots:_vm._u([_vm._l((_vm.formSlot),function(item){return {key:item,fn:function(scope){return [_vm._t(item,null,null,scope)]}}}),{key:\"menuForm\",fn:function(scope){return [_vm._t(\"menuForm\",null,null,scope)]}}],null,true)}),_vm._v(\" \"),_c('dialog-column',{ref:\"dialogColumn\"}),_vm._v(\" \"),_c('dialog-excel',{ref:\"dialogExcel\"}),_vm._v(\" \"),_c('dialog-filter',{ref:\"dialogFilter\"})],1)}\nvar staticRenderFns = []\n\n\n\n//# sourceURL=webpack://AVUE/./packages/element-ui/crud/index.vue?./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options");
1562
1562
 
1563
1563
  /***/ }),
1564
1564
 
@@ -1646,9 +1646,9 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) *
1646
1646
 
1647
1647
  /***/ }),
1648
1648
 
1649
- /***/ "./node_modules/vue-loader/lib/loaders/templateLoader.js?!./node_modules/vue-loader/lib/index.js?!./packages/element-ui/form/index.vue?vue&type=template&id=18480932&":
1649
+ /***/ "./node_modules/vue-loader/lib/loaders/templateLoader.js?!./node_modules/vue-loader/lib/index.js?!./packages/element-ui/form/index.vue?vue&type=template&id=8f21a378&":
1650
1650
  /*!*********************************************************************************************************************************************************************************************************!*\
1651
- !*** ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/element-ui/form/index.vue?vue&type=template&id=18480932& ***!
1651
+ !*** ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/element-ui/form/index.vue?vue&type=template&id=8f21a378& ***!
1652
1652
  \*********************************************************************************************************************************************************************************************************/
1653
1653
  /*! exports provided: render, staticRenderFns */
1654
1654
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
@@ -1862,9 +1862,9 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) *
1862
1862
 
1863
1863
  /***/ }),
1864
1864
 
1865
- /***/ "./node_modules/vue-loader/lib/loaders/templateLoader.js?!./node_modules/vue-loader/lib/index.js?!./packages/element-ui/select/index.vue?vue&type=template&id=9dbd7f12&":
1865
+ /***/ "./node_modules/vue-loader/lib/loaders/templateLoader.js?!./node_modules/vue-loader/lib/index.js?!./packages/element-ui/select/index.vue?vue&type=template&id=9fc8e74a&":
1866
1866
  /*!***********************************************************************************************************************************************************************************************************!*\
1867
- !*** ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/element-ui/select/index.vue?vue&type=template&id=9dbd7f12& ***!
1867
+ !*** ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/element-ui/select/index.vue?vue&type=template&id=9fc8e74a& ***!
1868
1868
  \***********************************************************************************************************************************************************************************************************/
1869
1869
  /*! exports provided: render, staticRenderFns */
1870
1870
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
@@ -1982,15 +1982,15 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) *
1982
1982
 
1983
1983
  /***/ }),
1984
1984
 
1985
- /***/ "./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=d3ad7c92&":
1985
+ /***/ "./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=1ea16c76&":
1986
1986
  /*!***********************************************************************************************************************************************************************************************************!*\
1987
- !*** ./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=d3ad7c92& ***!
1987
+ !*** ./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=1ea16c76& ***!
1988
1988
  \***********************************************************************************************************************************************************************************************************/
1989
1989
  /*! exports provided: render, staticRenderFns */
1990
1990
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
1991
1991
 
1992
1992
  "use strict";
1993
- 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 _c('div',{directives:[{name:\"loading\",rawName:\"v-loading.lock\",value:(_vm.loading),expression:\"loading\",modifiers:{\"lock\":true}}],class:_vm.b()},[_c('el-upload',{class:_vm.b({'list':_vm.listType=='picture-img','upload':_vm.disabled}),attrs:{\"action\":_vm.action,\"on-remove\":_vm.handleRemove,\"accept\":_vm.acceptList,\"before-remove\":_vm.beforeRemove,\"multiple\":_vm.multiple,\"on-preview\":_vm.handlePreview,\"limit\":_vm.limit,\"http-request\":_vm.httpUpload,\"drag\":_vm.drag,\"readonly\":_vm.readonly,\"show-file-list\":_vm.isPictureImg?false:_vm.showFileList,\"list-type\":_vm.listType,\"on-change\":_vm.handleFileChange,\"on-exceed\":_vm.handleExceed,\"disabled\":_vm.disabled,\"file-list\":_vm.fileList},nativeOn:{\"click\":function($event){return _vm.handleClick.apply(null, arguments)}},scopedSlots:_vm._u([{key:\"file\",fn:function(scope){return (_vm.$scopedSlots.default)?[_vm._t(\"default\",null,null,scope)]:undefined}}],null,true)},[(_vm.listType=='picture-card')?[_c('i',{staticClass:\"el-icon-plus\"})]:(_vm.listType=='picture-img')?[(_vm.$scopedSlots.default)?_vm._t(\"default\",null,{\"file\":{url:_vm.imgUrl}}):[(_vm.imgUrl)?_c('img',_vm._b({class:_vm.b('avatar'),attrs:{\"src\":_vm.imgUrl},on:{\"mouseover\":function($event){_vm.menu=true}}},'img',_vm.allParams,false)):_c('i',{staticClass:\"el-icon-plus\",class:_vm.b('icon')}),_vm._v(\" \"),(_vm.menu)?_c('div',{staticClass:\"el-upload-list__item-actions\",class:_vm.b('menu'),on:{\"mouseover\":function($event){_vm.menu=true},\"mouseout\":function($event){_vm.menu=false},\"click\":function($event){$event.stopPropagation();return (function (){return false}).apply(null, arguments)}}},[_c('i',{staticClass:\"el-icon-zoom-in\",on:{\"click\":function($event){$event.stopPropagation();return _vm.handlePreview({url:_vm.imgUrl})}}}),_vm._v(\" \"),(!_vm.disabled)?_c('i',{staticClass:\"el-icon-delete\",on:{\"click\":function($event){$event.stopPropagation();return _vm.handleDelete(_vm.imgUrl)}}}):_vm._e()]):_vm._e()]]:(_vm.drag)?[_c('i',{staticClass:\"el-icon-upload\"}),_vm._v(\" \"),_c('div',{staticClass:\"el-upload__text\"},[_vm._v(\"\\n \"+_vm._s(_vm.t('upload.tip'))+\"\\n \"),_c('em',[_vm._v(_vm._s(_vm.t('upload.upload')))])])]:[_c('el-button',{attrs:{\"size\":\"small\",\"type\":\"primary\"}},[_vm._v(_vm._s(_vm.t('upload.upload')))])],_vm._v(\" \"),_c('div',{staticClass:\"el-upload__tip\",attrs:{\"slot\":\"tip\"},slot:\"tip\"},[_vm._v(_vm._s(_vm.tip))])],2)],1)}\nvar staticRenderFns = []\n\n\n\n//# sourceURL=webpack://AVUE/./packages/element-ui/upload/index.vue?./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options");
1993
+ 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 _c('div',{directives:[{name:\"loading\",rawName:\"v-loading.lock\",value:(_vm.loading),expression:\"loading\",modifiers:{\"lock\":true}}],class:_vm.b(),attrs:{\"element-loading-text\":_vm.loadText}},[_c('el-upload',{key:_vm.reload,class:_vm.b({'list':_vm.listType=='picture-img','upload':_vm.disabled}),attrs:{\"action\":_vm.action,\"on-remove\":_vm.handleRemove,\"accept\":_vm.acceptList,\"before-remove\":_vm.beforeRemove,\"multiple\":_vm.multiple,\"on-preview\":_vm.handlePreview,\"limit\":_vm.limit,\"http-request\":_vm.httpUpload,\"readonly\":_vm.readonly,\"drag\":_vm.isDrag,\"show-file-list\":_vm.isPictureImg?false:_vm.showFileList,\"list-type\":_vm.listType,\"on-change\":_vm.handleFileChange,\"on-exceed\":_vm.handleExceed,\"disabled\":_vm.disabled,\"file-list\":_vm.fileList},nativeOn:{\"click\":function($event){return _vm.handleClick.apply(null, arguments)}},scopedSlots:_vm._u([{key:\"file\",fn:function(scope){return (_vm.$scopedSlots.default)?[_vm._t(\"default\",null,null,scope)]:undefined}}],null,true)},[(_vm.listType=='picture-card')?[_c('i',{staticClass:\"el-icon-plus\"})]:(_vm.listType=='picture-img')?[(_vm.$scopedSlots.default)?_vm._t(\"default\",null,{\"file\":{url:_vm.imgUrl}}):[(_vm.imgUrl)?_c('img',_vm._b({class:_vm.b('avatar'),attrs:{\"src\":_vm.imgUrl},on:{\"mouseover\":function($event){_vm.menu=true}}},'img',_vm.allParams,false)):_c('i',{staticClass:\"el-icon-plus\",class:_vm.b('icon')}),_vm._v(\" \"),(_vm.menu)?_c('div',{staticClass:\"el-upload-list__item-actions\",class:_vm.b('menu'),on:{\"mouseover\":function($event){_vm.menu=true},\"mouseout\":function($event){_vm.menu=false},\"click\":function($event){$event.stopPropagation();return (function (){return false}).apply(null, arguments)}}},[_c('i',{staticClass:\"el-icon-zoom-in\",on:{\"click\":function($event){$event.stopPropagation();return _vm.handlePreview({url:_vm.imgUrl})}}}),_vm._v(\" \"),(!_vm.disabled)?_c('i',{staticClass:\"el-icon-delete\",on:{\"click\":function($event){$event.stopPropagation();return _vm.handleDelete(_vm.imgUrl)}}}):_vm._e()]):_vm._e()]]:(_vm.drag)?[_c('i',{staticClass:\"el-icon-upload\"}),_vm._v(\" \"),_c('div',{staticClass:\"el-upload__text\"},[_vm._v(\"\\n \"+_vm._s(_vm.t('upload.tip'))+\"\\n \"),_c('em',[_vm._v(_vm._s(_vm.t('upload.upload')))])])]:[_c('el-button',{attrs:{\"size\":\"small\",\"type\":\"primary\"}},[_vm._v(_vm._s(_vm.t('upload.upload')))])],_vm._v(\" \"),_c('div',{staticClass:\"el-upload__tip\",attrs:{\"slot\":\"tip\"},slot:\"tip\"},[_vm._v(_vm._s(_vm.tip))])],2)],1)}\nvar staticRenderFns = []\n\n\n\n//# sourceURL=webpack://AVUE/./packages/element-ui/upload/index.vue?./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options");
1994
1994
 
1995
1995
  /***/ }),
1996
1996
 
@@ -2078,18 +2078,6 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var glob
2078
2078
 
2079
2079
  /***/ }),
2080
2080
 
2081
- /***/ "./packages/core/common/upload.js":
2082
- /*!****************************************!*\
2083
- !*** ./packages/core/common/upload.js ***!
2084
- \****************************************/
2085
- /*! exports provided: default */
2086
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
2087
-
2088
- "use strict";
2089
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var utils_util__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! utils/util */ \"./src/utils/util.js\");\n/* harmony import */ var plugin_canvas___WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! plugin/canvas/ */ \"./src/plugin/canvas/index.js\");\n/* harmony import */ var plugin_qiniu___WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! plugin/qiniu/ */ \"./src/plugin/qiniu/index.js\");\n/* harmony import */ var plugin_ali___WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! plugin/ali/ */ \"./src/plugin/ali/index.js\");\n/* harmony import */ var core_packages__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! core/packages */ \"./src/core/packages.js\");\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\"] = (function () {\n return {\n data: function data() {\n return {\n res: '',\n loading: false,\n text: [],\n file: {}\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 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 allParams: function allParams() {\n if (this.$typeList.video.test(this.imgUrl)) {\n return Object.assign({\n is: 'video'\n }, this.params);\n }\n\n return this.params;\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 || _this.$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 methods: {\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 _this2 = this;\n\n (this.text || []).forEach(function (ele, index) {\n if ((_this2.isMultiple ? ele : ele[_this2.valueKey]) === file.url.replace(_this2.homeUrl, '')) {\n _this2.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 _this3 = 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 = _this3.action; //附加属性\n\n for (var o in _this3.data) {\n param.append(o, _this3.data[o]);\n }\n\n var uploadfile = newFile || file;\n param.append(_this3.fileName, uploadfile); //七牛云oss存储\n\n if (_this3.isQiniuOss) {\n if (!window.CryptoJS) {\n core_packages__WEBPACK_IMPORTED_MODULE_4__[\"default\"].logs(\"CryptoJS\");\n\n _this3.hide();\n\n return;\n }\n\n oss_config = _this3.$AVUE.qiniu;\n var token = Object(plugin_qiniu___WEBPACK_IMPORTED_MODULE_2__[\"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 (_this3.isAliOss) {\n if (!window.OSS) {\n core_packages__WEBPACK_IMPORTED_MODULE_4__[\"default\"].logs(\"AliOSS\");\n\n _this3.hide();\n\n return;\n }\n\n oss_config = _this3.$AVUE.ali;\n client = Object(plugin_ali___WEBPACK_IMPORTED_MODULE_3__[\"getClient\"])(oss_config);\n }\n\n (function () {\n if (_this3.isAliOss) {\n return client.put(uploadfile.name, uploadfile, {\n headers: _this3.headers\n });\n } else {\n if (!window.axios) {\n core_packages__WEBPACK_IMPORTED_MODULE_4__[\"default\"].logs('axios');\n return Promise.reject();\n }\n\n return _this3.$axios.post(url, param, {\n headers: headers\n });\n }\n })().then(function (res) {\n _this3.res = {};\n\n if (_this3.isQiniuOss) {\n res.data.key = oss_config.url + res.data.key;\n }\n\n if (_this3.isAliOss) {\n _this3.res = Object(utils_util__WEBPACK_IMPORTED_MODULE_0__[\"getAsVal\"])(res, _this3.resKey);\n } else {\n _this3.res = Object(utils_util__WEBPACK_IMPORTED_MODULE_0__[\"getAsVal\"])(res.data, _this3.resKey);\n }\n\n if (typeof _this3.uploadAfter === \"function\") _this3.uploadAfter(_this3.res, _this3.show, function () {\n _this3.loading = false;\n }, _this3.column);else _this3.show(_this3.res);\n })[\"catch\"](function (error) {\n if (typeof _this3.uploadAfter === \"function\") _this3.uploadAfter(error, _this3.hide, function () {\n _this3.loading = false;\n }, _this3.column);else _this3.hide(error);\n });\n };\n\n if (typeof _this3.uploadBefore === \"function\") _this3.uploadBefore(_this3.file, callback, function () {\n _this3.loading = false;\n }, _this3.column);else callback();\n }; //是否开启水印\n\n\n if (!this.validatenull(this.canvasOption)) {\n Object(plugin_canvas___WEBPACK_IMPORTED_MODULE_1__[\"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 _this4 = this;\n\n var callback = function callback() {\n var url = file.url;\n\n var list = _this4.fileList.map(function (ele) {\n return Object.assign(ele, {\n type: _this4.$typeList.video.test(ele.url) ? 'video' : ''\n });\n });\n\n var index = _this4.fileList.findIndex(function (ele) {\n return ele.url === url;\n });\n\n _this4.$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 _this5 = this;\n\n this.beforeRemove(file).then(function () {\n _this5.text = [];\n _this5.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\n//# sourceURL=webpack://AVUE/./packages/core/common/upload.js?");
2090
-
2091
- /***/ }),
2092
-
2093
2081
  /***/ "./packages/core/components/form/index.vue":
2094
2082
  /*!*************************************************!*\
2095
2083
  !*** ./packages/core/components/form/index.vue ***!
@@ -2998,7 +2986,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _nod
2998
2986
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
2999
2987
 
3000
2988
  "use strict";
3001
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _index_vue_vue_type_template_id_64fd68f0___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./index.vue?vue&type=template&id=64fd68f0& */ \"./packages/element-ui/checkbox/index.vue?vue&type=template&id=64fd68f0&\");\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/checkbox/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_64fd68f0___WEBPACK_IMPORTED_MODULE_0__[\"render\"],\n _index_vue_vue_type_template_id_64fd68f0___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/checkbox/index.vue?");
2989
+ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _index_vue_vue_type_template_id_bee7318e___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./index.vue?vue&type=template&id=bee7318e& */ \"./packages/element-ui/checkbox/index.vue?vue&type=template&id=bee7318e&\");\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/checkbox/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_bee7318e___WEBPACK_IMPORTED_MODULE_0__[\"render\"],\n _index_vue_vue_type_template_id_bee7318e___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/checkbox/index.vue?");
3002
2990
 
3003
2991
  /***/ }),
3004
2992
 
@@ -3014,15 +3002,15 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _nod
3014
3002
 
3015
3003
  /***/ }),
3016
3004
 
3017
- /***/ "./packages/element-ui/checkbox/index.vue?vue&type=template&id=64fd68f0&":
3005
+ /***/ "./packages/element-ui/checkbox/index.vue?vue&type=template&id=bee7318e&":
3018
3006
  /*!*******************************************************************************!*\
3019
- !*** ./packages/element-ui/checkbox/index.vue?vue&type=template&id=64fd68f0& ***!
3007
+ !*** ./packages/element-ui/checkbox/index.vue?vue&type=template&id=bee7318e& ***!
3020
3008
  \*******************************************************************************/
3021
3009
  /*! exports provided: render, staticRenderFns */
3022
3010
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
3023
3011
 
3024
3012
  "use strict";
3025
- 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_64fd68f0___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=64fd68f0& */ \"./node_modules/vue-loader/lib/loaders/templateLoader.js?!./node_modules/vue-loader/lib/index.js?!./packages/element-ui/checkbox/index.vue?vue&type=template&id=64fd68f0&\");\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_64fd68f0___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_64fd68f0___WEBPACK_IMPORTED_MODULE_0__[\"staticRenderFns\"]; });\n\n\n\n//# sourceURL=webpack://AVUE/./packages/element-ui/checkbox/index.vue?");
3013
+ 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_bee7318e___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=bee7318e& */ \"./node_modules/vue-loader/lib/loaders/templateLoader.js?!./node_modules/vue-loader/lib/index.js?!./packages/element-ui/checkbox/index.vue?vue&type=template&id=bee7318e&\");\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_bee7318e___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_bee7318e___WEBPACK_IMPORTED_MODULE_0__[\"staticRenderFns\"]; });\n\n\n\n//# sourceURL=webpack://AVUE/./packages/element-ui/checkbox/index.vue?");
3026
3014
 
3027
3015
  /***/ }),
3028
3016
 
@@ -3250,7 +3238,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _nod
3250
3238
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
3251
3239
 
3252
3240
  "use strict";
3253
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _column_slot_vue_vue_type_template_id_253cbbc0___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./column-slot.vue?vue&type=template&id=253cbbc0& */ \"./packages/element-ui/crud/column-slot.vue?vue&type=template&id=253cbbc0&\");\n/* harmony import */ var _column_slot_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./column-slot.vue?vue&type=script&lang=js& */ \"./packages/element-ui/crud/column-slot.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 _column_slot_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__[\"default\"],\n _column_slot_vue_vue_type_template_id_253cbbc0___WEBPACK_IMPORTED_MODULE_0__[\"render\"],\n _column_slot_vue_vue_type_template_id_253cbbc0___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/crud/column-slot.vue?");
3241
+ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _column_slot_vue_vue_type_template_id_6e688136___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./column-slot.vue?vue&type=template&id=6e688136& */ \"./packages/element-ui/crud/column-slot.vue?vue&type=template&id=6e688136&\");\n/* harmony import */ var _column_slot_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./column-slot.vue?vue&type=script&lang=js& */ \"./packages/element-ui/crud/column-slot.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 _column_slot_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__[\"default\"],\n _column_slot_vue_vue_type_template_id_6e688136___WEBPACK_IMPORTED_MODULE_0__[\"render\"],\n _column_slot_vue_vue_type_template_id_6e688136___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/crud/column-slot.vue?");
3254
3242
 
3255
3243
  /***/ }),
3256
3244
 
@@ -3266,15 +3254,15 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _nod
3266
3254
 
3267
3255
  /***/ }),
3268
3256
 
3269
- /***/ "./packages/element-ui/crud/column-slot.vue?vue&type=template&id=253cbbc0&":
3257
+ /***/ "./packages/element-ui/crud/column-slot.vue?vue&type=template&id=6e688136&":
3270
3258
  /*!*********************************************************************************!*\
3271
- !*** ./packages/element-ui/crud/column-slot.vue?vue&type=template&id=253cbbc0& ***!
3259
+ !*** ./packages/element-ui/crud/column-slot.vue?vue&type=template&id=6e688136& ***!
3272
3260
  \*********************************************************************************/
3273
3261
  /*! exports provided: render, staticRenderFns */
3274
3262
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
3275
3263
 
3276
3264
  "use strict";
3277
- 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_column_slot_vue_vue_type_template_id_253cbbc0___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!./column-slot.vue?vue&type=template&id=253cbbc0& */ \"./node_modules/vue-loader/lib/loaders/templateLoader.js?!./node_modules/vue-loader/lib/index.js?!./packages/element-ui/crud/column-slot.vue?vue&type=template&id=253cbbc0&\");\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_column_slot_vue_vue_type_template_id_253cbbc0___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_column_slot_vue_vue_type_template_id_253cbbc0___WEBPACK_IMPORTED_MODULE_0__[\"staticRenderFns\"]; });\n\n\n\n//# sourceURL=webpack://AVUE/./packages/element-ui/crud/column-slot.vue?");
3265
+ 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_column_slot_vue_vue_type_template_id_6e688136___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!./column-slot.vue?vue&type=template&id=6e688136& */ \"./node_modules/vue-loader/lib/loaders/templateLoader.js?!./node_modules/vue-loader/lib/index.js?!./packages/element-ui/crud/column-slot.vue?vue&type=template&id=6e688136&\");\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_column_slot_vue_vue_type_template_id_6e688136___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_column_slot_vue_vue_type_template_id_6e688136___WEBPACK_IMPORTED_MODULE_0__[\"staticRenderFns\"]; });\n\n\n\n//# sourceURL=webpack://AVUE/./packages/element-ui/crud/column-slot.vue?");
3278
3266
 
3279
3267
  /***/ }),
3280
3268
 
@@ -3526,7 +3514,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _nod
3526
3514
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
3527
3515
 
3528
3516
  "use strict";
3529
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _header_search_vue_vue_type_template_id_233c8c0c___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./header-search.vue?vue&type=template&id=233c8c0c& */ \"./packages/element-ui/crud/header-search.vue?vue&type=template&id=233c8c0c&\");\n/* harmony import */ var _header_search_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./header-search.vue?vue&type=script&lang=js& */ \"./packages/element-ui/crud/header-search.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 _header_search_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__[\"default\"],\n _header_search_vue_vue_type_template_id_233c8c0c___WEBPACK_IMPORTED_MODULE_0__[\"render\"],\n _header_search_vue_vue_type_template_id_233c8c0c___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/crud/header-search.vue?");
3517
+ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _header_search_vue_vue_type_template_id_1f403bee___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./header-search.vue?vue&type=template&id=1f403bee& */ \"./packages/element-ui/crud/header-search.vue?vue&type=template&id=1f403bee&\");\n/* harmony import */ var _header_search_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./header-search.vue?vue&type=script&lang=js& */ \"./packages/element-ui/crud/header-search.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 _header_search_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__[\"default\"],\n _header_search_vue_vue_type_template_id_1f403bee___WEBPACK_IMPORTED_MODULE_0__[\"render\"],\n _header_search_vue_vue_type_template_id_1f403bee___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/crud/header-search.vue?");
3530
3518
 
3531
3519
  /***/ }),
3532
3520
 
@@ -3542,15 +3530,15 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _nod
3542
3530
 
3543
3531
  /***/ }),
3544
3532
 
3545
- /***/ "./packages/element-ui/crud/header-search.vue?vue&type=template&id=233c8c0c&":
3533
+ /***/ "./packages/element-ui/crud/header-search.vue?vue&type=template&id=1f403bee&":
3546
3534
  /*!***********************************************************************************!*\
3547
- !*** ./packages/element-ui/crud/header-search.vue?vue&type=template&id=233c8c0c& ***!
3535
+ !*** ./packages/element-ui/crud/header-search.vue?vue&type=template&id=1f403bee& ***!
3548
3536
  \***********************************************************************************/
3549
3537
  /*! exports provided: render, staticRenderFns */
3550
3538
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
3551
3539
 
3552
3540
  "use strict";
3553
- 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_header_search_vue_vue_type_template_id_233c8c0c___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!./header-search.vue?vue&type=template&id=233c8c0c& */ \"./node_modules/vue-loader/lib/loaders/templateLoader.js?!./node_modules/vue-loader/lib/index.js?!./packages/element-ui/crud/header-search.vue?vue&type=template&id=233c8c0c&\");\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_header_search_vue_vue_type_template_id_233c8c0c___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_header_search_vue_vue_type_template_id_233c8c0c___WEBPACK_IMPORTED_MODULE_0__[\"staticRenderFns\"]; });\n\n\n\n//# sourceURL=webpack://AVUE/./packages/element-ui/crud/header-search.vue?");
3541
+ 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_header_search_vue_vue_type_template_id_1f403bee___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!./header-search.vue?vue&type=template&id=1f403bee& */ \"./node_modules/vue-loader/lib/loaders/templateLoader.js?!./node_modules/vue-loader/lib/index.js?!./packages/element-ui/crud/header-search.vue?vue&type=template&id=1f403bee&\");\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_header_search_vue_vue_type_template_id_1f403bee___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_header_search_vue_vue_type_template_id_1f403bee___WEBPACK_IMPORTED_MODULE_0__[\"staticRenderFns\"]; });\n\n\n\n//# sourceURL=webpack://AVUE/./packages/element-ui/crud/header-search.vue?");
3554
3542
 
3555
3543
  /***/ }),
3556
3544
 
@@ -3562,7 +3550,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _nod
3562
3550
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
3563
3551
 
3564
3552
  "use strict";
3565
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _index_vue_vue_type_template_id_48e1744a___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./index.vue?vue&type=template&id=48e1744a& */ \"./packages/element-ui/crud/index.vue?vue&type=template&id=48e1744a&\");\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/crud/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_48e1744a___WEBPACK_IMPORTED_MODULE_0__[\"render\"],\n _index_vue_vue_type_template_id_48e1744a___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/crud/index.vue?");
3553
+ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _index_vue_vue_type_template_id_0bb2c597___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./index.vue?vue&type=template&id=0bb2c597& */ \"./packages/element-ui/crud/index.vue?vue&type=template&id=0bb2c597&\");\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/crud/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_0bb2c597___WEBPACK_IMPORTED_MODULE_0__[\"render\"],\n _index_vue_vue_type_template_id_0bb2c597___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/crud/index.vue?");
3566
3554
 
3567
3555
  /***/ }),
3568
3556
 
@@ -3578,15 +3566,15 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _nod
3578
3566
 
3579
3567
  /***/ }),
3580
3568
 
3581
- /***/ "./packages/element-ui/crud/index.vue?vue&type=template&id=48e1744a&":
3569
+ /***/ "./packages/element-ui/crud/index.vue?vue&type=template&id=0bb2c597&":
3582
3570
  /*!***************************************************************************!*\
3583
- !*** ./packages/element-ui/crud/index.vue?vue&type=template&id=48e1744a& ***!
3571
+ !*** ./packages/element-ui/crud/index.vue?vue&type=template&id=0bb2c597& ***!
3584
3572
  \***************************************************************************/
3585
3573
  /*! exports provided: render, staticRenderFns */
3586
3574
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
3587
3575
 
3588
3576
  "use strict";
3589
- 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_48e1744a___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=48e1744a& */ \"./node_modules/vue-loader/lib/loaders/templateLoader.js?!./node_modules/vue-loader/lib/index.js?!./packages/element-ui/crud/index.vue?vue&type=template&id=48e1744a&\");\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_48e1744a___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_48e1744a___WEBPACK_IMPORTED_MODULE_0__[\"staticRenderFns\"]; });\n\n\n\n//# sourceURL=webpack://AVUE/./packages/element-ui/crud/index.vue?");
3577
+ 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_0bb2c597___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=0bb2c597& */ \"./node_modules/vue-loader/lib/loaders/templateLoader.js?!./node_modules/vue-loader/lib/index.js?!./packages/element-ui/crud/index.vue?vue&type=template&id=0bb2c597&\");\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_0bb2c597___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_0bb2c597___WEBPACK_IMPORTED_MODULE_0__[\"staticRenderFns\"]; });\n\n\n\n//# sourceURL=webpack://AVUE/./packages/element-ui/crud/index.vue?");
3590
3578
 
3591
3579
  /***/ }),
3592
3580
 
@@ -3850,7 +3838,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _nod
3850
3838
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
3851
3839
 
3852
3840
  "use strict";
3853
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _index_vue_vue_type_template_id_18480932___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./index.vue?vue&type=template&id=18480932& */ \"./packages/element-ui/form/index.vue?vue&type=template&id=18480932&\");\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/form/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_18480932___WEBPACK_IMPORTED_MODULE_0__[\"render\"],\n _index_vue_vue_type_template_id_18480932___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/form/index.vue?");
3841
+ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _index_vue_vue_type_template_id_8f21a378___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./index.vue?vue&type=template&id=8f21a378& */ \"./packages/element-ui/form/index.vue?vue&type=template&id=8f21a378&\");\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/form/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_8f21a378___WEBPACK_IMPORTED_MODULE_0__[\"render\"],\n _index_vue_vue_type_template_id_8f21a378___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/form/index.vue?");
3854
3842
 
3855
3843
  /***/ }),
3856
3844
 
@@ -3866,15 +3854,15 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _nod
3866
3854
 
3867
3855
  /***/ }),
3868
3856
 
3869
- /***/ "./packages/element-ui/form/index.vue?vue&type=template&id=18480932&":
3857
+ /***/ "./packages/element-ui/form/index.vue?vue&type=template&id=8f21a378&":
3870
3858
  /*!***************************************************************************!*\
3871
- !*** ./packages/element-ui/form/index.vue?vue&type=template&id=18480932& ***!
3859
+ !*** ./packages/element-ui/form/index.vue?vue&type=template&id=8f21a378& ***!
3872
3860
  \***************************************************************************/
3873
3861
  /*! exports provided: render, staticRenderFns */
3874
3862
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
3875
3863
 
3876
3864
  "use strict";
3877
- 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_18480932___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=18480932& */ \"./node_modules/vue-loader/lib/loaders/templateLoader.js?!./node_modules/vue-loader/lib/index.js?!./packages/element-ui/form/index.vue?vue&type=template&id=18480932&\");\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_18480932___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_18480932___WEBPACK_IMPORTED_MODULE_0__[\"staticRenderFns\"]; });\n\n\n\n//# sourceURL=webpack://AVUE/./packages/element-ui/form/index.vue?");
3865
+ 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_8f21a378___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=8f21a378& */ \"./node_modules/vue-loader/lib/loaders/templateLoader.js?!./node_modules/vue-loader/lib/index.js?!./packages/element-ui/form/index.vue?vue&type=template&id=8f21a378&\");\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_8f21a378___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_8f21a378___WEBPACK_IMPORTED_MODULE_0__[\"staticRenderFns\"]; });\n\n\n\n//# sourceURL=webpack://AVUE/./packages/element-ui/form/index.vue?");
3878
3866
 
3879
3867
  /***/ }),
3880
3868
 
@@ -4498,7 +4486,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _nod
4498
4486
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
4499
4487
 
4500
4488
  "use strict";
4501
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _index_vue_vue_type_template_id_9dbd7f12___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./index.vue?vue&type=template&id=9dbd7f12& */ \"./packages/element-ui/select/index.vue?vue&type=template&id=9dbd7f12&\");\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/select/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_9dbd7f12___WEBPACK_IMPORTED_MODULE_0__[\"render\"],\n _index_vue_vue_type_template_id_9dbd7f12___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/select/index.vue?");
4489
+ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _index_vue_vue_type_template_id_9fc8e74a___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./index.vue?vue&type=template&id=9fc8e74a& */ \"./packages/element-ui/select/index.vue?vue&type=template&id=9fc8e74a&\");\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/select/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_9fc8e74a___WEBPACK_IMPORTED_MODULE_0__[\"render\"],\n _index_vue_vue_type_template_id_9fc8e74a___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/select/index.vue?");
4502
4490
 
4503
4491
  /***/ }),
4504
4492
 
@@ -4514,15 +4502,15 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _nod
4514
4502
 
4515
4503
  /***/ }),
4516
4504
 
4517
- /***/ "./packages/element-ui/select/index.vue?vue&type=template&id=9dbd7f12&":
4505
+ /***/ "./packages/element-ui/select/index.vue?vue&type=template&id=9fc8e74a&":
4518
4506
  /*!*****************************************************************************!*\
4519
- !*** ./packages/element-ui/select/index.vue?vue&type=template&id=9dbd7f12& ***!
4507
+ !*** ./packages/element-ui/select/index.vue?vue&type=template&id=9fc8e74a& ***!
4520
4508
  \*****************************************************************************/
4521
4509
  /*! exports provided: render, staticRenderFns */
4522
4510
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
4523
4511
 
4524
4512
  "use strict";
4525
- 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_9dbd7f12___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=9dbd7f12& */ \"./node_modules/vue-loader/lib/loaders/templateLoader.js?!./node_modules/vue-loader/lib/index.js?!./packages/element-ui/select/index.vue?vue&type=template&id=9dbd7f12&\");\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_9dbd7f12___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_9dbd7f12___WEBPACK_IMPORTED_MODULE_0__[\"staticRenderFns\"]; });\n\n\n\n//# sourceURL=webpack://AVUE/./packages/element-ui/select/index.vue?");
4513
+ 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_9fc8e74a___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=9fc8e74a& */ \"./node_modules/vue-loader/lib/loaders/templateLoader.js?!./node_modules/vue-loader/lib/index.js?!./packages/element-ui/select/index.vue?vue&type=template&id=9fc8e74a&\");\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_9fc8e74a___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_9fc8e74a___WEBPACK_IMPORTED_MODULE_0__[\"staticRenderFns\"]; });\n\n\n\n//# sourceURL=webpack://AVUE/./packages/element-ui/select/index.vue?");
4526
4514
 
4527
4515
  /***/ }),
4528
4516
 
@@ -4858,7 +4846,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _nod
4858
4846
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
4859
4847
 
4860
4848
  "use strict";
4861
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _index_vue_vue_type_template_id_d3ad7c92___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./index.vue?vue&type=template&id=d3ad7c92& */ \"./packages/element-ui/upload/index.vue?vue&type=template&id=d3ad7c92&\");\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_d3ad7c92___WEBPACK_IMPORTED_MODULE_0__[\"render\"],\n _index_vue_vue_type_template_id_d3ad7c92___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?");
4849
+ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _index_vue_vue_type_template_id_1ea16c76___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./index.vue?vue&type=template&id=1ea16c76& */ \"./packages/element-ui/upload/index.vue?vue&type=template&id=1ea16c76&\");\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_1ea16c76___WEBPACK_IMPORTED_MODULE_0__[\"render\"],\n _index_vue_vue_type_template_id_1ea16c76___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?");
4862
4850
 
4863
4851
  /***/ }),
4864
4852
 
@@ -4874,15 +4862,15 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _nod
4874
4862
 
4875
4863
  /***/ }),
4876
4864
 
4877
- /***/ "./packages/element-ui/upload/index.vue?vue&type=template&id=d3ad7c92&":
4865
+ /***/ "./packages/element-ui/upload/index.vue?vue&type=template&id=1ea16c76&":
4878
4866
  /*!*****************************************************************************!*\
4879
- !*** ./packages/element-ui/upload/index.vue?vue&type=template&id=d3ad7c92& ***!
4867
+ !*** ./packages/element-ui/upload/index.vue?vue&type=template&id=1ea16c76& ***!
4880
4868
  \*****************************************************************************/
4881
4869
  /*! exports provided: render, staticRenderFns */
4882
4870
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
4883
4871
 
4884
4872
  "use strict";
4885
- 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_d3ad7c92___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=d3ad7c92& */ \"./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=d3ad7c92&\");\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_d3ad7c92___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_d3ad7c92___WEBPACK_IMPORTED_MODULE_0__[\"staticRenderFns\"]; });\n\n\n\n//# sourceURL=webpack://AVUE/./packages/element-ui/upload/index.vue?");
4873
+ 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_1ea16c76___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=1ea16c76& */ \"./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=1ea16c76&\");\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_1ea16c76___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_1ea16c76___WEBPACK_IMPORTED_MODULE_0__[\"staticRenderFns\"]; });\n\n\n\n//# sourceURL=webpack://AVUE/./packages/element-ui/upload/index.vue?");
4886
4874
 
4887
4875
  /***/ }),
4888
4876
 
@@ -5062,7 +5050,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var ui_i
5062
5050
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
5063
5051
 
5064
5052
  "use strict";
5065
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"hasOwn\", function() { return hasOwn; });\nfunction _typeof(obj) { \"@babel/helpers - typeof\"; if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\nvar hasOwnProperty = Object.prototype.hasOwnProperty;\nfunction hasOwn(obj, key) {\n return hasOwnProperty.call(obj, key);\n}\n;\nvar RE_NARGS = /(%|)\\{([0-9a-zA-Z_]+)\\}/g;\n/**\n * String format template\n * - Inspired:\n * https://github.com/Matt-Esch/string-template/index.js\n */\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (function (Vue) {\n /**\n * template\n *\n * @param {String} string\n * @param {Array} ...args\n * @return {String}\n */\n function template() {\n var string = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';\n\n for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {\n args[_key - 1] = arguments[_key];\n }\n\n if (args.length === 1 && _typeof(args[0]) === 'object') {\n args = args[0];\n }\n\n if (!args || !args.hasOwnProperty) {\n args = {};\n }\n\n return string.replace(RE_NARGS, function (match, prefix, i, index) {\n var result;\n\n if (string[index - 1] === '{' && string[index + match.length] === '}') {\n return i;\n } else {\n result = hasOwn(args, i) ? args[i] : null;\n\n if (result === null || result === undefined) {\n return '';\n }\n\n return result;\n }\n });\n }\n\n return template;\n});\n\n//# sourceURL=webpack://AVUE/./src/locale/format.js?");
5053
+ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"hasOwn\", function() { return hasOwn; });\nfunction _typeof(obj) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && \"function\" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }, _typeof(obj); }\n\nvar hasOwnProperty = Object.prototype.hasOwnProperty;\nfunction hasOwn(obj, key) {\n return hasOwnProperty.call(obj, key);\n}\n;\nvar RE_NARGS = /(%|)\\{([0-9a-zA-Z_]+)\\}/g;\n/**\n * String format template\n * - Inspired:\n * https://github.com/Matt-Esch/string-template/index.js\n */\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (function (Vue) {\n /**\n * template\n *\n * @param {String} string\n * @param {Array} ...args\n * @return {String}\n */\n function template() {\n var string = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';\n\n for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {\n args[_key - 1] = arguments[_key];\n }\n\n if (args.length === 1 && _typeof(args[0]) === 'object') {\n args = args[0];\n }\n\n if (!args || !args.hasOwnProperty) {\n args = {};\n }\n\n return string.replace(RE_NARGS, function (match, prefix, i, index) {\n var result;\n\n if (string[index - 1] === '{' && string[index + match.length] === '}') {\n return i;\n } else {\n result = hasOwn(args, i) ? args[i] : null;\n\n if (result === null || result === undefined) {\n return '';\n }\n\n return result;\n }\n });\n }\n\n return template;\n});\n\n//# sourceURL=webpack://AVUE/./src/locale/format.js?");
5066
5054
 
5067
5055
  /***/ }),
5068
5056
 
@@ -5134,7 +5122,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) *
5134
5122
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
5135
5123
 
5136
5124
  "use strict";
5137
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var utils_util__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! utils/util */ \"./src/utils/util.js\");\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }\n\n// const CONTAINERID = '_avue_markcontainer';\n\n\nvar waterMark = /*#__PURE__*/function () {\n function waterMark() {\n var opt = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n\n _classCallCheck(this, waterMark);\n\n this.CONTAINERID = Object(utils_util__WEBPACK_IMPORTED_MODULE_0__[\"randomId\"])();\n this.drawCanvas = this.drawCanvas.bind(this);\n this.parentObserver = this.parentObserver.bind(this);\n this.Repaint = this.Repaint.bind(this);\n this.isOberserve = false;\n this.init(opt);\n this.drawCanvas();\n this.parentObserver();\n }\n\n _createClass(waterMark, [{\n key: \"init\",\n value: function init(opt) {\n this.option = Object.assign({\n width: 400,\n height: 200,\n text: 'avueJS',\n fontSize: '30px',\n fontStyle: '黑体',\n textAlign: 'center',\n color: 'rgba(100,100,100,0.15)',\n degree: -20\n }, opt);\n }\n }, {\n key: \"drawCanvas\",\n value: function drawCanvas() {\n this.isOberserve = true;\n var divContainer = document.createElement('div');\n var canvas = document.createElement('canvas');\n var context = canvas.getContext('2d');\n divContainer.id = this.CONTAINERID;\n canvas.width = this.option.width;\n canvas.height = this.option.height;\n context.font = \"\".concat(this.option.fontSize, \" \").concat(this.option.fontStyle);\n context.textAlign = this.option.textAlign;\n context.fillStyle = this.option.color;\n context.translate(canvas.width / 2, canvas.height / 2);\n context.rotate(this.option.degree * Math.PI / 180);\n context.fillText(this.option.text, 0, 0);\n var backgroundUrl = canvas.toDataURL('image/png');\n var flag = this.option.id,\n el;\n if (flag) el = document.getElementById(flag);\n this.styleStr = \"\\n position:\".concat(flag ? 'absolute' : 'fixed', \";\\n top:0;\\n left:0;\\n width:\").concat(flag ? el.offsetWidth + 'px' : '100%', \";\\n height:\").concat(flag ? el.offsetHeight + 'px' : '100%', \";\\n z-index:9999;\\n pointer-events:none;\\n background-repeat:repeat;\\n background-image:url('\").concat(backgroundUrl, \"')\");\n divContainer.setAttribute('style', this.styleStr);\n\n if (flag) {\n var _el = document.getElementById(flag);\n\n _el.appendChild(divContainer);\n } else {\n document.body.appendChild(divContainer);\n }\n\n this.wmObserver(divContainer);\n this.isOberserve = false;\n }\n }, {\n key: \"wmObserver\",\n value: function wmObserver(divContainer) {\n var _this = this;\n\n var wmConf = {\n attributes: true,\n childList: true,\n characterData: true\n };\n var wmObserver = new MutationObserver(function (mo) {\n if (!_this.isOberserve) {\n var _obj = mo[0].target;\n\n _obj.setAttribute('style', _this.styleStr);\n\n _obj.setAttribute('id', _this.CONTAINERID);\n\n wmObserver.takeRecords();\n }\n });\n wmObserver.observe(divContainer, wmConf);\n }\n }, {\n key: \"parentObserver\",\n value: function parentObserver() {\n var _this2 = this;\n\n var bodyObserver = new MutationObserver(function () {\n if (!_this2.isOberserve) {\n var __wm = document.querySelector(\"#\".concat(_this2.CONTAINERID));\n\n if (!__wm) {\n _this2.drawCanvas();\n } else if (__wm.getAttribute('style') !== _this2.styleStr) {\n __wm.setAttribute('style', _this2.styleStr);\n }\n }\n });\n bodyObserver.observe(document.querySelector(\"#\".concat(this.CONTAINERID)).parentNode, {\n childList: true\n });\n }\n }, {\n key: \"Repaint\",\n value: function Repaint() {\n var opt = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n this.remove();\n this.init(opt);\n this.drawCanvas();\n }\n }, {\n key: \"remove\",\n value: function remove() {\n this.isOberserve = true;\n\n var _wm = document.querySelector(\"#\".concat(this.CONTAINERID));\n\n _wm.parentNode.removeChild(_wm);\n }\n }]);\n\n return waterMark;\n}();\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (waterMark);\n\n//# sourceURL=webpack://AVUE/./src/plugin/canvas/watermark.js?");
5125
+ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var utils_util__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! utils/util */ \"./src/utils/util.js\");\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, \"prototype\", { writable: false }); return Constructor; }\n\n// const CONTAINERID = '_avue_markcontainer';\n\n\nvar waterMark = /*#__PURE__*/function () {\n function waterMark() {\n var opt = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n\n _classCallCheck(this, waterMark);\n\n this.CONTAINERID = Object(utils_util__WEBPACK_IMPORTED_MODULE_0__[\"randomId\"])();\n this.drawCanvas = this.drawCanvas.bind(this);\n this.parentObserver = this.parentObserver.bind(this);\n this.Repaint = this.Repaint.bind(this);\n this.isOberserve = false;\n this.init(opt);\n this.drawCanvas();\n this.parentObserver();\n }\n\n _createClass(waterMark, [{\n key: \"init\",\n value: function init(opt) {\n this.option = Object.assign({\n width: 400,\n height: 200,\n text: 'avueJS',\n fontSize: '30px',\n fontStyle: '黑体',\n textAlign: 'center',\n color: 'rgba(100,100,100,0.15)',\n degree: -20\n }, opt);\n }\n }, {\n key: \"drawCanvas\",\n value: function drawCanvas() {\n this.isOberserve = true;\n var divContainer = document.createElement('div');\n var canvas = document.createElement('canvas');\n var context = canvas.getContext('2d');\n divContainer.id = this.CONTAINERID;\n canvas.width = this.option.width;\n canvas.height = this.option.height;\n context.font = \"\".concat(this.option.fontSize, \" \").concat(this.option.fontStyle);\n context.textAlign = this.option.textAlign;\n context.fillStyle = this.option.color;\n context.translate(canvas.width / 2, canvas.height / 2);\n context.rotate(this.option.degree * Math.PI / 180);\n context.fillText(this.option.text, 0, 0);\n var backgroundUrl = canvas.toDataURL('image/png');\n var flag = this.option.id,\n el;\n if (flag) el = document.getElementById(flag);\n this.styleStr = \"\\n position:\".concat(flag ? 'absolute' : 'fixed', \";\\n top:0;\\n left:0;\\n width:\").concat(flag ? el.offsetWidth + 'px' : '100%', \";\\n height:\").concat(flag ? el.offsetHeight + 'px' : '100%', \";\\n z-index:9999;\\n pointer-events:none;\\n background-repeat:repeat;\\n background-image:url('\").concat(backgroundUrl, \"')\");\n divContainer.setAttribute('style', this.styleStr);\n\n if (flag) {\n var _el = document.getElementById(flag);\n\n _el.appendChild(divContainer);\n } else {\n document.body.appendChild(divContainer);\n }\n\n this.wmObserver(divContainer);\n this.isOberserve = false;\n }\n }, {\n key: \"wmObserver\",\n value: function wmObserver(divContainer) {\n var _this = this;\n\n var wmConf = {\n attributes: true,\n childList: true,\n characterData: true\n };\n var wmObserver = new MutationObserver(function (mo) {\n if (!_this.isOberserve) {\n var _obj = mo[0].target;\n\n _obj.setAttribute('style', _this.styleStr);\n\n _obj.setAttribute('id', _this.CONTAINERID);\n\n wmObserver.takeRecords();\n }\n });\n wmObserver.observe(divContainer, wmConf);\n }\n }, {\n key: \"parentObserver\",\n value: function parentObserver() {\n var _this2 = this;\n\n var bodyObserver = new MutationObserver(function () {\n if (!_this2.isOberserve) {\n var __wm = document.querySelector(\"#\".concat(_this2.CONTAINERID));\n\n if (!__wm) {\n _this2.drawCanvas();\n } else if (__wm.getAttribute('style') !== _this2.styleStr) {\n __wm.setAttribute('style', _this2.styleStr);\n }\n }\n });\n bodyObserver.observe(document.querySelector(\"#\".concat(this.CONTAINERID)).parentNode, {\n childList: true\n });\n }\n }, {\n key: \"Repaint\",\n value: function Repaint() {\n var opt = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n this.remove();\n this.init(opt);\n this.drawCanvas();\n }\n }, {\n key: \"remove\",\n value: function remove() {\n this.isOberserve = true;\n\n var _wm = document.querySelector(\"#\".concat(this.CONTAINERID));\n\n _wm.parentNode.removeChild(_wm);\n }\n }]);\n\n return waterMark;\n}();\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (waterMark);\n\n//# sourceURL=webpack://AVUE/./src/plugin/canvas/watermark.js?");
5138
5126
 
5139
5127
  /***/ }),
5140
5128
 
@@ -5170,7 +5158,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var util
5170
5158
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
5171
5159
 
5172
5160
  "use strict";
5173
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"default\", function() { return Keyboard; });\nfunction _typeof(obj) { \"@babel/helpers - typeof\"; if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }\n\nvar Keyboard = /*#__PURE__*/function () {\n function Keyboard(obj) {\n _classCallCheck(this, Keyboard);\n\n if (_typeof(obj) !== 'object') {\n console.error('aKeyboard: The obj parameter needs to be an object <In \"new aKeyboard()\">');\n return;\n }\n\n this.obj = obj;\n var el = document.querySelector(obj.el);\n var keyboardStyle = '';\n\n if (_typeof(obj.style) === 'object') {\n for (var i in obj.style) {\n keyboardStyle += i + ': ' + obj.style[i] + ';';\n }\n }\n\n var html = '<div class=\"akeyboard-keyboard' + (obj.fixedBottomCenter ? ' akeyboard-keyboard-fixedBottomCenter' : '') + '\" style=\"' + keyboardStyle + '\">'; // init keys\n\n var numberKeys = [];\n\n for (var _i = 1; _i < 10; _i++) {\n numberKeys.push(_i.toString());\n }\n\n numberKeys.push('0');\n var keys = obj.keys || [['`'].concat(numberKeys).concat(['-', '=', 'Delete']), ['Tab', 'q', 'w', 'e', 'r', 't', 'y', 'u', 'i', 'o', 'p', '[', ']', '\\\\'], ['Caps', 'a', 's', 'd', 'f', 'g', 'h', 'j', 'k', 'l', ';', '\\'', 'Enter'], ['Shift', 'z', 'x', 'c', 'v', 'b', 'n', 'm', ',', '.', '/', 'Shift'], ['Space']];\n var thisKeys;\n var shiftKey = [],\n capsKey = [];\n\n for (var _i2 = 0; _i2 < keys.length; _i2++) {\n shiftKey.push([]);\n capsKey.push([]);\n thisKeys = keys[_i2];\n\n for (var a = 0; a < thisKeys.length; a++) {\n if (thisKeys[a].length === 1) {\n capsKey[_i2].push(thisKeys[a].toUpperCase());\n\n switch (thisKeys[a]) {\n case '`':\n shiftKey[_i2].push('~');\n\n continue;\n\n case '1':\n shiftKey[_i2].push('!');\n\n continue;\n\n case '2':\n shiftKey[_i2].push('@');\n\n continue;\n\n case '3':\n shiftKey[_i2].push('#');\n\n continue;\n\n case '4':\n shiftKey[_i2].push('$');\n\n continue;\n\n case '5':\n shiftKey[_i2].push('%');\n\n continue;\n\n case '6':\n shiftKey[_i2].push('^');\n\n continue;\n\n case '7':\n shiftKey[_i2].push('&');\n\n continue;\n\n case '8':\n shiftKey[_i2].push('*');\n\n continue;\n\n case '9':\n shiftKey[_i2].push('(');\n\n continue;\n\n case '0':\n shiftKey[_i2].push(')');\n\n continue;\n\n case '-':\n shiftKey[_i2].push('_');\n\n continue;\n\n case '=':\n shiftKey[_i2].push('+');\n\n continue;\n\n case '[':\n shiftKey[_i2].push('{');\n\n continue;\n\n case ']':\n shiftKey[_i2].push('}');\n\n continue;\n\n case '\\\\':\n shiftKey[_i2].push('|');\n\n continue;\n\n case ';':\n shiftKey[_i2].push(':');\n\n continue;\n\n case '\\'':\n shiftKey[_i2].push('\"');\n\n continue;\n\n case ',':\n shiftKey[_i2].push('<');\n\n continue;\n\n case '.':\n shiftKey[_i2].push('>');\n\n continue;\n\n case '/':\n shiftKey[_i2].push('?');\n\n continue;\n }\n\n shiftKey[_i2].push(thisKeys[a].toUpperCase());\n\n continue;\n }\n\n shiftKey[_i2].push(thisKeys[a]);\n\n capsKey[_i2].push(thisKeys[a]);\n }\n }\n\n for (var _i3 = 0; _i3 < keys.length; _i3++) {\n thisKeys = keys[_i3];\n html += '<div class=\"akeyboard-keyboard-innerKeys\">';\n\n for (var _a = 0; _a < thisKeys.length; _a++) {\n html += '<div class=\"akeyboard-keyboard-keys akeyboard-keyboard-keys-' + thisKeys[_a] + '\">' + thisKeys[_a] + '</div>';\n }\n\n html += '</div>';\n }\n\n html += '</div>';\n el.innerHTML = html;\n var containShift = false;\n keys.forEach(function (key) {\n if (key.includes('Shift')) {\n containShift = true;\n return;\n }\n });\n\n if (containShift) {\n // bind the shift and caps key\n var elKeysEl = document.querySelectorAll(obj.el + ' .akeyboard-keyboard-keys-Shift');\n elKeysEl.forEach(function (el) {\n el.onclick = function () {\n if (!this.isShift) {\n var caps = document.querySelector(obj.el + ' .akeyboard-keyboard-keys-Caps');\n\n if (caps && caps.isCaps) {\n return;\n } // shift\n\n\n el.isShift = true;\n el.innerHTML = 'SHIFT';\n this.classList.add('keyboard-keyboard-keys-focus');\n\n var _keysInnerEl = document.querySelectorAll(obj.el + ' .akeyboard-keyboard-innerKeys');\n\n var _thisEl;\n\n for (var _i4 = 0; _i4 < _keysInnerEl.length; _i4++) {\n _thisEl = _keysInnerEl[_i4];\n\n for (var _a2 = 0; _a2 < _thisEl.childNodes.length; _a2++) {\n if (shiftKey[_i4][_a2] === 'Shift') {\n continue;\n }\n\n _thisEl.childNodes[_a2].innerHTML = shiftKey[_i4][_a2];\n }\n }\n\n return;\n }\n\n el.isShift = false;\n el.innerHTML = 'Shift';\n this.classList.remove('keyboard-keyboard-keys-focus');\n var keysInnerEl = document.querySelectorAll(obj.el + ' .akeyboard-keyboard-innerKeys');\n var thisEl;\n\n for (var _i5 = 0; _i5 < keysInnerEl.length; _i5++) {\n thisEl = keysInnerEl[_i5];\n\n for (var _a3 = 0; _a3 < thisEl.childNodes.length; _a3++) {\n thisEl.childNodes[_a3].innerHTML = keys[_i5][_a3];\n }\n }\n };\n });\n }\n\n var containCaps = false;\n keys.forEach(function (key) {\n if (key.includes('Caps')) {\n containCaps = true;\n return;\n }\n });\n\n if (containCaps) {\n var elCapsEl = document.querySelectorAll(obj.el + ' .akeyboard-keyboard-keys-Caps');\n elCapsEl.forEach(function (el) {\n el.onclick = function () {\n if (!this.isCaps) {\n var shift = document.querySelector(obj.el + ' .akeyboard-keyboard-keys-Shift');\n\n if (shift && shift.isShift) {\n return;\n } // caps\n\n\n this.isCaps = true;\n this.classList.add('keyboard-keyboard-keys-focus');\n\n var _keysInnerEl2 = document.querySelectorAll(obj.el + ' .akeyboard-keyboard-innerKeys');\n\n var _thisEl2;\n\n for (var _i6 = 0; _i6 < _keysInnerEl2.length; _i6++) {\n _thisEl2 = _keysInnerEl2[_i6];\n\n for (var _a4 = 0; _a4 < _thisEl2.childNodes.length; _a4++) {\n _thisEl2.childNodes[_a4].innerHTML = capsKey[_i6][_a4];\n }\n }\n\n return;\n }\n\n this.isCaps = false;\n this.classList.remove('keyboard-keyboard-keys-focus');\n var keysInnerEl = document.querySelectorAll(obj.el + ' .akeyboard-keyboard-innerKeys');\n var thisEl;\n\n for (var _i7 = 0; _i7 < keysInnerEl.length; _i7++) {\n thisEl = keysInnerEl[_i7];\n\n for (var _a5 = 0; _a5 < thisEl.childNodes.length; _a5++) {\n thisEl.childNodes[_a5].innerHTML = keys[_i7][_a5];\n }\n }\n };\n });\n }\n }\n\n _createClass(Keyboard, [{\n key: \"inputOn\",\n value: function inputOn(inputEle, type, fn, customClick) {\n if (typeof inputEle !== 'string') {\n console.error('aKeyboard: The inputEle parameter needs to be a string <In \"aKeyboard.inputOn()\">');\n return;\n }\n\n if (typeof type !== 'string') {\n console.error('aKeyboard: The type parameter needs to be a string <In \"aKeyboard.inputOn()\">');\n return;\n }\n\n var inputEl = document.querySelector(inputEle),\n elKeysEl = document.querySelectorAll(this.obj.el + ' .akeyboard-keyboard-keys');\n\n for (var i = 0; i < elKeysEl.length; i++) {\n if (['Shift', 'Caps'].includes(elKeysEl[i].innerHTML)) {\n continue;\n }\n\n if (elKeysEl[i].innerHTML === 'Delete') {\n elKeysEl[i].onclick = function () {\n inputEl[type] = inputEl[type].substr(0, inputEl[type].length - 1);\n fn('Delete', inputEl[type]);\n };\n\n continue;\n }\n\n if (elKeysEl[i].innerHTML === 'Tab') {\n elKeysEl[i].onclick = function () {\n inputEl[type] += ' ';\n fn('Tab', inputEl[type]);\n };\n\n continue;\n }\n\n if (elKeysEl[i].innerHTML === 'Enter') {\n elKeysEl[i].onclick = function () {\n inputEl[type] += '\\n';\n fn('Enter', inputEl[type]);\n };\n\n continue;\n }\n\n if (elKeysEl[i].innerHTML === 'Space') {\n elKeysEl[i].onclick = function () {\n inputEl[type] += ' ';\n fn('Space', inputEl[type]);\n };\n\n continue;\n }\n\n if (customClick && _typeof(customClick) === 'object' && Object.keys(customClick).length > 0 && customClick[elKeysEl[i].innerHTML]) {\n elKeysEl[i].onclick = customClick[elKeysEl[i].innerHTML];\n } else {\n elKeysEl[i].onclick = function () {\n inputEl[type] += this.innerText;\n fn(this.innerText, inputEl[type]);\n };\n }\n }\n }\n }, {\n key: \"onclick\",\n value: function onclick(btn, fn) {\n if (typeof btn !== 'string') {\n console.error('aKeyboard: The btn parameter needs to be a string <In \"aKeyboard.onclick()\">');\n return;\n }\n\n if (typeof fn !== 'function') {\n console.error('aKeyboard: The fn parameter needs to be a function <In \"aKeyboard.onclick()\">');\n return;\n }\n\n var elKeysEl = document.querySelector(this.obj.el + ' .akeyboard-keyboard-keys-' + btn);\n if (elKeysEl) elKeysEl.onclick = fn;else console.error('Can not find key: ' + btn);\n }\n }]);\n\n return Keyboard;\n}();\n\n\n\n//# sourceURL=webpack://AVUE/./src/plugin/keyboard/index.js?");
5161
+ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"default\", function() { return Keyboard; });\nfunction _typeof(obj) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && \"function\" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }, _typeof(obj); }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, \"prototype\", { writable: false }); return Constructor; }\n\nvar Keyboard = /*#__PURE__*/function () {\n function Keyboard(obj) {\n _classCallCheck(this, Keyboard);\n\n if (_typeof(obj) !== 'object') {\n console.error('aKeyboard: The obj parameter needs to be an object <In \"new aKeyboard()\">');\n return;\n }\n\n this.obj = obj;\n var el = document.querySelector(obj.el);\n var keyboardStyle = '';\n\n if (_typeof(obj.style) === 'object') {\n for (var i in obj.style) {\n keyboardStyle += i + ': ' + obj.style[i] + ';';\n }\n }\n\n var html = '<div class=\"akeyboard-keyboard' + (obj.fixedBottomCenter ? ' akeyboard-keyboard-fixedBottomCenter' : '') + '\" style=\"' + keyboardStyle + '\">'; // init keys\n\n var numberKeys = [];\n\n for (var _i = 1; _i < 10; _i++) {\n numberKeys.push(_i.toString());\n }\n\n numberKeys.push('0');\n var keys = obj.keys || [['`'].concat(numberKeys).concat(['-', '=', 'Delete']), ['Tab', 'q', 'w', 'e', 'r', 't', 'y', 'u', 'i', 'o', 'p', '[', ']', '\\\\'], ['Caps', 'a', 's', 'd', 'f', 'g', 'h', 'j', 'k', 'l', ';', '\\'', 'Enter'], ['Shift', 'z', 'x', 'c', 'v', 'b', 'n', 'm', ',', '.', '/', 'Shift'], ['Space']];\n var thisKeys;\n var shiftKey = [],\n capsKey = [];\n\n for (var _i2 = 0; _i2 < keys.length; _i2++) {\n shiftKey.push([]);\n capsKey.push([]);\n thisKeys = keys[_i2];\n\n for (var a = 0; a < thisKeys.length; a++) {\n if (thisKeys[a].length === 1) {\n capsKey[_i2].push(thisKeys[a].toUpperCase());\n\n switch (thisKeys[a]) {\n case '`':\n shiftKey[_i2].push('~');\n\n continue;\n\n case '1':\n shiftKey[_i2].push('!');\n\n continue;\n\n case '2':\n shiftKey[_i2].push('@');\n\n continue;\n\n case '3':\n shiftKey[_i2].push('#');\n\n continue;\n\n case '4':\n shiftKey[_i2].push('$');\n\n continue;\n\n case '5':\n shiftKey[_i2].push('%');\n\n continue;\n\n case '6':\n shiftKey[_i2].push('^');\n\n continue;\n\n case '7':\n shiftKey[_i2].push('&');\n\n continue;\n\n case '8':\n shiftKey[_i2].push('*');\n\n continue;\n\n case '9':\n shiftKey[_i2].push('(');\n\n continue;\n\n case '0':\n shiftKey[_i2].push(')');\n\n continue;\n\n case '-':\n shiftKey[_i2].push('_');\n\n continue;\n\n case '=':\n shiftKey[_i2].push('+');\n\n continue;\n\n case '[':\n shiftKey[_i2].push('{');\n\n continue;\n\n case ']':\n shiftKey[_i2].push('}');\n\n continue;\n\n case '\\\\':\n shiftKey[_i2].push('|');\n\n continue;\n\n case ';':\n shiftKey[_i2].push(':');\n\n continue;\n\n case '\\'':\n shiftKey[_i2].push('\"');\n\n continue;\n\n case ',':\n shiftKey[_i2].push('<');\n\n continue;\n\n case '.':\n shiftKey[_i2].push('>');\n\n continue;\n\n case '/':\n shiftKey[_i2].push('?');\n\n continue;\n }\n\n shiftKey[_i2].push(thisKeys[a].toUpperCase());\n\n continue;\n }\n\n shiftKey[_i2].push(thisKeys[a]);\n\n capsKey[_i2].push(thisKeys[a]);\n }\n }\n\n for (var _i3 = 0; _i3 < keys.length; _i3++) {\n thisKeys = keys[_i3];\n html += '<div class=\"akeyboard-keyboard-innerKeys\">';\n\n for (var _a = 0; _a < thisKeys.length; _a++) {\n html += '<div class=\"akeyboard-keyboard-keys akeyboard-keyboard-keys-' + thisKeys[_a] + '\">' + thisKeys[_a] + '</div>';\n }\n\n html += '</div>';\n }\n\n html += '</div>';\n el.innerHTML = html;\n var containShift = false;\n keys.forEach(function (key) {\n if (key.includes('Shift')) {\n containShift = true;\n return;\n }\n });\n\n if (containShift) {\n // bind the shift and caps key\n var elKeysEl = document.querySelectorAll(obj.el + ' .akeyboard-keyboard-keys-Shift');\n elKeysEl.forEach(function (el) {\n el.onclick = function () {\n if (!this.isShift) {\n var caps = document.querySelector(obj.el + ' .akeyboard-keyboard-keys-Caps');\n\n if (caps && caps.isCaps) {\n return;\n } // shift\n\n\n el.isShift = true;\n el.innerHTML = 'SHIFT';\n this.classList.add('keyboard-keyboard-keys-focus');\n\n var _keysInnerEl = document.querySelectorAll(obj.el + ' .akeyboard-keyboard-innerKeys');\n\n var _thisEl;\n\n for (var _i4 = 0; _i4 < _keysInnerEl.length; _i4++) {\n _thisEl = _keysInnerEl[_i4];\n\n for (var _a2 = 0; _a2 < _thisEl.childNodes.length; _a2++) {\n if (shiftKey[_i4][_a2] === 'Shift') {\n continue;\n }\n\n _thisEl.childNodes[_a2].innerHTML = shiftKey[_i4][_a2];\n }\n }\n\n return;\n }\n\n el.isShift = false;\n el.innerHTML = 'Shift';\n this.classList.remove('keyboard-keyboard-keys-focus');\n var keysInnerEl = document.querySelectorAll(obj.el + ' .akeyboard-keyboard-innerKeys');\n var thisEl;\n\n for (var _i5 = 0; _i5 < keysInnerEl.length; _i5++) {\n thisEl = keysInnerEl[_i5];\n\n for (var _a3 = 0; _a3 < thisEl.childNodes.length; _a3++) {\n thisEl.childNodes[_a3].innerHTML = keys[_i5][_a3];\n }\n }\n };\n });\n }\n\n var containCaps = false;\n keys.forEach(function (key) {\n if (key.includes('Caps')) {\n containCaps = true;\n return;\n }\n });\n\n if (containCaps) {\n var elCapsEl = document.querySelectorAll(obj.el + ' .akeyboard-keyboard-keys-Caps');\n elCapsEl.forEach(function (el) {\n el.onclick = function () {\n if (!this.isCaps) {\n var shift = document.querySelector(obj.el + ' .akeyboard-keyboard-keys-Shift');\n\n if (shift && shift.isShift) {\n return;\n } // caps\n\n\n this.isCaps = true;\n this.classList.add('keyboard-keyboard-keys-focus');\n\n var _keysInnerEl2 = document.querySelectorAll(obj.el + ' .akeyboard-keyboard-innerKeys');\n\n var _thisEl2;\n\n for (var _i6 = 0; _i6 < _keysInnerEl2.length; _i6++) {\n _thisEl2 = _keysInnerEl2[_i6];\n\n for (var _a4 = 0; _a4 < _thisEl2.childNodes.length; _a4++) {\n _thisEl2.childNodes[_a4].innerHTML = capsKey[_i6][_a4];\n }\n }\n\n return;\n }\n\n this.isCaps = false;\n this.classList.remove('keyboard-keyboard-keys-focus');\n var keysInnerEl = document.querySelectorAll(obj.el + ' .akeyboard-keyboard-innerKeys');\n var thisEl;\n\n for (var _i7 = 0; _i7 < keysInnerEl.length; _i7++) {\n thisEl = keysInnerEl[_i7];\n\n for (var _a5 = 0; _a5 < thisEl.childNodes.length; _a5++) {\n thisEl.childNodes[_a5].innerHTML = keys[_i7][_a5];\n }\n }\n };\n });\n }\n }\n\n _createClass(Keyboard, [{\n key: \"inputOn\",\n value: function inputOn(inputEle, type, fn, customClick) {\n if (typeof inputEle !== 'string') {\n console.error('aKeyboard: The inputEle parameter needs to be a string <In \"aKeyboard.inputOn()\">');\n return;\n }\n\n if (typeof type !== 'string') {\n console.error('aKeyboard: The type parameter needs to be a string <In \"aKeyboard.inputOn()\">');\n return;\n }\n\n var inputEl = document.querySelector(inputEle),\n elKeysEl = document.querySelectorAll(this.obj.el + ' .akeyboard-keyboard-keys');\n\n for (var i = 0; i < elKeysEl.length; i++) {\n if (['Shift', 'Caps'].includes(elKeysEl[i].innerHTML)) {\n continue;\n }\n\n if (elKeysEl[i].innerHTML === 'Delete') {\n elKeysEl[i].onclick = function () {\n inputEl[type] = inputEl[type].substr(0, inputEl[type].length - 1);\n fn('Delete', inputEl[type]);\n };\n\n continue;\n }\n\n if (elKeysEl[i].innerHTML === 'Tab') {\n elKeysEl[i].onclick = function () {\n inputEl[type] += ' ';\n fn('Tab', inputEl[type]);\n };\n\n continue;\n }\n\n if (elKeysEl[i].innerHTML === 'Enter') {\n elKeysEl[i].onclick = function () {\n inputEl[type] += '\\n';\n fn('Enter', inputEl[type]);\n };\n\n continue;\n }\n\n if (elKeysEl[i].innerHTML === 'Space') {\n elKeysEl[i].onclick = function () {\n inputEl[type] += ' ';\n fn('Space', inputEl[type]);\n };\n\n continue;\n }\n\n if (customClick && _typeof(customClick) === 'object' && Object.keys(customClick).length > 0 && customClick[elKeysEl[i].innerHTML]) {\n elKeysEl[i].onclick = customClick[elKeysEl[i].innerHTML];\n } else {\n elKeysEl[i].onclick = function () {\n inputEl[type] += this.innerText;\n fn(this.innerText, inputEl[type]);\n };\n }\n }\n }\n }, {\n key: \"onclick\",\n value: function onclick(btn, fn) {\n if (typeof btn !== 'string') {\n console.error('aKeyboard: The btn parameter needs to be a string <In \"aKeyboard.onclick()\">');\n return;\n }\n\n if (typeof fn !== 'function') {\n console.error('aKeyboard: The fn parameter needs to be a function <In \"aKeyboard.onclick()\">');\n return;\n }\n\n var elKeysEl = document.querySelector(this.obj.el + ' .akeyboard-keyboard-keys-' + btn);\n if (elKeysEl) elKeysEl.onclick = fn;else console.error('Can not find key: ' + btn);\n }\n }]);\n\n return Keyboard;\n}();\n\n\n\n//# sourceURL=webpack://AVUE/./src/plugin/keyboard/index.js?");
5174
5162
 
5175
5163
  /***/ }),
5176
5164
 
@@ -5182,7 +5170,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) *
5182
5170
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
5183
5171
 
5184
5172
  "use strict";
5185
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"default\", function() { return MobileKeyboard; });\nfunction _typeof(obj) { \"@babel/helpers - typeof\"; if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }\n\nvar MobileKeyboard = /*#__PURE__*/function () {\n function MobileKeyboard(obj) {\n _classCallCheck(this, MobileKeyboard);\n\n if (_typeof(obj) !== 'object') {\n console.error('aKeyboard: The obj parameter needs to be an object <In \"new aKeyboard()\">');\n return;\n }\n\n this.obj = obj;\n var el = document.querySelector(obj.el);\n var keyboardStyle = '';\n\n if (_typeof(obj.style) === 'object') {\n for (var i in obj.style) {\n keyboardStyle += i + ': ' + obj.style[i] + ';';\n }\n }\n\n var html = '<div class=\"akeyboard-mobileKeyboard' + (obj.fixedBottomCenter ? ' akeyboard-keyboard-fixedBottomCenter' : '') + '\" style=\"' + keyboardStyle + '\">'; //init keys\n\n var numberKeys = [];\n\n for (var _i = 1; _i < 10; _i++) {\n numberKeys.push(_i.toString());\n }\n\n numberKeys.push('0');\n var keys = obj.keys || [['`'].concat(numberKeys).concat(['-', '=']), ['q', 'w', 'e', 'r', 't', 'y', 'u', 'i', 'o', 'p', '[', ']', '\\\\'], ['a', 's', 'd', 'f', 'g', 'h', 'j', 'k', 'l', ';', '\\''], ['⇧', 'z', 'x', 'c', 'v', 'b', 'n', 'm', ',', '.', '/', '⇦'], ['Space', 'Enter']];\n var thisKeys;\n var shiftKey = [];\n\n for (var _i2 = 0; _i2 < keys.length; _i2++) {\n shiftKey.push([]);\n thisKeys = keys[_i2];\n\n for (var a = 0; a < thisKeys.length; a++) {\n if (thisKeys[a].length === 1) {\n switch (thisKeys[a]) {\n case '`':\n shiftKey[_i2].push('~');\n\n continue;\n\n case '1':\n shiftKey[_i2].push('!');\n\n continue;\n\n case '2':\n shiftKey[_i2].push('@');\n\n continue;\n\n case '3':\n shiftKey[_i2].push('#');\n\n continue;\n\n case '4':\n shiftKey[_i2].push('$');\n\n continue;\n\n case '5':\n shiftKey[_i2].push('%');\n\n continue;\n\n case '6':\n shiftKey[_i2].push('^');\n\n continue;\n\n case '7':\n shiftKey[_i2].push('&');\n\n continue;\n\n case '8':\n shiftKey[_i2].push('*');\n\n continue;\n\n case '9':\n shiftKey[_i2].push('(');\n\n continue;\n\n case '0':\n shiftKey[_i2].push(')');\n\n continue;\n\n case '-':\n shiftKey[_i2].push('_');\n\n continue;\n\n case '=':\n shiftKey[_i2].push('+');\n\n continue;\n\n case '[':\n shiftKey[_i2].push('{');\n\n continue;\n\n case ']':\n shiftKey[_i2].push('}');\n\n continue;\n\n case '\\\\':\n shiftKey[_i2].push('|');\n\n continue;\n\n case ';':\n shiftKey[_i2].push(':');\n\n continue;\n\n case '\\'':\n shiftKey[_i2].push('\"');\n\n continue;\n\n case ',':\n shiftKey[_i2].push('<');\n\n continue;\n\n case '.':\n shiftKey[_i2].push('>');\n\n continue;\n\n case '/':\n shiftKey[_i2].push('?');\n\n continue;\n }\n\n shiftKey[_i2].push(thisKeys[a].toUpperCase());\n\n continue;\n }\n\n shiftKey[_i2].push(thisKeys[a]);\n }\n }\n\n for (var _i3 = 0; _i3 < keys.length; _i3++) {\n thisKeys = keys[_i3];\n html += '<div class=\"akeyboard-keyboard-innerKeys\">';\n\n for (var _a = 0; _a < thisKeys.length; _a++) {\n html += '<div class=\"akeyboard-mobileKeyboard-keys akeyboard-mobileKeyboard-keys-' + thisKeys[_a] + '\">' + thisKeys[_a] + '</div>';\n }\n\n html += '</div>';\n }\n\n html += '</div>';\n el.innerHTML = html;\n var containShift = false;\n keys.forEach(function (key) {\n if (key.includes(\"Shift\") || key.includes(\"⇧\")) {\n containShift = true;\n return;\n }\n }); //bind the shift\n\n if (containShift) {\n var elKeysEl = document.querySelectorAll(obj.el + ' .akeyboard-mobileKeyboard-keys-⇧');\n elKeysEl.forEach(function (el) {\n el.onclick = function () {\n if (!this.isShift) {\n //shift\n el.classList.add('akeyboard-mobileKeyboard-keys-focus');\n el.isShift = true;\n\n var _keysInnerEl = document.querySelectorAll(obj.el + ' .akeyboard-keyboard-innerKeys');\n\n var _thisEl;\n\n for (var _i4 = 0; _i4 < _keysInnerEl.length; _i4++) {\n _thisEl = _keysInnerEl[_i4];\n\n for (var _a2 = 0; _a2 < _thisEl.childNodes.length; _a2++) {\n _thisEl.childNodes[_a2].innerHTML = shiftKey[_i4][_a2];\n }\n }\n\n return;\n }\n\n el.isShift = false;\n el.classList.remove('akeyboard-mobileKeyboard-keys-focus');\n var keysInnerEl = document.querySelectorAll(obj.el + ' .akeyboard-keyboard-innerKeys');\n var thisEl;\n\n for (var _i5 = 0; _i5 < keysInnerEl.length; _i5++) {\n thisEl = keysInnerEl[_i5];\n\n for (var _a3 = 0; _a3 < thisEl.childNodes.length; _a3++) {\n thisEl.childNodes[_a3].innerHTML = keys[_i5][_a3];\n }\n }\n };\n });\n }\n }\n\n _createClass(MobileKeyboard, [{\n key: \"inputOn\",\n value: function inputOn(inputEle, type, fn, customClick) {\n if (typeof inputEle !== 'string') {\n console.error('aKeyboard: The inputEle parameter needs to be a string <In \"aKeyboard.inputOn()\">');\n return;\n }\n\n if (typeof type !== 'string') {\n console.error('aKeyboard: The type parameter needs to be a string <In \"aKeyboard.inputOn()\">');\n return;\n }\n\n var inputEl = document.querySelector(inputEle),\n elKeysEl = document.querySelectorAll(this.obj.el + ' .akeyboard-mobileKeyboard-keys');\n\n for (var i = 0; i < elKeysEl.length; i++) {\n switch (elKeysEl[i].innerHTML) {\n case '⇧':\n continue;\n\n case '⇦':\n elKeysEl[i].onclick = function () {\n inputEl[type] = inputEl[type].substr(0, inputEl[type].length - 1);\n fn('Delete', inputEl[type]);\n };\n\n continue;\n\n case 'Enter':\n elKeysEl[i].onclick = function () {\n inputEl[type] += '\\n';\n fn('Enter', inputEl[type]);\n };\n\n continue;\n\n case 'Space':\n elKeysEl[i].onclick = function () {\n inputEl[type] += ' ';\n fn('Space', inputEl[type]);\n };\n\n continue;\n }\n\n if (customClick && _typeof(customClick) == 'object' && Object.keys(customClick).length > 0 && customClick[elKeysEl[i].innerHTML]) {\n elKeysEl[i].onclick = customClick[elKeysEl[i].innerHTML];\n } else {\n elKeysEl[i].onclick = function () {\n inputEl[type] += this.innerText;\n fn(this.innerText, inputEl[type]);\n };\n }\n }\n }\n }, {\n key: \"onclick\",\n value: function onclick(btn, fn) {\n if (typeof btn !== 'string') {\n console.error('aKeyboard: The btn parameter needs to be a string <In \"aKeyboard.onclick()\">');\n return;\n }\n\n if (typeof fn !== 'function') {\n console.error('aKeyboard: The fn parameter needs to be a function <In \"aKeyboard.onclick()\">');\n return;\n }\n\n var elKeysEl = document.querySelector(this.obj.el + ' .akeyboard-mobileKeyboard-keys-' + btn);\n if (elKeysEl) elKeysEl.onclick = fn;else console.error(\"Can not find key: \" + btn);\n }\n }]);\n\n return MobileKeyboard;\n}();\n\n\n\n//# sourceURL=webpack://AVUE/./src/plugin/keyboard/mobile.js?");
5173
+ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"default\", function() { return MobileKeyboard; });\nfunction _typeof(obj) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && \"function\" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }, _typeof(obj); }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, \"prototype\", { writable: false }); return Constructor; }\n\nvar MobileKeyboard = /*#__PURE__*/function () {\n function MobileKeyboard(obj) {\n _classCallCheck(this, MobileKeyboard);\n\n if (_typeof(obj) !== 'object') {\n console.error('aKeyboard: The obj parameter needs to be an object <In \"new aKeyboard()\">');\n return;\n }\n\n this.obj = obj;\n var el = document.querySelector(obj.el);\n var keyboardStyle = '';\n\n if (_typeof(obj.style) === 'object') {\n for (var i in obj.style) {\n keyboardStyle += i + ': ' + obj.style[i] + ';';\n }\n }\n\n var html = '<div class=\"akeyboard-mobileKeyboard' + (obj.fixedBottomCenter ? ' akeyboard-keyboard-fixedBottomCenter' : '') + '\" style=\"' + keyboardStyle + '\">'; //init keys\n\n var numberKeys = [];\n\n for (var _i = 1; _i < 10; _i++) {\n numberKeys.push(_i.toString());\n }\n\n numberKeys.push('0');\n var keys = obj.keys || [['`'].concat(numberKeys).concat(['-', '=']), ['q', 'w', 'e', 'r', 't', 'y', 'u', 'i', 'o', 'p', '[', ']', '\\\\'], ['a', 's', 'd', 'f', 'g', 'h', 'j', 'k', 'l', ';', '\\''], ['⇧', 'z', 'x', 'c', 'v', 'b', 'n', 'm', ',', '.', '/', '⇦'], ['Space', 'Enter']];\n var thisKeys;\n var shiftKey = [];\n\n for (var _i2 = 0; _i2 < keys.length; _i2++) {\n shiftKey.push([]);\n thisKeys = keys[_i2];\n\n for (var a = 0; a < thisKeys.length; a++) {\n if (thisKeys[a].length === 1) {\n switch (thisKeys[a]) {\n case '`':\n shiftKey[_i2].push('~');\n\n continue;\n\n case '1':\n shiftKey[_i2].push('!');\n\n continue;\n\n case '2':\n shiftKey[_i2].push('@');\n\n continue;\n\n case '3':\n shiftKey[_i2].push('#');\n\n continue;\n\n case '4':\n shiftKey[_i2].push('$');\n\n continue;\n\n case '5':\n shiftKey[_i2].push('%');\n\n continue;\n\n case '6':\n shiftKey[_i2].push('^');\n\n continue;\n\n case '7':\n shiftKey[_i2].push('&');\n\n continue;\n\n case '8':\n shiftKey[_i2].push('*');\n\n continue;\n\n case '9':\n shiftKey[_i2].push('(');\n\n continue;\n\n case '0':\n shiftKey[_i2].push(')');\n\n continue;\n\n case '-':\n shiftKey[_i2].push('_');\n\n continue;\n\n case '=':\n shiftKey[_i2].push('+');\n\n continue;\n\n case '[':\n shiftKey[_i2].push('{');\n\n continue;\n\n case ']':\n shiftKey[_i2].push('}');\n\n continue;\n\n case '\\\\':\n shiftKey[_i2].push('|');\n\n continue;\n\n case ';':\n shiftKey[_i2].push(':');\n\n continue;\n\n case '\\'':\n shiftKey[_i2].push('\"');\n\n continue;\n\n case ',':\n shiftKey[_i2].push('<');\n\n continue;\n\n case '.':\n shiftKey[_i2].push('>');\n\n continue;\n\n case '/':\n shiftKey[_i2].push('?');\n\n continue;\n }\n\n shiftKey[_i2].push(thisKeys[a].toUpperCase());\n\n continue;\n }\n\n shiftKey[_i2].push(thisKeys[a]);\n }\n }\n\n for (var _i3 = 0; _i3 < keys.length; _i3++) {\n thisKeys = keys[_i3];\n html += '<div class=\"akeyboard-keyboard-innerKeys\">';\n\n for (var _a = 0; _a < thisKeys.length; _a++) {\n html += '<div class=\"akeyboard-mobileKeyboard-keys akeyboard-mobileKeyboard-keys-' + thisKeys[_a] + '\">' + thisKeys[_a] + '</div>';\n }\n\n html += '</div>';\n }\n\n html += '</div>';\n el.innerHTML = html;\n var containShift = false;\n keys.forEach(function (key) {\n if (key.includes(\"Shift\") || key.includes(\"⇧\")) {\n containShift = true;\n return;\n }\n }); //bind the shift\n\n if (containShift) {\n var elKeysEl = document.querySelectorAll(obj.el + ' .akeyboard-mobileKeyboard-keys-⇧');\n elKeysEl.forEach(function (el) {\n el.onclick = function () {\n if (!this.isShift) {\n //shift\n el.classList.add('akeyboard-mobileKeyboard-keys-focus');\n el.isShift = true;\n\n var _keysInnerEl = document.querySelectorAll(obj.el + ' .akeyboard-keyboard-innerKeys');\n\n var _thisEl;\n\n for (var _i4 = 0; _i4 < _keysInnerEl.length; _i4++) {\n _thisEl = _keysInnerEl[_i4];\n\n for (var _a2 = 0; _a2 < _thisEl.childNodes.length; _a2++) {\n _thisEl.childNodes[_a2].innerHTML = shiftKey[_i4][_a2];\n }\n }\n\n return;\n }\n\n el.isShift = false;\n el.classList.remove('akeyboard-mobileKeyboard-keys-focus');\n var keysInnerEl = document.querySelectorAll(obj.el + ' .akeyboard-keyboard-innerKeys');\n var thisEl;\n\n for (var _i5 = 0; _i5 < keysInnerEl.length; _i5++) {\n thisEl = keysInnerEl[_i5];\n\n for (var _a3 = 0; _a3 < thisEl.childNodes.length; _a3++) {\n thisEl.childNodes[_a3].innerHTML = keys[_i5][_a3];\n }\n }\n };\n });\n }\n }\n\n _createClass(MobileKeyboard, [{\n key: \"inputOn\",\n value: function inputOn(inputEle, type, fn, customClick) {\n if (typeof inputEle !== 'string') {\n console.error('aKeyboard: The inputEle parameter needs to be a string <In \"aKeyboard.inputOn()\">');\n return;\n }\n\n if (typeof type !== 'string') {\n console.error('aKeyboard: The type parameter needs to be a string <In \"aKeyboard.inputOn()\">');\n return;\n }\n\n var inputEl = document.querySelector(inputEle),\n elKeysEl = document.querySelectorAll(this.obj.el + ' .akeyboard-mobileKeyboard-keys');\n\n for (var i = 0; i < elKeysEl.length; i++) {\n switch (elKeysEl[i].innerHTML) {\n case '⇧':\n continue;\n\n case '⇦':\n elKeysEl[i].onclick = function () {\n inputEl[type] = inputEl[type].substr(0, inputEl[type].length - 1);\n fn('Delete', inputEl[type]);\n };\n\n continue;\n\n case 'Enter':\n elKeysEl[i].onclick = function () {\n inputEl[type] += '\\n';\n fn('Enter', inputEl[type]);\n };\n\n continue;\n\n case 'Space':\n elKeysEl[i].onclick = function () {\n inputEl[type] += ' ';\n fn('Space', inputEl[type]);\n };\n\n continue;\n }\n\n if (customClick && _typeof(customClick) == 'object' && Object.keys(customClick).length > 0 && customClick[elKeysEl[i].innerHTML]) {\n elKeysEl[i].onclick = customClick[elKeysEl[i].innerHTML];\n } else {\n elKeysEl[i].onclick = function () {\n inputEl[type] += this.innerText;\n fn(this.innerText, inputEl[type]);\n };\n }\n }\n }\n }, {\n key: \"onclick\",\n value: function onclick(btn, fn) {\n if (typeof btn !== 'string') {\n console.error('aKeyboard: The btn parameter needs to be a string <In \"aKeyboard.onclick()\">');\n return;\n }\n\n if (typeof fn !== 'function') {\n console.error('aKeyboard: The fn parameter needs to be a function <In \"aKeyboard.onclick()\">');\n return;\n }\n\n var elKeysEl = document.querySelector(this.obj.el + ' .akeyboard-mobileKeyboard-keys-' + btn);\n if (elKeysEl) elKeysEl.onclick = fn;else console.error(\"Can not find key: \" + btn);\n }\n }]);\n\n return MobileKeyboard;\n}();\n\n\n\n//# sourceURL=webpack://AVUE/./src/plugin/keyboard/mobile.js?");
5186
5174
 
5187
5175
  /***/ }),
5188
5176
 
@@ -5194,7 +5182,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) *
5194
5182
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
5195
5183
 
5196
5184
  "use strict";
5197
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"default\", function() { return NumberKeyboard; });\nfunction _typeof(obj) { \"@babel/helpers - typeof\"; if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }\n\nvar NumberKeyboard = /*#__PURE__*/function () {\n function NumberKeyboard(obj) {\n _classCallCheck(this, NumberKeyboard);\n\n if (_typeof(obj) !== 'object') {\n console.error('aKeyboard: The obj parameter needs to be an object <In \"new aKeyboard()\">');\n return;\n }\n\n this.obj = obj;\n var el = document.querySelector(obj.el);\n var keyboardStyle = '';\n\n if (_typeof(obj.style) === 'object') {\n for (var i in obj.style) {\n keyboardStyle += i + ': ' + obj.style[i] + ';';\n }\n }\n\n var html = '<div class=\"akeyboard-numberKeyboard' + (obj.fixedBottomCenter ? ' akeyboard-keyboard-fixedBottomCenter' : '') + '\" style=\"' + keyboardStyle + '\">'; // init keys\n\n html += '<div class=\"akeyboard-keyboard-innerKeys\">';\n\n for (var _i = 1; _i < 10; _i++) {\n html += '<div class=\"akeyboard-keyboard-keys akeyboard-keyboard-keys-' + _i + '\">' + _i + '</div>';\n\n if (_i % 3 === 0) {\n html += '</div><div class=\"akeyboard-keyboard-innerKeys\">';\n }\n }\n\n html += '<div class=\"akeyboard-keyboard-keys akeyboard-keyboard-keys-0\">0</div><div class=\"akeyboard-keyboard-keys akeyboard-keyboard-keys-Delete\">Delete</div></div><div class=\"akeyboard-keyboard-innerKeys\"><div class=\"akeyboard-keyboard-keys akeyboard-numberKeyboard-keys-Enter\">Enter</div></div>';\n html += '</div>';\n el.innerHTML = html;\n }\n\n _createClass(NumberKeyboard, [{\n key: \"inputOn\",\n value: function inputOn(inputEle, type, fn, customClick) {\n if (typeof inputEle !== 'string') {\n console.error('aKeyboard: The inputEle parameter needs to be a string <In \"aKeyboard.inputOn()\">');\n return;\n }\n\n if (typeof type !== 'string') {\n console.error('aKeyboard: The type parameter needs to be a string <In \"aKeyboard.inputOn()\">');\n return;\n }\n\n var inputEl = document.querySelector(inputEle),\n elKeysEl = document.querySelectorAll(this.obj.el + ' .akeyboard-keyboard-keys');\n\n for (var i = 0; i < elKeysEl.length; i++) {\n if (elKeysEl[i].innerHTML === 'Delete') {\n elKeysEl[i].onclick = function () {\n inputEl[type] = inputEl[type].substr(0, inputEl[type].length - 1);\n fn('Delete', inputEl[type]);\n };\n\n continue;\n }\n\n if (elKeysEl[i].innerHTML === 'Enter') {\n elKeysEl[i].onclick = function () {\n inputEl[type] += '\\n';\n fn('Enter', inputEl[type]);\n };\n\n continue;\n }\n\n if (customClick && _typeof(customClick) === 'object' && Object.keys(customClick).length > 0 && customClick[elKeysEl[i].innerHTML]) {\n elKeysEl[i].onclick = customClick[elKeysEl[i].innerHTML];\n } else {\n elKeysEl[i].onclick = function () {\n inputEl[type] += this.innerText;\n fn(this.innerText, inputEl[type]);\n };\n }\n }\n }\n }, {\n key: \"onclick\",\n value: function onclick(btn, fn) {\n if (typeof btn !== 'string') {\n console.error('aKeyboard: The btn parameter needs to be a string <In \"aKeyboard.onclick()\">');\n return;\n }\n\n if (typeof fn !== 'function') {\n console.error('aKeyboard: The fn parameter needs to be a function <In \"aKeyboard.onclick()\">');\n return;\n }\n\n var elKeysEl = document.querySelector(this.obj.el + ' .akeyboard-keyboard-keys-' + btn);\n if (elKeysEl) elKeysEl.onclick = fn;else console.error('Can not find key: ' + btn);\n }\n }]);\n\n return NumberKeyboard;\n}();\n\n\n\n//# sourceURL=webpack://AVUE/./src/plugin/keyboard/number.js?");
5185
+ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"default\", function() { return NumberKeyboard; });\nfunction _typeof(obj) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && \"function\" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }, _typeof(obj); }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, \"prototype\", { writable: false }); return Constructor; }\n\nvar NumberKeyboard = /*#__PURE__*/function () {\n function NumberKeyboard(obj) {\n _classCallCheck(this, NumberKeyboard);\n\n if (_typeof(obj) !== 'object') {\n console.error('aKeyboard: The obj parameter needs to be an object <In \"new aKeyboard()\">');\n return;\n }\n\n this.obj = obj;\n var el = document.querySelector(obj.el);\n var keyboardStyle = '';\n\n if (_typeof(obj.style) === 'object') {\n for (var i in obj.style) {\n keyboardStyle += i + ': ' + obj.style[i] + ';';\n }\n }\n\n var html = '<div class=\"akeyboard-numberKeyboard' + (obj.fixedBottomCenter ? ' akeyboard-keyboard-fixedBottomCenter' : '') + '\" style=\"' + keyboardStyle + '\">'; // init keys\n\n html += '<div class=\"akeyboard-keyboard-innerKeys\">';\n\n for (var _i = 1; _i < 10; _i++) {\n html += '<div class=\"akeyboard-keyboard-keys akeyboard-keyboard-keys-' + _i + '\">' + _i + '</div>';\n\n if (_i % 3 === 0) {\n html += '</div><div class=\"akeyboard-keyboard-innerKeys\">';\n }\n }\n\n html += '<div class=\"akeyboard-keyboard-keys akeyboard-keyboard-keys-0\">0</div><div class=\"akeyboard-keyboard-keys akeyboard-keyboard-keys-Delete\">Delete</div></div><div class=\"akeyboard-keyboard-innerKeys\"><div class=\"akeyboard-keyboard-keys akeyboard-numberKeyboard-keys-Enter\">Enter</div></div>';\n html += '</div>';\n el.innerHTML = html;\n }\n\n _createClass(NumberKeyboard, [{\n key: \"inputOn\",\n value: function inputOn(inputEle, type, fn, customClick) {\n if (typeof inputEle !== 'string') {\n console.error('aKeyboard: The inputEle parameter needs to be a string <In \"aKeyboard.inputOn()\">');\n return;\n }\n\n if (typeof type !== 'string') {\n console.error('aKeyboard: The type parameter needs to be a string <In \"aKeyboard.inputOn()\">');\n return;\n }\n\n var inputEl = document.querySelector(inputEle),\n elKeysEl = document.querySelectorAll(this.obj.el + ' .akeyboard-keyboard-keys');\n\n for (var i = 0; i < elKeysEl.length; i++) {\n if (elKeysEl[i].innerHTML === 'Delete') {\n elKeysEl[i].onclick = function () {\n inputEl[type] = inputEl[type].substr(0, inputEl[type].length - 1);\n fn('Delete', inputEl[type]);\n };\n\n continue;\n }\n\n if (elKeysEl[i].innerHTML === 'Enter') {\n elKeysEl[i].onclick = function () {\n inputEl[type] += '\\n';\n fn('Enter', inputEl[type]);\n };\n\n continue;\n }\n\n if (customClick && _typeof(customClick) === 'object' && Object.keys(customClick).length > 0 && customClick[elKeysEl[i].innerHTML]) {\n elKeysEl[i].onclick = customClick[elKeysEl[i].innerHTML];\n } else {\n elKeysEl[i].onclick = function () {\n inputEl[type] += this.innerText;\n fn(this.innerText, inputEl[type]);\n };\n }\n }\n }\n }, {\n key: \"onclick\",\n value: function onclick(btn, fn) {\n if (typeof btn !== 'string') {\n console.error('aKeyboard: The btn parameter needs to be a string <In \"aKeyboard.onclick()\">');\n return;\n }\n\n if (typeof fn !== 'function') {\n console.error('aKeyboard: The fn parameter needs to be a function <In \"aKeyboard.onclick()\">');\n return;\n }\n\n var elKeysEl = document.querySelector(this.obj.el + ' .akeyboard-keyboard-keys-' + btn);\n if (elKeysEl) elKeysEl.onclick = fn;else console.error('Can not find key: ' + btn);\n }\n }]);\n\n return NumberKeyboard;\n}();\n\n\n\n//# sourceURL=webpack://AVUE/./src/plugin/keyboard/number.js?");
5198
5186
 
5199
5187
  /***/ }),
5200
5188
 
@@ -5230,7 +5218,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var npro
5230
5218
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
5231
5219
 
5232
5220
  "use strict";
5233
- eval("__webpack_require__.r(__webpack_exports__);\nfunction _typeof(obj) { \"@babel/helpers - typeof\"; if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\n// 打印类属性、方法定义\n\n/* eslint-disable */\nvar Print = function Print(dom, options) {\n if (!(this instanceof Print)) return new Print(dom, options);\n this.options = this.extend({\n 'noPrint': '.no-print'\n }, options);\n\n if (typeof dom === \"string\") {\n this.dom = document.querySelector(dom);\n } else {\n this.isDOM(dom);\n this.dom = this.isDOM(dom) ? dom : dom.$el;\n }\n\n this.init();\n};\n\nPrint.prototype = {\n init: function init() {\n var content = this.getStyle() + this.getHtml();\n this.writeIframe(content);\n },\n extend: function extend(obj, obj2) {\n for (var k in obj2) {\n obj[k] = obj2[k];\n }\n\n return obj;\n },\n getStyle: function getStyle() {\n var str = \"\",\n styles = document.querySelectorAll('style,link');\n\n for (var i = 0; i < styles.length; i++) {\n str += styles[i].outerHTML;\n }\n\n str += \"<style>\" + (this.options.noPrint ? this.options.noPrint : '.no-print') + \"{display:none;}</style>\";\n return str;\n },\n getHtml: function getHtml() {\n var inputs = document.querySelectorAll('input');\n var textareas = document.querySelectorAll('textarea');\n var selects = document.querySelectorAll('select');\n\n for (var k = 0; k < inputs.length; k++) {\n if (inputs[k].type == \"checkbox\" || inputs[k].type == \"radio\") {\n if (inputs[k].checked == true) {\n inputs[k].setAttribute('checked', \"checked\");\n } else {\n inputs[k].removeAttribute('checked');\n }\n } else if (inputs[k].type == \"text\") {\n inputs[k].setAttribute('value', inputs[k].value);\n } else {\n inputs[k].setAttribute('value', inputs[k].value);\n }\n }\n\n for (var k2 = 0; k2 < textareas.length; k2++) {\n if (textareas[k2].type == 'textarea') {\n textareas[k2].innerHTML = textareas[k2].value;\n }\n }\n\n for (var k3 = 0; k3 < selects.length; k3++) {\n if (selects[k3].type == 'select-one') {\n var child = selects[k3].children;\n\n for (var i in child) {\n if (child[i].tagName == 'OPTION') {\n if (child[i].selected == true) {\n child[i].setAttribute('selected', \"selected\");\n } else {\n child[i].removeAttribute('selected');\n }\n }\n }\n }\n } // 包裹要打印的元素\n\n\n var outerHTML = this.wrapperRefDom(this.dom).outerHTML;\n return outerHTML;\n },\n // 向父级元素循环,包裹当前需要打印的元素\n // 防止根级别开头的 css 选择器不生效\n wrapperRefDom: function wrapperRefDom(refDom) {\n var prevDom = null;\n var currDom = refDom; // 判断当前元素是否在 body 中,不在文档中则直接返回该节点\n\n if (!this.isInBody(currDom)) return currDom;\n\n while (currDom) {\n if (prevDom) {\n var element = currDom.cloneNode(false);\n element.appendChild(prevDom);\n prevDom = element;\n } else {\n prevDom = currDom.cloneNode(true);\n }\n\n currDom = currDom.parentElement;\n }\n\n return prevDom;\n },\n writeIframe: function writeIframe(content) {\n var w,\n doc,\n iframe = document.createElement('iframe'),\n f = document.body.appendChild(iframe);\n iframe.id = \"myIframe\"; //iframe.style = \"position:absolute;width:0;height:0;top:-10px;left:-10px;\";\n\n iframe.setAttribute('style', 'position:absolute;width:0;height:0;top:-10px;left:-10px;');\n w = f.contentWindow || f.contentDocument;\n doc = f.contentDocument || f.contentWindow.document;\n doc.open();\n doc.write(content);\n doc.close();\n\n var _this = this;\n\n iframe.onload = function () {\n _this.toPrint(w);\n\n setTimeout(function () {\n document.body.removeChild(iframe);\n }, 100);\n };\n },\n toPrint: function toPrint(frameWindow) {\n try {\n setTimeout(function () {\n frameWindow.focus();\n\n try {\n if (!frameWindow.document.execCommand('print', false, null)) {\n frameWindow.print();\n }\n } catch (e) {\n frameWindow.print();\n }\n\n frameWindow.close();\n }, 10);\n } catch (err) {\n console.log('err', err);\n }\n },\n // 检查一个元素是否是 body 元素的后代元素且非 body 元素本身\n isInBody: function isInBody(node) {\n return node === document.body ? false : document.body.contains(node);\n },\n isDOM: (typeof HTMLElement === \"undefined\" ? \"undefined\" : _typeof(HTMLElement)) === 'object' ? function (obj) {\n return obj instanceof HTMLElement;\n } : function (obj) {\n return obj && _typeof(obj) === 'object' && obj.nodeType === 1 && typeof obj.nodeName === 'string';\n }\n};\n/* harmony default export */ __webpack_exports__[\"default\"] = (Print);\n\n//# sourceURL=webpack://AVUE/./src/plugin/print/index.js?");
5221
+ eval("__webpack_require__.r(__webpack_exports__);\nfunction _typeof(obj) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && \"function\" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }, _typeof(obj); }\n\n// 打印类属性、方法定义\n\n/* eslint-disable */\nvar Print = function Print(dom, options) {\n if (!(this instanceof Print)) return new Print(dom, options);\n this.options = this.extend({\n 'noPrint': '.no-print'\n }, options);\n\n if (typeof dom === \"string\") {\n this.dom = document.querySelector(dom);\n } else {\n this.isDOM(dom);\n this.dom = this.isDOM(dom) ? dom : dom.$el;\n }\n\n this.init();\n};\n\nPrint.prototype = {\n init: function init() {\n var content = this.getStyle() + this.getHtml();\n this.writeIframe(content);\n },\n extend: function extend(obj, obj2) {\n for (var k in obj2) {\n obj[k] = obj2[k];\n }\n\n return obj;\n },\n getStyle: function getStyle() {\n var str = \"\",\n styles = document.querySelectorAll('style,link');\n\n for (var i = 0; i < styles.length; i++) {\n str += styles[i].outerHTML;\n }\n\n str += \"<style>\" + (this.options.noPrint ? this.options.noPrint : '.no-print') + \"{display:none;}</style>\";\n return str;\n },\n getHtml: function getHtml() {\n var inputs = document.querySelectorAll('input');\n var textareas = document.querySelectorAll('textarea');\n var selects = document.querySelectorAll('select');\n\n for (var k = 0; k < inputs.length; k++) {\n if (inputs[k].type == \"checkbox\" || inputs[k].type == \"radio\") {\n if (inputs[k].checked == true) {\n inputs[k].setAttribute('checked', \"checked\");\n } else {\n inputs[k].removeAttribute('checked');\n }\n } else if (inputs[k].type == \"text\") {\n inputs[k].setAttribute('value', inputs[k].value);\n } else {\n inputs[k].setAttribute('value', inputs[k].value);\n }\n }\n\n for (var k2 = 0; k2 < textareas.length; k2++) {\n if (textareas[k2].type == 'textarea') {\n textareas[k2].innerHTML = textareas[k2].value;\n }\n }\n\n for (var k3 = 0; k3 < selects.length; k3++) {\n if (selects[k3].type == 'select-one') {\n var child = selects[k3].children;\n\n for (var i in child) {\n if (child[i].tagName == 'OPTION') {\n if (child[i].selected == true) {\n child[i].setAttribute('selected', \"selected\");\n } else {\n child[i].removeAttribute('selected');\n }\n }\n }\n }\n } // 包裹要打印的元素\n\n\n var outerHTML = this.wrapperRefDom(this.dom).outerHTML;\n return outerHTML;\n },\n // 向父级元素循环,包裹当前需要打印的元素\n // 防止根级别开头的 css 选择器不生效\n wrapperRefDom: function wrapperRefDom(refDom) {\n var prevDom = null;\n var currDom = refDom; // 判断当前元素是否在 body 中,不在文档中则直接返回该节点\n\n if (!this.isInBody(currDom)) return currDom;\n\n while (currDom) {\n if (prevDom) {\n var element = currDom.cloneNode(false);\n element.appendChild(prevDom);\n prevDom = element;\n } else {\n prevDom = currDom.cloneNode(true);\n }\n\n currDom = currDom.parentElement;\n }\n\n return prevDom;\n },\n writeIframe: function writeIframe(content) {\n var w,\n doc,\n iframe = document.createElement('iframe'),\n f = document.body.appendChild(iframe);\n iframe.id = \"myIframe\"; //iframe.style = \"position:absolute;width:0;height:0;top:-10px;left:-10px;\";\n\n iframe.setAttribute('style', 'position:absolute;width:0;height:0;top:-10px;left:-10px;');\n w = f.contentWindow || f.contentDocument;\n doc = f.contentDocument || f.contentWindow.document;\n doc.open();\n doc.write(content);\n doc.close();\n\n var _this = this;\n\n iframe.onload = function () {\n _this.toPrint(w);\n\n setTimeout(function () {\n document.body.removeChild(iframe);\n }, 100);\n };\n },\n toPrint: function toPrint(frameWindow) {\n try {\n setTimeout(function () {\n frameWindow.focus();\n\n try {\n if (!frameWindow.document.execCommand('print', false, null)) {\n frameWindow.print();\n }\n } catch (e) {\n frameWindow.print();\n }\n\n frameWindow.close();\n }, 10);\n } catch (err) {\n console.log('err', err);\n }\n },\n // 检查一个元素是否是 body 元素的后代元素且非 body 元素本身\n isInBody: function isInBody(node) {\n return node === document.body ? false : document.body.contains(node);\n },\n isDOM: (typeof HTMLElement === \"undefined\" ? \"undefined\" : _typeof(HTMLElement)) === 'object' ? function (obj) {\n return obj instanceof HTMLElement;\n } : function (obj) {\n return obj && _typeof(obj) === 'object' && obj.nodeType === 1 && typeof obj.nodeName === 'string';\n }\n};\n/* harmony default export */ __webpack_exports__[\"default\"] = (Print);\n\n//# sourceURL=webpack://AVUE/./src/plugin/print/index.js?");
5234
5222
 
5235
5223
  /***/ }),
5236
5224
 
@@ -5266,7 +5254,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var core
5266
5254
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
5267
5255
 
5268
5256
  "use strict";
5269
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"default\", function() { return RecordVideo; });\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }\n\nvar RecordVideo = /*#__PURE__*/function () {\n /**\n * 构造函数\n *\n * @param {Object} videoObj 视频对象\n */\n function RecordVideo(videoObj) {\n _classCallCheck(this, RecordVideo);\n\n this.video = videoObj;\n this.mediaRecorder = null;\n this.chunks = [];\n }\n /**\n * 初始化\n *\n * @return {Object} promise\n */\n\n\n _createClass(RecordVideo, [{\n key: \"init\",\n value: function init() {\n var _this = this;\n\n // 返回Promise对象\n // resolve 正常处理\n // reject 处理异常情况\n return new Promise(function (resovle, reject) {\n navigator.mediaDevices.getUserMedia({\n audio: true,\n video: true // video: {\n // width: this.videoWidth,\n // height: this.videoHeight\n // }\n\n }) // 返回一个媒体内容的流\n .then(function (stream) {\n // 检测是否支持 srcObject,该属性在新的浏览器支持\n if ('srcObject' in _this.video) {\n _this.video.srcObject = stream;\n } else {\n // 兼容旧的浏览器\n _this.video.src = window.URL.createObjectURL(stream);\n } // 当视频的元数据已经加载时触发\n\n\n _this.video.addEventListener('loadmetadata', function () {\n _this.video.play();\n });\n\n _this.mediaRecorder = new MediaRecorder(stream);\n\n _this.mediaRecorder.addEventListener('dataavailable', function (e) {\n _this.chunks.push(e.data);\n });\n\n resovle();\n }) // 异常抓取,包括用于禁用麦克风、摄像头\n [\"catch\"](function (error) {\n reject(error);\n });\n });\n }\n /**\n * 视频开始录制\n */\n\n }, {\n key: \"startRecord\",\n value: function startRecord() {\n if (this.mediaRecorder.state === 'inactive') {\n this.mediaRecorder.start();\n }\n }\n /**\n * 视频结束录制\n */\n\n }, {\n key: \"stopRecord\",\n value: function stopRecord() {\n if (this.mediaRecorder.state === 'recording') {\n this.mediaRecorder.stop();\n }\n }\n /**\n * 检测当前浏览器对否支持\n *\n * @return {boolean} 当前浏览器是否支持\n */\n\n }, {\n key: \"isSupport\",\n value: function isSupport() {\n var flag = navigator.mediaDevices && navigator.mediaDevices.getUserMedia;\n\n if (flag) {\n return true;\n }\n }\n }]);\n\n return RecordVideo;\n}();\n\n\n\n//# sourceURL=webpack://AVUE/./src/plugin/video/index.js?");
5257
+ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"default\", function() { return RecordVideo; });\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, \"prototype\", { writable: false }); return Constructor; }\n\nvar RecordVideo = /*#__PURE__*/function () {\n /**\n * 构造函数\n *\n * @param {Object} videoObj 视频对象\n */\n function RecordVideo(videoObj) {\n _classCallCheck(this, RecordVideo);\n\n this.video = videoObj;\n this.mediaRecorder = null;\n this.chunks = [];\n }\n /**\n * 初始化\n *\n * @return {Object} promise\n */\n\n\n _createClass(RecordVideo, [{\n key: \"init\",\n value: function init() {\n var _this = this;\n\n // 返回Promise对象\n // resolve 正常处理\n // reject 处理异常情况\n return new Promise(function (resovle, reject) {\n navigator.mediaDevices.getUserMedia({\n audio: true,\n video: true // video: {\n // width: this.videoWidth,\n // height: this.videoHeight\n // }\n\n }) // 返回一个媒体内容的流\n .then(function (stream) {\n // 检测是否支持 srcObject,该属性在新的浏览器支持\n if ('srcObject' in _this.video) {\n _this.video.srcObject = stream;\n } else {\n // 兼容旧的浏览器\n _this.video.src = window.URL.createObjectURL(stream);\n } // 当视频的元数据已经加载时触发\n\n\n _this.video.addEventListener('loadmetadata', function () {\n _this.video.play();\n });\n\n _this.mediaRecorder = new MediaRecorder(stream);\n\n _this.mediaRecorder.addEventListener('dataavailable', function (e) {\n _this.chunks.push(e.data);\n });\n\n resovle();\n }) // 异常抓取,包括用于禁用麦克风、摄像头\n [\"catch\"](function (error) {\n reject(error);\n });\n });\n }\n /**\n * 视频开始录制\n */\n\n }, {\n key: \"startRecord\",\n value: function startRecord() {\n if (this.mediaRecorder.state === 'inactive') {\n this.mediaRecorder.start();\n }\n }\n /**\n * 视频结束录制\n */\n\n }, {\n key: \"stopRecord\",\n value: function stopRecord() {\n if (this.mediaRecorder.state === 'recording') {\n this.mediaRecorder.stop();\n }\n }\n /**\n * 检测当前浏览器对否支持\n *\n * @return {boolean} 当前浏览器是否支持\n */\n\n }, {\n key: \"isSupport\",\n value: function isSupport() {\n var flag = navigator.mediaDevices && navigator.mediaDevices.getUserMedia;\n\n if (flag) {\n return true;\n }\n }\n }]);\n\n return RecordVideo;\n}();\n\n\n\n//# sourceURL=webpack://AVUE/./src/plugin/video/index.js?");
5270
5258
 
5271
5259
  /***/ }),
5272
5260
 
@@ -5326,7 +5314,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/**\r\n * bem helper\r\n * b(
5326
5314
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
5327
5315
 
5328
5316
  "use strict";
5329
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var core_packages__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! core/packages */ \"./src/core/packages.js\");\nfunction _typeof(obj) { \"@babel/helpers - typeof\"; if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (function (column, dic, defaultForm, run) {\n if (!run) return;\n\n if (!window.Mock) {\n core_packages__WEBPACK_IMPORTED_MODULE_0__[\"default\"].logs(\"mock\");\n return;\n }\n\n var mockjs = window.Mock;\n var Random = (mockjs || {}).Random;\n var form = {};\n\n function createName(_ref) {\n var en = _ref.en;\n\n if (en) {\n return Random.name(true);\n }\n\n return Random.cname();\n }\n\n function createNumber(_ref2) {\n var max = _ref2.max,\n min = _ref2.min,\n precision = _ref2.precision;\n\n if (precision) {\n var number = Random[\"float\"](min, max, precision) + '';\n var index = number.indexOf('.') + 1;\n return Number(number.substring(0, index + precision));\n } else {\n return Random.integer(min, max);\n }\n }\n\n function createUrl(_ref3) {\n var header = _ref3.header,\n footer = _ref3.footer;\n var url = Random.url();\n var index = url.indexOf('://');\n\n if (header === false) {\n url = url.substring(index + 3);\n } else {\n url = 'http://' + url.substring(index + 3);\n }\n\n return url;\n }\n\n function createDatetime(_ref4) {\n var format = _ref4.format,\n now = _ref4.now;\n\n if (now) {\n return Random.now(format);\n }\n\n return Random.datetime(format);\n }\n\n function createText(_ref5) {\n var min = _ref5.min,\n max = _ref5.max;\n return Random.csentence(min, max);\n }\n\n function createCounty() {\n return Random.county(true);\n }\n\n function createDic(_ref6) {\n var dic = _ref6.dic,\n props = _ref6.props,\n columnType = _ref6.columnType,\n multiple = _ref6.multiple;\n var value = props.value || 'value';\n var len = dic.length;\n\n if (['checkbox'].includes(columnType) || multiple) {\n var number = createNumber({\n min: 1,\n max: len\n });\n var result = [];\n\n for (var i = 0; i < number; i++) {\n var flag = true;\n\n while (flag) {\n var numbers = createNumber({\n min: 0,\n max: len - 1\n });\n var values = dic[numbers][value];\n\n if (!result.includes(values)) {\n result.push(values);\n flag = false;\n }\n }\n }\n\n return result;\n } else {\n var _number = createNumber({\n min: 0,\n max: len - 1\n });\n\n return dic[_number][value];\n }\n }\n\n function create() {\n Object.keys(column).forEach(function (index) {\n var ele = column[index];\n\n if (ele.mock && _typeof(ele.mock) === 'object') {\n var params = ele.mock;\n params.dic = typeof ele.dicData === 'string' ? dic[ele.dicData] : ele.dicData || [];\n params.props = ele.props || {};\n params.columnType = ele.type;\n params.multiple = ele.multiple;\n\n switch (params.type) {\n case 'name':\n form[ele.prop] = createName(params);\n break;\n\n case 'number':\n form[ele.prop] = createNumber(params);\n break;\n\n case 'datetime':\n form[ele.prop] = createDatetime(params);\n break;\n\n case 'word':\n form[ele.prop] = createText(params);\n break;\n\n case 'url':\n form[ele.prop] = createUrl(params);\n break;\n\n case 'county':\n form[ele.prop] = createCounty(params);\n break;\n\n case 'dic':\n form[ele.prop] = createDic(params);\n break;\n }\n } else if (ele.mock instanceof Function) {\n form[ele.prop] = ele.mock(defaultForm);\n }\n });\n }\n\n create();\n return form;\n});\n\n//# sourceURL=webpack://AVUE/./src/utils/mock.js?");
5317
+ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var core_packages__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! core/packages */ \"./src/core/packages.js\");\nfunction _typeof(obj) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && \"function\" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }, _typeof(obj); }\n\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (function (column, dic, defaultForm, run) {\n if (!run) return;\n\n if (!window.Mock) {\n core_packages__WEBPACK_IMPORTED_MODULE_0__[\"default\"].logs(\"mock\");\n return;\n }\n\n var mockjs = window.Mock;\n var Random = (mockjs || {}).Random;\n var form = {};\n\n function createName(_ref) {\n var en = _ref.en;\n\n if (en) {\n return Random.name(true);\n }\n\n return Random.cname();\n }\n\n function createNumber(_ref2) {\n var max = _ref2.max,\n min = _ref2.min,\n precision = _ref2.precision;\n\n if (precision) {\n var number = Random[\"float\"](min, max, precision) + '';\n var index = number.indexOf('.') + 1;\n return Number(number.substring(0, index + precision));\n } else {\n return Random.integer(min, max);\n }\n }\n\n function createUrl(_ref3) {\n var header = _ref3.header,\n footer = _ref3.footer;\n var url = Random.url();\n var index = url.indexOf('://');\n\n if (header === false) {\n url = url.substring(index + 3);\n } else {\n url = 'http://' + url.substring(index + 3);\n }\n\n return url;\n }\n\n function createDatetime(_ref4) {\n var format = _ref4.format,\n now = _ref4.now;\n\n if (now) {\n return Random.now(format);\n }\n\n return Random.datetime(format);\n }\n\n function createText(_ref5) {\n var min = _ref5.min,\n max = _ref5.max;\n return Random.csentence(min, max);\n }\n\n function createCounty() {\n return Random.county(true);\n }\n\n function createDic(_ref6) {\n var dic = _ref6.dic,\n props = _ref6.props,\n columnType = _ref6.columnType,\n multiple = _ref6.multiple;\n var value = props.value || 'value';\n var len = dic.length;\n\n if (['checkbox'].includes(columnType) || multiple) {\n var number = createNumber({\n min: 1,\n max: len\n });\n var result = [];\n\n for (var i = 0; i < number; i++) {\n var flag = true;\n\n while (flag) {\n var numbers = createNumber({\n min: 0,\n max: len - 1\n });\n var values = dic[numbers][value];\n\n if (!result.includes(values)) {\n result.push(values);\n flag = false;\n }\n }\n }\n\n return result;\n } else {\n var _number = createNumber({\n min: 0,\n max: len - 1\n });\n\n return dic[_number][value];\n }\n }\n\n function create() {\n Object.keys(column).forEach(function (index) {\n var ele = column[index];\n\n if (ele.mock && _typeof(ele.mock) === 'object') {\n var params = ele.mock;\n params.dic = typeof ele.dicData === 'string' ? dic[ele.dicData] : ele.dicData || [];\n params.props = ele.props || {};\n params.columnType = ele.type;\n params.multiple = ele.multiple;\n\n switch (params.type) {\n case 'name':\n form[ele.prop] = createName(params);\n break;\n\n case 'number':\n form[ele.prop] = createNumber(params);\n break;\n\n case 'datetime':\n form[ele.prop] = createDatetime(params);\n break;\n\n case 'word':\n form[ele.prop] = createText(params);\n break;\n\n case 'url':\n form[ele.prop] = createUrl(params);\n break;\n\n case 'county':\n form[ele.prop] = createCounty(params);\n break;\n\n case 'dic':\n form[ele.prop] = createDic(params);\n break;\n }\n } else if (ele.mock instanceof Function) {\n form[ele.prop] = ele.mock(defaultForm);\n }\n });\n }\n\n create();\n return form;\n});\n\n//# sourceURL=webpack://AVUE/./src/utils/mock.js?");
5330
5318
 
5331
5319
  /***/ }),
5332
5320
 
@@ -5338,7 +5326,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var core
5338
5326
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
5339
5327
 
5340
5328
  "use strict";
5341
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"getFixed\", function() { return getFixed; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"getAsVal\", function() { return getAsVal; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"setAsVal\", function() { return setAsVal; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"loadScript\", function() { return loadScript; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"downFile\", function() { return downFile; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"strCorNum\", function() { return strCorNum; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"extend\", function() { return extend; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"createObj\", function() { return createObj; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"dataURLtoFile\", function() { return dataURLtoFile; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"findObject\", function() { return findObject; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"randomId\", function() { return randomId; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"getObjType\", function() { return getObjType; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"isJson\", function() { return isJson; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"deepClone\", function() { return deepClone; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"sortArrys\", function() { return sortArrys; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"setPx\", function() { return setPx; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"detailDataType\", function() { return detailDataType; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"getUrlParams\", function() { return getUrlParams; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"detailDic\", function() { return detailDic; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"findByValue\", function() { return findByValue; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"filterDefaultParams\", function() { return filterDefaultParams; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"detailDicGroup\", function() { return detailDicGroup; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"findLabelNode\", function() { return findLabelNode; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"getDeepData\", function() { return getDeepData; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"getObjValue\", function() { return getObjValue; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"findArray\", function() { return findArray; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"getPasswordChar\", function() { return getPasswordChar; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"arraySort\", function() { return arraySort; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"clearVal\", function() { return clearVal; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"vaildData\", function() { return vaildData; });\n/* harmony import */ var _validate__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./validate */ \"./src/utils/validate.js\");\n/* harmony import */ var global_variable__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! global/variable */ \"./src/global/variable.js\");\nfunction _typeof(obj) { \"@babel/helpers - typeof\"; if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\n\n\nfunction getFixed() {\n var val = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 0;\n var len = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 2;\n return Number(val.toFixed(len));\n}\nfunction getAsVal(obj) {\n var bind = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '';\n var result = deepClone(obj);\n if (Object(_validate__WEBPACK_IMPORTED_MODULE_0__[\"validatenull\"])(bind)) return result;\n bind.split('.').forEach(function (ele) {\n result = !Object(_validate__WEBPACK_IMPORTED_MODULE_0__[\"validatenull\"])(result[ele]) ? result[ele] : '';\n });\n return result;\n}\nfunction setAsVal(obj) {\n var bind = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '';\n var value = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : '';\n eval('obj.' + bind + '=`' + value + '`');\n return obj;\n}\nvar loadScript = function loadScript() {\n var type = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'js';\n var url = arguments.length > 1 ? arguments[1] : undefined;\n var flag = false;\n return new Promise(function (resolve) {\n var head = document.getElementsByTagName('head')[0];\n head.children.forEach(function (ele) {\n if ((ele.src || '').indexOf(url) !== -1) {\n flag = true;\n resolve();\n }\n });\n if (flag) return;\n var script;\n\n if (type === 'js') {\n script = document.createElement('script');\n script.type = 'text/javascript';\n script.src = url;\n } else if (type === 'css') {\n script = document.createElement('link');\n script.rel = 'stylesheet';\n script.type = 'text/css';\n script.href = url;\n }\n\n head.appendChild(script);\n\n script.onload = function () {\n resolve();\n };\n });\n};\nfunction downFile(url, saveName) {\n if (_typeof(url) == 'object' && url instanceof Blob) {\n url = URL.createObjectURL(url); // 创建blob地址\n }\n\n var aLink = document.createElement('a');\n aLink.href = url;\n aLink.download = saveName || ''; // HTML5新增的属性,指定保存文件名,可以不要后缀,注意,file:///模式下不会生效\n\n var event;\n\n if (window.MouseEvent) {\n event = new MouseEvent('click');\n } else {\n event = document.createEvent('MouseEvents');\n event.initMouseEvent('click', true, false, window, 0, 0, 0, 0, 0, false, false, false, false, 0, null);\n }\n\n aLink.dispatchEvent(event);\n}\nfunction strCorNum(list) {\n list.forEach(function (ele, index) {\n list[index] = Number(ele);\n });\n return list;\n}\nfunction extend() {\n var target = arguments[0] || {};\n var deep = false;\n var arr = Array.prototype.slice.call(arguments);\n var i = 1;\n var options, src, key, copy;\n var isArray = false;\n\n if (typeof target === 'boolean') {\n deep = target;\n i++;\n target = arguments[1];\n }\n\n for (; i < arr.length; i++) {\n // 循环传入的对象数组\n if ((options = arr[i]) != null) {\n // 如果当前值不是null,如果是null不做处理\n for (key in options) {\n // for in循环对象中key\n copy = options[key];\n src = target[key]; // 如果对象中value值任然是一个引用类型\n\n if (deep && (toString.call(copy) === '[object Object]' || (isArray = toString.call(copy) == '[object Array]'))) {\n if (isArray) {\n // 如果引用类型是数组\n // 如果目标对象target存在当前key,且数据类型是数组,那就还原此值,如果不是就定义成一个空数组;\n src = toString.call(src) === '[object Array]' ? src : [];\n } else {\n // 如果目标对象target存在当前key,且数据类型是对象,那就还原此值,如果不是就定义成一个空对象;\n src = toString.call(src) === '[object Object]' ? src : {};\n } // 引用类型就再次调用extend,递归,直到此时copy是一个基本类型的值。\n\n\n target[key] = extend(deep, src, copy);\n } else if (copy !== undefined && copy !== src) {\n // 如果这个值是基本值类型,且不是undefined\n target[key] = copy;\n }\n }\n }\n }\n\n return target;\n}\nfunction createObj(obj, bind) {\n var list = bind.split('.');\n var first = list.splice(0, 1)[0];\n var deep = {};\n deep[first] = {};\n\n if (list.length >= 2) {\n var start = '{';\n var end = '}';\n var result = '';\n list.forEach(function (ele) {\n result = \"\".concat(result).concat(start, \"\\\"\").concat(ele, \"\\\":\");\n });\n result = \"\".concat(result, \"\\\"\\\"\");\n\n for (var i = 0; i < list.length; i++) {\n result = \"\".concat(result).concat(end);\n }\n\n result = JSON.parse(result);\n deep[first] = result;\n }\n\n obj = extend(true, obj, deep);\n return obj;\n}\nfunction dataURLtoFile(dataurl, filename) {\n var arr = dataurl.split(',');\n var mime = arr[0].match(/:(.*?);/)[1];\n var bstr = atob(arr[1]);\n var n = bstr.length;\n var u8arr = new Uint8Array(n);\n\n while (n--) {\n u8arr[n] = bstr.charCodeAt(n);\n }\n\n return new File([u8arr], filename, {\n type: mime\n });\n}\nfunction findObject(list, value) {\n var key = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 'prop';\n var result = -1;\n\n var type = function () {\n var result;\n list.forEach(function (ele) {\n if (ele.column) {\n result = 'group';\n } else if (ele.children) {\n result = 'tree';\n }\n });\n return result;\n }();\n\n if (type === 'group') {\n list.forEach(function (ele) {\n var val = findArray(ele.column, value, key, true);\n if (val !== -1) result = val;\n });\n } else if (type === 'tree') {\n result = findLabelNode(list, value, {\n value: key\n }, true);\n } else {\n result = findArray(list, value, key, true);\n }\n\n return result;\n}\n/**\r\n * 生成随机数\r\n */\n\nfunction randomId() {\n var $chars = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz';\n var maxPos = $chars.length;\n var id = '';\n\n for (var i = 0; i < 16; i++) {\n id += $chars.charAt(Math.floor(Math.random() * maxPos));\n }\n\n return id;\n}\nvar getObjType = function getObjType(obj) {\n var toString = Object.prototype.toString;\n var map = {\n '[object Boolean]': 'boolean',\n '[object Number]': 'number',\n '[object String]': 'string',\n '[object Function]': 'function',\n '[object Array]': 'array',\n '[object Date]': 'date',\n '[object RegExp]': 'regExp',\n '[object Undefined]': 'undefined',\n '[object Null]': 'null',\n '[object Object]': 'object'\n };\n\n if (obj instanceof Element) {\n return 'element';\n }\n\n return map[toString.call(obj)];\n};\n/**\r\n *判断是否为json对象\r\n */\n\nvar isJson = function isJson(str) {\n if (Array.isArray(str)) {\n if (str[0] instanceof Object) {\n return true;\n } else {\n return false;\n }\n } else if (str instanceof Object) {\n return true;\n }\n\n return false;\n};\n/**\r\n * 对象深拷贝\r\n */\n\nvar deepClone = function deepClone(data) {\n var type = getObjType(data);\n var obj;\n if (type === 'array') obj = [];else if (type === 'object') obj = {};else return data;\n\n if (type === 'array') {\n for (var i = 0, len = data.length; i < len; i++) {\n data[i] = function () {\n if (data[i] === 0) {\n return data[i];\n }\n\n return data[i];\n }();\n\n if (data[i]) {\n delete data[i].$parent;\n }\n\n obj.push(deepClone(data[i]));\n }\n } else if (type === 'object') {\n for (var key in data) {\n if (data) {\n delete data.$parent;\n }\n\n obj[key] = deepClone(data[key]);\n }\n }\n\n return obj;\n};\n/**\r\n * 根据字段数组排序\r\n */\n\nvar sortArrys = function sortArrys(list, prop) {\n list.sort(function (a, b) {\n if (a[prop] > b[prop]) {\n return -1;\n }\n\n if (a[prop] < b[prop]) {\n return 1;\n }\n\n return 0;\n });\n return list;\n};\n/**\r\n * 设置px像素\r\n */\n\nvar setPx = function setPx(val) {\n var defval = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '';\n if (Object(_validate__WEBPACK_IMPORTED_MODULE_0__[\"validatenull\"])(val)) val = defval;\n if (Object(_validate__WEBPACK_IMPORTED_MODULE_0__[\"validatenull\"])(val)) return '';\n val = val + '';\n\n if (val.indexOf('%') === -1) {\n val = val + 'px';\n }\n\n return val;\n};\n/**\r\n * 字符串数据类型转化\r\n */\n\nvar detailDataType = function detailDataType(value, type) {\n if (Object(_validate__WEBPACK_IMPORTED_MODULE_0__[\"validatenull\"])(value)) return value;\n\n if (type === 'number') {\n return Number(value);\n } else if (type === 'string') {\n return value + '';\n } else {\n return value;\n }\n}; // 获取url中的参数\n\nvar getUrlParams = function getUrlParams(url) {\n var result = {\n url: '',\n params: {}\n };\n var list = url.split('?');\n result.url = list[0];\n var params = list[1];\n\n if (params) {\n var _list = params.split('&');\n\n _list.forEach(function (ele) {\n var dic = ele.split('=');\n var label = dic[0];\n var value = dic[1];\n result.params[label] = value;\n });\n }\n\n return result;\n};\n/**\r\n * 数组的数据类型转化\r\n */\n\nvar detailDic = function detailDic() {\n var list = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];\n var props = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n var type = arguments.length > 2 ? arguments[2] : undefined;\n var valueKey = props.value || global_variable__WEBPACK_IMPORTED_MODULE_1__[\"DIC_PROPS\"].value;\n var childrenKey = props.children || global_variable__WEBPACK_IMPORTED_MODULE_1__[\"DIC_PROPS\"].children;\n list.forEach(function (ele) {\n ele[valueKey] = detailDataType(ele[valueKey], type);\n if (ele[childrenKey]) detailDic(ele[childrenKey], props, type);\n });\n return list;\n};\n/**\r\n * 根据字典的value显示label\r\n */\n\nvar findByValue = function findByValue(dic, value, props) {\n // 如果为空直接返回\n if (Object(_validate__WEBPACK_IMPORTED_MODULE_0__[\"validatenull\"])(dic)) return value;\n var result = '';\n var isArray = value instanceof Array;\n var list = isArray ? value : [value];\n props = props || global_variable__WEBPACK_IMPORTED_MODULE_1__[\"DIC_PROPS\"];\n result = [];\n\n for (var i = 0; i < list.length; i++) {\n result.push(findLabelNode(dic, list[i], props) || list[i]);\n }\n\n if (isArray) {\n return result.join(global_variable__WEBPACK_IMPORTED_MODULE_1__[\"DIC_SHOW_SPLIT\"]).toString();\n }\n\n return result.join();\n};\n/**\r\n * 过滤字典翻译字段和空字段\r\n */\n\nvar filterDefaultParams = function filterDefaultParams(form) {\n var translate = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;\n var data = deepClone(form);\n if (translate) return data;\n\n for (var o in data) {\n if (o.indexOf('$') !== -1 || Object(_validate__WEBPACK_IMPORTED_MODULE_0__[\"validatenull\"])(data[o])) {\n delete data[o];\n }\n }\n\n return data;\n};\n/**\r\n * 处理存在group分组的情况\r\n */\n\nvar detailDicGroup = function detailDicGroup() {\n var dic = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];\n var props = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n var list = deepClone(dic);\n var groupsKey = props[global_variable__WEBPACK_IMPORTED_MODULE_1__[\"DIC_PROPS\"].groups] || global_variable__WEBPACK_IMPORTED_MODULE_1__[\"DIC_PROPS\"].groups;\n dic.forEach(function (ele) {\n if (ele[groupsKey]) {\n list = list.concat(ele[groupsKey]);\n }\n });\n return list;\n};\n/**\r\n * 根据label去找到节点\r\n */\n\nvar findLabelNode = function findLabelNode(dic, value, props, obj) {\n var result;\n if (!obj) dic = detailDicGroup(dic, props);\n\n var rev = function rev(dic1) {\n var labelKey = props.label || global_variable__WEBPACK_IMPORTED_MODULE_1__[\"DIC_PROPS\"].label;\n var valueKey = props.value || global_variable__WEBPACK_IMPORTED_MODULE_1__[\"DIC_PROPS\"].value;\n var childrenKey = props.children || global_variable__WEBPACK_IMPORTED_MODULE_1__[\"DIC_PROPS\"].children;\n\n for (var i = 0; i < dic1.length; i++) {\n var ele = dic1[i];\n var children = ele[childrenKey] || [];\n\n if (ele[valueKey] === value) {\n result = obj ? ele : ele[labelKey];\n } else {\n rev(children);\n }\n }\n };\n\n rev(dic);\n return result;\n};\n/**\r\n * 获取多层data\r\n */\n\nvar getDeepData = function getDeepData(res) {\n return (Array.isArray(res) ? res : res.data) || [];\n};\nvar getObjValue = function getObjValue(data) {\n var params = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '';\n var type = arguments.length > 2 ? arguments[2] : undefined;\n var list = params.split('.');\n var result = data;\n\n if (list[0] === '' && type !== 'object') {\n return getDeepData(data);\n } else if (list[0] !== '') {\n list.forEach(function (ele) {\n result = result[ele];\n });\n }\n\n return result;\n};\n/**\r\n * 根据值查找对应的序号\r\n */\n\nvar findArray = function findArray(dic, value, valueKey, obj) {\n valueKey = valueKey || global_variable__WEBPACK_IMPORTED_MODULE_1__[\"DIC_PROPS\"].value;\n\n for (var i = 0; i < dic.length; i++) {\n if (dic[i][valueKey] === value) {\n return obj ? dic[i] : i;\n }\n }\n\n return -1;\n};\n/**\r\n * 根据位数获取*密码程度\r\n */\n\nvar getPasswordChar = function getPasswordChar() {\n var result = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';\n\n var _char = arguments.length > 1 ? arguments[1] : undefined;\n\n var len = result.toString().length;\n result = '';\n\n for (var i = 0; i < len; i++) {\n result = result + _char;\n }\n\n return result;\n};\nvar arraySort = function arraySort() {\n var list = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];\n var prop = arguments.length > 1 ? arguments[1] : undefined;\n var callback = arguments.length > 2 ? arguments[2] : undefined;\n return list.filter(function (ele) {\n return !Object(_validate__WEBPACK_IMPORTED_MODULE_0__[\"validatenull\"])(ele[prop]);\n }).sort(function (a, b) {\n return callback(a, b);\n }).concat(list.filter(function (ele) {\n return Object(_validate__WEBPACK_IMPORTED_MODULE_0__[\"validatenull\"])(ele[prop]);\n }));\n};\nvar clearVal = function clearVal(obj) {\n var list = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : [];\n if (!obj) return {};\n Object.keys(obj).forEach(function (ele) {\n if (list.includes(ele)) return;else if (ele.includes('$')) delete obj[ele];else if (!Object(_validate__WEBPACK_IMPORTED_MODULE_0__[\"validatenull\"])(obj[ele])) {\n var type = getObjType(obj[ele]);\n if (type === 'array') obj[ele] = [];else if (type === 'object') obj[ele] = {};else if (['number', 'boolean'].includes(type)) obj[ele] = undefined;else obj[ele] = '';\n }\n });\n return obj;\n};\n/**\r\n * 验证是否存在true/false\r\n */\n\nvar vaildData = function vaildData(val, dafult) {\n if (typeof val === 'boolean') {\n return val;\n }\n\n return !Object(_validate__WEBPACK_IMPORTED_MODULE_0__[\"validatenull\"])(val) ? val : dafult;\n};\n\n//# sourceURL=webpack://AVUE/./src/utils/util.js?");
5329
+ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"getFixed\", function() { return getFixed; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"getAsVal\", function() { return getAsVal; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"setAsVal\", function() { return setAsVal; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"loadScript\", function() { return loadScript; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"downFile\", function() { return downFile; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"strCorNum\", function() { return strCorNum; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"extend\", function() { return extend; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"createObj\", function() { return createObj; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"dataURLtoFile\", function() { return dataURLtoFile; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"findObject\", function() { return findObject; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"randomId\", function() { return randomId; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"getObjType\", function() { return getObjType; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"isJson\", function() { return isJson; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"deepClone\", function() { return deepClone; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"sortArrys\", function() { return sortArrys; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"setPx\", function() { return setPx; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"detailDataType\", function() { return detailDataType; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"getUrlParams\", function() { return getUrlParams; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"detailDic\", function() { return detailDic; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"findByValue\", function() { return findByValue; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"filterDefaultParams\", function() { return filterDefaultParams; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"detailDicGroup\", function() { return detailDicGroup; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"findLabelNode\", function() { return findLabelNode; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"getDeepData\", function() { return getDeepData; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"getObjValue\", function() { return getObjValue; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"findArray\", function() { return findArray; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"getPasswordChar\", function() { return getPasswordChar; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"arraySort\", function() { return arraySort; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"clearVal\", function() { return clearVal; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"vaildData\", function() { return vaildData; });\n/* harmony import */ var _validate__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./validate */ \"./src/utils/validate.js\");\n/* harmony import */ var global_variable__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! global/variable */ \"./src/global/variable.js\");\nfunction _typeof(obj) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && \"function\" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }, _typeof(obj); }\n\n\n\nfunction getFixed() {\n var val = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 0;\n var len = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 2;\n return Number(val.toFixed(len));\n}\nfunction getAsVal(obj) {\n var bind = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '';\n var result = deepClone(obj);\n if (Object(_validate__WEBPACK_IMPORTED_MODULE_0__[\"validatenull\"])(bind)) return result;\n bind.split('.').forEach(function (ele) {\n result = !Object(_validate__WEBPACK_IMPORTED_MODULE_0__[\"validatenull\"])(result[ele]) ? result[ele] : '';\n });\n return result;\n}\nfunction setAsVal(obj) {\n var bind = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '';\n var value = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : '';\n eval('obj.' + bind + '=`' + value + '`');\n return obj;\n}\nvar loadScript = function loadScript() {\n var type = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'js';\n var url = arguments.length > 1 ? arguments[1] : undefined;\n var flag = false;\n return new Promise(function (resolve) {\n var head = document.getElementsByTagName('head')[0];\n head.children.forEach(function (ele) {\n if ((ele.src || '').indexOf(url) !== -1) {\n flag = true;\n resolve();\n }\n });\n if (flag) return;\n var script;\n\n if (type === 'js') {\n script = document.createElement('script');\n script.type = 'text/javascript';\n script.src = url;\n } else if (type === 'css') {\n script = document.createElement('link');\n script.rel = 'stylesheet';\n script.type = 'text/css';\n script.href = url;\n }\n\n head.appendChild(script);\n\n script.onload = function () {\n resolve();\n };\n });\n};\nfunction downFile(url, saveName) {\n if (_typeof(url) == 'object' && url instanceof Blob) {\n url = URL.createObjectURL(url); // 创建blob地址\n }\n\n var aLink = document.createElement('a');\n aLink.href = url;\n aLink.download = saveName || ''; // HTML5新增的属性,指定保存文件名,可以不要后缀,注意,file:///模式下不会生效\n\n var event;\n\n if (window.MouseEvent) {\n event = new MouseEvent('click');\n } else {\n event = document.createEvent('MouseEvents');\n event.initMouseEvent('click', true, false, window, 0, 0, 0, 0, 0, false, false, false, false, 0, null);\n }\n\n aLink.dispatchEvent(event);\n}\nfunction strCorNum(list) {\n list.forEach(function (ele, index) {\n list[index] = Number(ele);\n });\n return list;\n}\nfunction extend() {\n var target = arguments[0] || {};\n var deep = false;\n var arr = Array.prototype.slice.call(arguments);\n var i = 1;\n var options, src, key, copy;\n var isArray = false;\n\n if (typeof target === 'boolean') {\n deep = target;\n i++;\n target = arguments[1];\n }\n\n for (; i < arr.length; i++) {\n // 循环传入的对象数组\n if ((options = arr[i]) != null) {\n // 如果当前值不是null,如果是null不做处理\n for (key in options) {\n // for in循环对象中key\n copy = options[key];\n src = target[key]; // 如果对象中value值任然是一个引用类型\n\n if (deep && (toString.call(copy) === '[object Object]' || (isArray = toString.call(copy) == '[object Array]'))) {\n if (isArray) {\n // 如果引用类型是数组\n // 如果目标对象target存在当前key,且数据类型是数组,那就还原此值,如果不是就定义成一个空数组;\n src = toString.call(src) === '[object Array]' ? src : [];\n } else {\n // 如果目标对象target存在当前key,且数据类型是对象,那就还原此值,如果不是就定义成一个空对象;\n src = toString.call(src) === '[object Object]' ? src : {};\n } // 引用类型就再次调用extend,递归,直到此时copy是一个基本类型的值。\n\n\n target[key] = extend(deep, src, copy);\n } else if (copy !== undefined && copy !== src) {\n // 如果这个值是基本值类型,且不是undefined\n target[key] = copy;\n }\n }\n }\n }\n\n return target;\n}\nfunction createObj(obj, bind) {\n var list = bind.split('.');\n var first = list.splice(0, 1)[0];\n var deep = {};\n deep[first] = {};\n\n if (list.length >= 2) {\n var start = '{';\n var end = '}';\n var result = '';\n list.forEach(function (ele) {\n result = \"\".concat(result).concat(start, \"\\\"\").concat(ele, \"\\\":\");\n });\n result = \"\".concat(result, \"\\\"\\\"\");\n\n for (var i = 0; i < list.length; i++) {\n result = \"\".concat(result).concat(end);\n }\n\n result = JSON.parse(result);\n deep[first] = result;\n }\n\n obj = extend(true, obj, deep);\n return obj;\n}\nfunction dataURLtoFile(dataurl, filename) {\n var arr = dataurl.split(',');\n var mime = arr[0].match(/:(.*?);/)[1];\n var bstr = atob(arr[1]);\n var n = bstr.length;\n var u8arr = new Uint8Array(n);\n\n while (n--) {\n u8arr[n] = bstr.charCodeAt(n);\n }\n\n return new File([u8arr], filename, {\n type: mime\n });\n}\nfunction findObject(list, value) {\n var key = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 'prop';\n var result = -1;\n\n var type = function () {\n var result;\n list.forEach(function (ele) {\n if (ele.column) {\n result = 'group';\n } else if (ele.children) {\n result = 'tree';\n }\n });\n return result;\n }();\n\n if (type === 'group') {\n list.forEach(function (ele) {\n var val = findArray(ele.column, value, key, true);\n if (val !== -1) result = val;\n });\n } else if (type === 'tree') {\n result = findLabelNode(list, value, {\n value: key\n }, true);\n } else {\n result = findArray(list, value, key, true);\n }\n\n return result;\n}\n/**\r\n * 生成随机数\r\n */\n\nfunction randomId() {\n var $chars = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz';\n var maxPos = $chars.length;\n var id = '';\n\n for (var i = 0; i < 16; i++) {\n id += $chars.charAt(Math.floor(Math.random() * maxPos));\n }\n\n return id;\n}\nvar getObjType = function getObjType(obj) {\n var toString = Object.prototype.toString;\n var map = {\n '[object Boolean]': 'boolean',\n '[object Number]': 'number',\n '[object String]': 'string',\n '[object Function]': 'function',\n '[object Array]': 'array',\n '[object Date]': 'date',\n '[object RegExp]': 'regExp',\n '[object Undefined]': 'undefined',\n '[object Null]': 'null',\n '[object Object]': 'object'\n };\n\n if (obj instanceof Element) {\n return 'element';\n }\n\n return map[toString.call(obj)];\n};\n/**\r\n *判断是否为json对象\r\n */\n\nvar isJson = function isJson(str) {\n if (Array.isArray(str)) {\n if (str[0] instanceof Object) {\n return true;\n } else {\n return false;\n }\n } else if (str instanceof Object) {\n return true;\n }\n\n return false;\n};\n/**\r\n * 对象深拷贝\r\n */\n\nvar deepClone = function deepClone(data) {\n var type = getObjType(data);\n var obj;\n if (type === 'array') obj = [];else if (type === 'object') obj = {};else return data;\n\n if (type === 'array') {\n for (var i = 0, len = data.length; i < len; i++) {\n data[i] = function () {\n if (data[i] === 0) {\n return data[i];\n }\n\n return data[i];\n }();\n\n if (data[i]) {\n delete data[i].$parent;\n }\n\n obj.push(deepClone(data[i]));\n }\n } else if (type === 'object') {\n for (var key in data) {\n if (data) {\n delete data.$parent;\n }\n\n obj[key] = deepClone(data[key]);\n }\n }\n\n return obj;\n};\n/**\r\n * 根据字段数组排序\r\n */\n\nvar sortArrys = function sortArrys(list, prop) {\n list.sort(function (a, b) {\n if (a[prop] > b[prop]) {\n return -1;\n }\n\n if (a[prop] < b[prop]) {\n return 1;\n }\n\n return 0;\n });\n return list;\n};\n/**\r\n * 设置px像素\r\n */\n\nvar setPx = function setPx(val) {\n var defval = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '';\n if (Object(_validate__WEBPACK_IMPORTED_MODULE_0__[\"validatenull\"])(val)) val = defval;\n if (Object(_validate__WEBPACK_IMPORTED_MODULE_0__[\"validatenull\"])(val)) return '';\n val = val + '';\n\n if (val.indexOf('%') === -1) {\n val = val + 'px';\n }\n\n return val;\n};\n/**\r\n * 字符串数据类型转化\r\n */\n\nvar detailDataType = function detailDataType(value, type) {\n if (Object(_validate__WEBPACK_IMPORTED_MODULE_0__[\"validatenull\"])(value)) return value;\n\n if (type === 'number') {\n return Number(value);\n } else if (type === 'string') {\n return value + '';\n } else {\n return value;\n }\n}; // 获取url中的参数\n\nvar getUrlParams = function getUrlParams(url) {\n var result = {\n url: '',\n params: {}\n };\n var list = url.split('?');\n result.url = list[0];\n var params = list[1];\n\n if (params) {\n var _list = params.split('&');\n\n _list.forEach(function (ele) {\n var dic = ele.split('=');\n var label = dic[0];\n var value = dic[1];\n result.params[label] = value;\n });\n }\n\n return result;\n};\n/**\r\n * 数组的数据类型转化\r\n */\n\nvar detailDic = function detailDic() {\n var list = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];\n var props = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n var type = arguments.length > 2 ? arguments[2] : undefined;\n var valueKey = props.value || global_variable__WEBPACK_IMPORTED_MODULE_1__[\"DIC_PROPS\"].value;\n var childrenKey = props.children || global_variable__WEBPACK_IMPORTED_MODULE_1__[\"DIC_PROPS\"].children;\n list.forEach(function (ele) {\n ele[valueKey] = detailDataType(ele[valueKey], type);\n if (ele[childrenKey]) detailDic(ele[childrenKey], props, type);\n });\n return list;\n};\n/**\r\n * 根据字典的value显示label\r\n */\n\nvar findByValue = function findByValue(dic, value, props) {\n // 如果为空直接返回\n if (Object(_validate__WEBPACK_IMPORTED_MODULE_0__[\"validatenull\"])(dic)) return value;\n var result = '';\n var isArray = value instanceof Array;\n var list = isArray ? value : [value];\n props = props || global_variable__WEBPACK_IMPORTED_MODULE_1__[\"DIC_PROPS\"];\n result = [];\n\n for (var i = 0; i < list.length; i++) {\n result.push(findLabelNode(dic, list[i], props) || list[i]);\n }\n\n if (isArray) {\n return result.join(global_variable__WEBPACK_IMPORTED_MODULE_1__[\"DIC_SHOW_SPLIT\"]).toString();\n }\n\n return result.join();\n};\n/**\r\n * 过滤字典翻译字段和空字段\r\n */\n\nvar filterDefaultParams = function filterDefaultParams(form) {\n var translate = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;\n var data = deepClone(form);\n if (translate) return data;\n\n for (var o in data) {\n if (o.indexOf('$') !== -1 || Object(_validate__WEBPACK_IMPORTED_MODULE_0__[\"validatenull\"])(data[o])) {\n delete data[o];\n }\n }\n\n return data;\n};\n/**\r\n * 处理存在group分组的情况\r\n */\n\nvar detailDicGroup = function detailDicGroup() {\n var dic = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];\n var props = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n var list = deepClone(dic);\n var groupsKey = props[global_variable__WEBPACK_IMPORTED_MODULE_1__[\"DIC_PROPS\"].groups] || global_variable__WEBPACK_IMPORTED_MODULE_1__[\"DIC_PROPS\"].groups;\n dic.forEach(function (ele) {\n if (ele[groupsKey]) {\n list = list.concat(ele[groupsKey]);\n }\n });\n return list;\n};\n/**\r\n * 根据label去找到节点\r\n */\n\nvar findLabelNode = function findLabelNode(dic, value, props, obj) {\n var result;\n if (!obj) dic = detailDicGroup(dic, props);\n\n var rev = function rev(dic1) {\n var labelKey = props.label || global_variable__WEBPACK_IMPORTED_MODULE_1__[\"DIC_PROPS\"].label;\n var valueKey = props.value || global_variable__WEBPACK_IMPORTED_MODULE_1__[\"DIC_PROPS\"].value;\n var childrenKey = props.children || global_variable__WEBPACK_IMPORTED_MODULE_1__[\"DIC_PROPS\"].children;\n\n for (var i = 0; i < dic1.length; i++) {\n var ele = dic1[i];\n var children = ele[childrenKey] || [];\n\n if (ele[valueKey] === value) {\n result = obj ? ele : ele[labelKey];\n } else {\n rev(children);\n }\n }\n };\n\n rev(dic);\n return result;\n};\n/**\r\n * 获取多层data\r\n */\n\nvar getDeepData = function getDeepData(res) {\n return (Array.isArray(res) ? res : res.data) || [];\n};\nvar getObjValue = function getObjValue(data) {\n var params = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '';\n var type = arguments.length > 2 ? arguments[2] : undefined;\n var list = params.split('.');\n var result = data;\n\n if (list[0] === '' && type !== 'object') {\n return getDeepData(data);\n } else if (list[0] !== '') {\n list.forEach(function (ele) {\n result = result[ele];\n });\n }\n\n return result;\n};\n/**\r\n * 根据值查找对应的序号\r\n */\n\nvar findArray = function findArray(dic, value, valueKey, obj) {\n valueKey = valueKey || global_variable__WEBPACK_IMPORTED_MODULE_1__[\"DIC_PROPS\"].value;\n\n for (var i = 0; i < dic.length; i++) {\n if (dic[i][valueKey] === value) {\n return obj ? dic[i] : i;\n }\n }\n\n return -1;\n};\n/**\r\n * 根据位数获取*密码程度\r\n */\n\nvar getPasswordChar = function getPasswordChar() {\n var result = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';\n\n var _char = arguments.length > 1 ? arguments[1] : undefined;\n\n var len = result.toString().length;\n result = '';\n\n for (var i = 0; i < len; i++) {\n result = result + _char;\n }\n\n return result;\n};\nvar arraySort = function arraySort() {\n var list = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];\n var prop = arguments.length > 1 ? arguments[1] : undefined;\n var callback = arguments.length > 2 ? arguments[2] : undefined;\n return list.filter(function (ele) {\n return !Object(_validate__WEBPACK_IMPORTED_MODULE_0__[\"validatenull\"])(ele[prop]);\n }).sort(function (a, b) {\n return callback(a, b);\n }).concat(list.filter(function (ele) {\n return Object(_validate__WEBPACK_IMPORTED_MODULE_0__[\"validatenull\"])(ele[prop]);\n }));\n};\nvar clearVal = function clearVal(obj) {\n var list = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : [];\n if (!obj) return {};\n Object.keys(obj).forEach(function (ele) {\n if (list.includes(ele)) return;else if (ele.includes('$')) delete obj[ele];else if (!Object(_validate__WEBPACK_IMPORTED_MODULE_0__[\"validatenull\"])(obj[ele])) {\n var type = getObjType(obj[ele]);\n if (type === 'array') obj[ele] = [];else if (type === 'object') obj[ele] = {};else if (['number', 'boolean'].includes(type)) obj[ele] = undefined;else obj[ele] = '';\n }\n });\n return obj;\n};\n/**\r\n * 验证是否存在true/false\r\n */\n\nvar vaildData = function vaildData(val, dafult) {\n if (typeof val === 'boolean') {\n return val;\n }\n\n return !Object(_validate__WEBPACK_IMPORTED_MODULE_0__[\"validatenull\"])(val) ? val : dafult;\n};\n\n//# sourceURL=webpack://AVUE/./src/utils/util.js?");
5342
5330
 
5343
5331
  /***/ }),
5344
5332
 
@@ -5362,7 +5350,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) *
5362
5350
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
5363
5351
 
5364
5352
  "use strict";
5365
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"hasOwn\", function() { return hasOwn; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"isVNode\", function() { return isVNode; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"isDom\", function() { return isDom; });\nfunction _typeof(obj) { \"@babel/helpers - typeof\"; if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\nvar hasOwnProperty = Object.prototype.hasOwnProperty;\nfunction hasOwn(obj, key) {\n return hasOwnProperty.call(obj, key);\n}\n;\nfunction isVNode(node) {\n return node !== null && _typeof(node) === 'object' && hasOwn(node, 'componentOptions');\n}\n;\nfunction isDom(obj) {\n return (typeof HTMLElement === \"undefined\" ? \"undefined\" : _typeof(HTMLElement)) === 'object' ? function () {\n return obj instanceof HTMLElement;\n }() : function () {\n return obj && _typeof(obj) === 'object' && obj.nodeType === 1 && typeof obj.nodeName === 'string';\n }();\n}\n\n//# sourceURL=webpack://AVUE/./src/utils/vdom.js?");
5353
+ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"hasOwn\", function() { return hasOwn; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"isVNode\", function() { return isVNode; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"isDom\", function() { return isDom; });\nfunction _typeof(obj) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && \"function\" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }, _typeof(obj); }\n\nvar hasOwnProperty = Object.prototype.hasOwnProperty;\nfunction hasOwn(obj, key) {\n return hasOwnProperty.call(obj, key);\n}\n;\nfunction isVNode(node) {\n return node !== null && _typeof(node) === 'object' && hasOwn(node, 'componentOptions');\n}\n;\nfunction isDom(obj) {\n return (typeof HTMLElement === \"undefined\" ? \"undefined\" : _typeof(HTMLElement)) === 'object' ? function () {\n return obj instanceof HTMLElement;\n }() : function () {\n return obj && _typeof(obj) === 'object' && obj.nodeType === 1 && typeof obj.nodeName === 'string';\n }();\n}\n\n//# sourceURL=webpack://AVUE/./src/utils/vdom.js?");
5366
5354
 
5367
5355
  /***/ }),
5368
5356
 
@@ -5374,7 +5362,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) *
5374
5362
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
5375
5363
 
5376
5364
  "use strict";
5377
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"version\", function() { return version; });\nvar version = '2.8.26';\n\n//# sourceURL=webpack://AVUE/./src/version.js?");
5365
+ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"version\", function() { return version; });\nvar version = '2.8.27';\n\n//# sourceURL=webpack://AVUE/./src/version.js?");
5378
5366
 
5379
5367
  /***/ }),
5380
5368