@ljhy/smallwei-avue-benteng 3.5.1 → 3.5.2
Sign up to get free protection for your applications and to get access to all the features.
- package/lib/avue.js +15 -4
- package/lib/avue.min.js +2 -2
- package/lib/index.css +1 -1
- package/package.json +3 -2
package/lib/avue.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
/*!
|
2
|
-
* Avue.js v3.4.
|
2
|
+
* Avue.js v3.4.67
|
3
3
|
* (c) 2017-2024 Smallwei
|
4
4
|
* Released under the MIT License.
|
5
5
|
*
|
@@ -550,7 +550,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _bab
|
|
550
550
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
551
551
|
|
552
552
|
"use strict";
|
553
|
-
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/typeof */ \"./node_modules/@babel/runtime/helpers/typeof.js\");\n/* harmony import */ var _babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var core_create__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! core/create */ \"./src/core/create.js\");\n/* harmony import */ var core_locale__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! core/locale */ \"./src/core/locale.js\");\n/* harmony import */ var dayjs__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! dayjs */ \"./node_modules/dayjs/dayjs.min.js\");\n/* harmony import */ var dayjs__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(dayjs__WEBPACK_IMPORTED_MODULE_3__);\n\n\n\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (Object(core_create__WEBPACK_IMPORTED_MODULE_1__[\"default\"])({\n name: \"chat\",\n mixins: [core_locale__WEBPACK_IMPORTED_MODULE_2__[\"default\"]],\n data: function data() {\n return {\n // 添加一个临时变量用于存储正在构建的消息\n currentNonMineMessage: null,\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 };\n },\n props: {\n size: String,\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 modelValue: {\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 computed: {\n msg: {\n get: function get() {\n return this.modelValue;\n },\n set: function set(val) {\n this.$emit('update:modelValue', val);\n this.$emit('change', val);\n }\n },\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 _this = this;\n this.$refs.form.validate(function (valid) {\n if (valid) {\n _this.upload.box = false;\n _this.$emit('submit', _this.getDetail(_this.upload));\n }\n });\n },\n handleUpload: function handleUpload(type) {\n this.upload.type = type;\n this.upload.src = '';\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 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 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 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 var CreatNotification = function CreatNotification() {\n var n = new Notification(safe.config.name, {\n body: text,\n icon: safe.config.img\n });\n n.onshow = function () {\n safe.getAudio();\n setTimeout(function () {\n n.close();\n }, 2500);\n };\n n.onclick = function (e) {\n n.close();\n };\n };\n var permissionNow = NotificationInstance.permission;\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 (params = {}) {\n // const mine = params.mine === true ? true : false;\n // const text = params.text || {};\n // const date = params.date\n // const textObj = {\n // date: date || dayjs().format('YYYY-MM-DD HH:mm:ss'),\n // text: (() => {\n // if (typeof (text) != 'object') {\n // return {\n // text: text\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(() => {\n // this.setScroll();\n // }, 50)\n //\n // },\n pushMsg: function pushMsg() {\n var _this2 = this;\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_3___default()().format('YYYY-MM-DD HH:mm:ss'),\n text: function () {\n if (_babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0___default()(text) != 'object') {\n return {\n text: text\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 if (!textObj.mine) {\n console.log('textObj', textObj);\n var currentText = '';\n for (var i = 0; i < textObj.text.text.length; i++) {\n currentText += textObj.text.text[i];\n var charObj = Object.assign({}, textObj, {\n text: {\n text: currentText\n }\n });\n this.list.push(charObj);\n }\n setTimeout(function () {\n _this2.setScroll();\n }, 50);\n } else {\n this.list.push(textObj);\n setTimeout(function () {\n _this2.setScroll();\n }, 50);\n }\n },\n // pushMsg (params = {}) {\n // const mine = params.mine === true ? true : false;\n // const text = params.text || {};\n // const date = params.date\n // const textObj = {\n // date: date || dayjs().format('YYYY-MM-DD HH:mm:ss'),\n // text: (() => {\n // if (typeof (text) != 'object') {\n // return {\n // text: text\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 //\n //\n // if (!textObj.mine) {\n // console.log('textObj', textObj)\n // let currentText = '';\n // for (let i = 0; i < textObj.text.text.length; i++) {\n // currentText += textObj.text.text[i];\n // const charObj = Object.assign({}, textObj, {text: {text: currentText}});\n // this.list.push(charObj);\n // }\n // setTimeout(() => {\n // this.setScroll();\n // }, 50)\n // } else {\n // this.list.push(textObj)\n // setTimeout(() => {\n // this.setScroll();\n // }, 50)\n // }\n //\n //\n // },\n // pushMsg(params) {\n // const mine = params.mine === true ? true : false;\n // const text = params.text || {};\n // const date = params.date\n // const textObj = {\n // date: date || dayjs().format('YYYY-MM-DD HH:mm:ss'),\n // text: (() => {\n // if (typeof (text) != 'object') {\n // return {\n // text: text\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 //\n // if (!params.mine) { // 只有非\"我\"的消息才使用流式展示\n // let index = 0;\n // const textArray = params.text.text.split('');\n //\n // // 初始化当前非\"我\"的消息对象\n // console.log('currentNonMineMessage1', this.currentNonMineMessage)\n // if (!this.currentNonMineMessage) {\n // this.currentNonMineMessage = {\n // mine: false,\n // text: '',\n // name: textObj.name,\n // img: textObj.img,\n // date: textObj.date,\n // };\n // console.log('currentNonMineMessage2', this.currentNonMineMessage)\n //\n // }\n //\n // const displayText = () => {\n // console.log('displayText')\n // if (index < textArray.length) {\n // console.log('index', index)\n // this.currentNonMineMessage.text += textArray[index];\n // console.log('currentNonMineMessage3', this.currentNonMineMessage)\n // index++;\n // this.list.push(this.currentNonMineMessage)\n // requestAnimationFrame(displayText);\n // } else {\n // // 所有字符展示完毕后,将完整的消息对象添加到list中\n // // this.list.push(this.currentNonMineMessage);\n // console.log('this.list', this.list)\n // // this.currentNonMineMessage = null; // 清空临时消息对象\n // // this.setScroll(); // 调整滚动条位置\n // }\n // };\n // displayText();\n // } else {\n // // 对于\"我\"的消息,直接添加到list中\n // this.list.push(textObj);\n // this.setScroll();\n // }\n // },\n clearStreamDisplay: function clearStreamDisplay() {\n if (this.streamDisplayTimeout !== null) {\n cancelAnimationFrame(this.streamDisplayTimeout);\n this.streamDisplayTimeout = null;\n }\n },\n beforeDestroy: function beforeDestroy() {\n this.clearStreamDisplay();\n },\n setScroll: function setScroll(count) {\n var _this3 = this;\n //滚动条一直处于下方\n this.$nextTick(function () {\n _this3.$refs.main.scrollTop = count || _this3.$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 _this4 = this;\n var html = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';\n var result = html;\n setTimeout(function () {\n var list = _this4.$refs.content || [];\n list.forEach(function (ele) {\n var _loop = function _loop() {\n var child = ele.children[i];\n if (child.getAttribute('data-flag') != 0) {\n child.setAttribute('data-flag', 0);\n child.onclick = function () {\n _this4.handleEvent(child.dataset);\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 _this4.setScroll();\n }\n };\n for (var i = 0; i < ele.children.length; i++) {\n _loop();\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 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 _this5 = this;\n var callback = function callback() {\n if (params.type === 'IMG') {\n _this5.imgSrc = params.src;\n _this5.show = true;\n } else if (params.type === 'VIDEO') {\n _this5.videoSrc = params.src;\n _this5.show = true;\n } else if (params.type === 'AUDIO') {\n _this5.audioSrc = params.src;\n _this5.show = true;\n } else if (params.type === 'FILE') {\n window.open(params.src);\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 console.log('msg', msg);\n console.log('this.notice', this.notice);\n this.pushMsg({\n text: msg\n });\n if (this.notice) {\n this.getNotification(msg.text || msg);\n }\n },\n displayMessageCharByChar: function displayMessageCharByChar(message) {\n var _this6 = this;\n var index = 0;\n var messageElement = document.createElement('div');\n messageElement.classList.add('message-bubble');\n var intervalId = setInterval(function () {\n if (index < message.length) {\n messageElement.textContent += message[index];\n console.log('messageElement.textContent', messageElement.textContent);\n index++;\n } else {\n clearInterval(intervalId);\n _this6.$nextTick(function () {\n _this6.$refs.main.appendChild(messageElement);\n _this6.setScroll();\n });\n }\n }, 100); // 这里的数字是字符显示间隔时间,单位是毫秒,可以根据需要调整\n }\n }\n}));\n\n//# sourceURL=webpack://AVUE/./packages/element-ui/chat/index.vue?./node_modules/babel-loader/lib!./node_modules/vue-loader/dist??ref--1");
|
553
|
+
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/typeof */ \"./node_modules/@babel/runtime/helpers/typeof.js\");\n/* harmony import */ var _babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var core_create__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! core/create */ \"./src/core/create.js\");\n/* harmony import */ var core_locale__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! core/locale */ \"./src/core/locale.js\");\n/* harmony import */ var dayjs__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! dayjs */ \"./node_modules/dayjs/dayjs.min.js\");\n/* harmony import */ var dayjs__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(dayjs__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var marked__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! marked */ \"./node_modules/marked/lib/marked.umd.js\");\n/* harmony import */ var marked__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(marked__WEBPACK_IMPORTED_MODULE_4__);\n\n\n\n\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (Object(core_create__WEBPACK_IMPORTED_MODULE_1__[\"default\"])({\n name: \"chat\",\n mixins: [core_locale__WEBPACK_IMPORTED_MODULE_2__[\"default\"]],\n data: function data() {\n return {\n // 添加一个临时变量用于存储正在构建的消息\n currentNonMineMessage: null,\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 };\n },\n props: {\n size: String,\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 modelValue: {\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 computed: {\n msg: {\n get: function get() {\n return this.modelValue;\n },\n set: function set(val) {\n this.$emit('update:modelValue', val);\n this.$emit('change', val);\n }\n },\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 _this = this;\n this.$refs.form.validate(function (valid) {\n if (valid) {\n _this.upload.box = false;\n _this.$emit('submit', _this.getDetail(_this.upload));\n }\n });\n },\n handleUpload: function handleUpload(type) {\n this.upload.type = type;\n this.upload.src = '';\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 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 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 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 var CreatNotification = function CreatNotification() {\n var n = new Notification(safe.config.name, {\n body: text,\n icon: safe.config.img\n });\n n.onshow = function () {\n safe.getAudio();\n setTimeout(function () {\n n.close();\n }, 2500);\n };\n n.onclick = function (e) {\n n.close();\n };\n };\n var permissionNow = NotificationInstance.permission;\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 _this2 = this;\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 haveSameKey = false;\n console.log('pushMsg, this.list: ', this.list);\n console.log('pushMsg, format this.list 1: ', marked__WEBPACK_IMPORTED_MODULE_4___default.a.parse(this.list.map(function (v) {\n return v.text.text;\n }).join('\\n')));\n console.log('pushMsg, format this.list 2: ', marked__WEBPACK_IMPORTED_MODULE_4___default.a.parse(this.list.map(function (v) {\n return v.text.text;\n })));\n this.list.forEach(function (v) {\n if (params.key === v.key && !mine) {\n haveSameKey = true;\n if (_babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0___default()(text) != 'object') {\n v.text = {\n text: text\n };\n } else {\n v.text = text;\n }\n }\n });\n if (!haveSameKey) {\n var textObj = {\n date: date || dayjs__WEBPACK_IMPORTED_MODULE_3___default()().format('YYYY-MM-DD HH:mm:ss'),\n text: function () {\n if (_babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0___default()(text) != 'object') {\n return {\n text: text\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 key: params.key\n };\n this.list.push(textObj);\n }\n // console.log('pushMsg',this.list,params)\n setTimeout(function () {\n _this2.setScroll();\n }, 50);\n },\n // pushMsg (params = {}) {\n // const mine = params.mine === true ? true : false;\n // const text = params.text || {};\n // const date = params.date\n // const textObj = {\n // date: date || dayjs().format('YYYY-MM-DD HH:mm:ss'),\n // text: (() => {\n // if (typeof (text) != 'object') {\n // return {\n // text: text\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 //\n //\n // if (!textObj.mine) {\n // console.log('textObj', textObj)\n // let currentText = '';\n // for (let i = 0; i < textObj.text.text.length; i++) {\n // currentText += textObj.text.text[i];\n // const charObj = Object.assign({}, textObj, {text: {text: currentText}});\n // this.list.push(charObj);\n // }\n // setTimeout(() => {\n // this.setScroll();\n // }, 50)\n // } else {\n // this.list.push(textObj)\n // setTimeout(() => {\n // this.setScroll();\n // }, 50)\n // }\n //\n //\n // },\n // pushMsg (params = {}) {\n // const mine = params.mine === true ? true : false;\n // const text = params.text || {};\n // const date = params.date\n // const textObj = {\n // date: date || dayjs().format('YYYY-MM-DD HH:mm:ss'),\n // text: (() => {\n // if (typeof (text) != 'object') {\n // return {\n // text: text\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 //\n //\n // if (!textObj.mine) {\n // console.log('textObj', textObj)\n // let currentText = '';\n // for (let i = 0; i < textObj.text.text.length; i++) {\n // currentText += textObj.text.text[i];\n // const charObj = Object.assign({}, textObj, {text: {text: currentText}});\n // this.list.push(charObj);\n // }\n // setTimeout(() => {\n // this.setScroll();\n // }, 50)\n // } else {\n // this.list.push(textObj)\n // setTimeout(() => {\n // this.setScroll();\n // }, 50)\n // }\n //\n //\n // },\n // pushMsg(params) {\n // const mine = params.mine === true ? true : false;\n // const text = params.text || {};\n // const date = params.date\n // const textObj = {\n // date: date || dayjs().format('YYYY-MM-DD HH:mm:ss'),\n // text: (() => {\n // if (typeof (text) != 'object') {\n // return {\n // text: text\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 //\n // if (!params.mine) { // 只有非\"我\"的消息才使用流式展示\n // let index = 0;\n // const textArray = params.text.text.split('');\n //\n // // 初始化当前非\"我\"的消息对象\n // console.log('currentNonMineMessage1', this.currentNonMineMessage)\n // if (!this.currentNonMineMessage) {\n // this.currentNonMineMessage = {\n // mine: false,\n // text: '',\n // name: textObj.name,\n // img: textObj.img,\n // date: textObj.date,\n // };\n // console.log('currentNonMineMessage2', this.currentNonMineMessage)\n //\n // }\n //\n // const displayText = () => {\n // console.log('displayText')\n // if (index < textArray.length) {\n // console.log('index', index)\n // this.currentNonMineMessage.text += textArray[index];\n // console.log('currentNonMineMessage3', this.currentNonMineMessage)\n // index++;\n // this.list.push(this.currentNonMineMessage)\n // requestAnimationFrame(displayText);\n // } else {\n // // 所有字符展示完毕后,将完整的消息对象添加到list中\n // // this.list.push(this.currentNonMineMessage);\n // console.log('this.list', this.list)\n // // this.currentNonMineMessage = null; // 清空临时消息对象\n // // this.setScroll(); // 调整滚动条位置\n // }\n // };\n // displayText();\n // } else {\n // // 对于\"我\"的消息,直接添加到list中\n // this.list.push(textObj);\n // this.setScroll();\n // }\n // },\n clearStreamDisplay: function clearStreamDisplay() {\n if (this.streamDisplayTimeout !== null) {\n cancelAnimationFrame(this.streamDisplayTimeout);\n this.streamDisplayTimeout = null;\n }\n },\n beforeDestroy: function beforeDestroy() {\n this.clearStreamDisplay();\n },\n setScroll: function setScroll(count) {\n var _this3 = this;\n //滚动条一直处于下方\n this.$nextTick(function () {\n _this3.$refs.main.scrollTop = count || _this3.$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 _this4 = this;\n var html = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';\n var markDownToHtml = marked__WEBPACK_IMPORTED_MODULE_4___default.a.parse(html);\n var result = markDownToHtml;\n console.log('html', html);\n console.log('markDownToHtml', markDownToHtml);\n setTimeout(function () {\n var list = _this4.$refs.content || [];\n list.forEach(function (ele) {\n var _loop = function _loop() {\n var child = ele.children[i];\n if (child.getAttribute('data-flag') != 0) {\n child.setAttribute('data-flag', 0);\n child.onclick = function () {\n _this4.handleEvent(child.dataset);\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 _this4.setScroll();\n }\n };\n for (var i = 0; i < ele.children.length; i++) {\n _loop();\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 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 _this5 = this;\n var callback = function callback() {\n if (params.type === 'IMG') {\n _this5.imgSrc = params.src;\n _this5.show = true;\n } else if (params.type === 'VIDEO') {\n _this5.videoSrc = params.src;\n _this5.show = true;\n } else if (params.type === 'AUDIO') {\n _this5.audioSrc = params.src;\n _this5.show = true;\n } else if (params.type === 'FILE') {\n window.open(params.src);\n }\n };\n if (typeof this.beforeOpen === 'function') {\n this.beforeOpen(params, callback);\n } else {\n callback();\n }\n },\n rootSendMsg: function rootSendMsg(msg, key) {\n // console.log('msg', msg);\n // console.log('this.notice', this.notice);\n this.pushMsg({\n text: msg,\n key: key\n });\n if (this.notice) {\n this.getNotification(msg.text || msg);\n }\n },\n displayMessageCharByChar: function displayMessageCharByChar(message) {\n var _this6 = this;\n var index = 0;\n var messageElement = document.createElement('div');\n messageElement.classList.add('message-bubble');\n var intervalId = setInterval(function () {\n if (index < message.length) {\n messageElement.textContent += message[index];\n console.log('messageElement.textContent', messageElement.textContent);\n index++;\n } else {\n clearInterval(intervalId);\n _this6.$nextTick(function () {\n _this6.$refs.main.appendChild(messageElement);\n _this6.setScroll();\n });\n }\n }, 100); // 这里的数字是字符显示间隔时间,单位是毫秒,可以根据需要调整\n }\n }\n}));\n\n//# sourceURL=webpack://AVUE/./packages/element-ui/chat/index.vue?./node_modules/babel-loader/lib!./node_modules/vue-loader/dist??ref--1");
|
554
554
|
|
555
555
|
/***/ }),
|
556
556
|
|
@@ -1176,6 +1176,17 @@ eval("!function(t,e){ true?module.exports=e():undefined}(this,(function(){\"use
|
|
1176
1176
|
|
1177
1177
|
/***/ }),
|
1178
1178
|
|
1179
|
+
/***/ "./node_modules/marked/lib/marked.umd.js":
|
1180
|
+
/*!***********************************************!*\
|
1181
|
+
!*** ./node_modules/marked/lib/marked.umd.js ***!
|
1182
|
+
\***********************************************/
|
1183
|
+
/*! no static exports found */
|
1184
|
+
/***/ (function(module, exports) {
|
1185
|
+
|
1186
|
+
eval("throw new Error(\"Module parse failed: Unexpected token (253:15)\\nYou may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders\\n| */\\n| class _Tokenizer {\\n> options;\\n| rules; // set by the lexer\\n| lexer; // set by the lexer\");\n\n//# sourceURL=webpack://AVUE/./node_modules/marked/lib/marked.umd.js?");
|
1187
|
+
|
1188
|
+
/***/ }),
|
1189
|
+
|
1179
1190
|
/***/ "./node_modules/vue-loader/dist/exportHelper.js":
|
1180
1191
|
/*!******************************************************!*\
|
1181
1192
|
!*** ./node_modules/vue-loader/dist/exportHelper.js ***!
|
@@ -1448,7 +1459,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) *
|
|
1448
1459
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
1449
1460
|
|
1450
1461
|
"use strict";
|
1451
|
-
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"render\", function() { return render; });\n/* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! vue */ \"vue\");\n/* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(vue__WEBPACK_IMPORTED_MODULE_0__);\n\n\nconst _hoisted_1 = { ref: \"chatAudio\" }\nconst _hoisted_2 = [\"src\"]\nconst _hoisted_3 = [\"src\"]\nconst _hoisted_4 = [\"src\"]\nconst _hoisted_5 = { class: \"web__logo\" }\nconst _hoisted_6 = [\"src\"]\nconst _hoisted_7 = { class: \"web__logo-info\" }\nconst _hoisted_8 = { class: \"web__logo-name\" }\nconst _hoisted_9 = { class: \"web__logo-dept\" }\nconst _hoisted_10 = { class: \"web__content\" }\nconst _hoisted_11 = {\n class: \"web__main\",\n ref: \"main\"\n}\nconst _hoisted_12 = { class: \"web__main-user\" }\nconst _hoisted_13 = [\"src\"]\nconst _hoisted_14 = { class: \"web__main-text\" }\nconst _hoisted_15 = /*#__PURE__*/Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"createElementVNode\"])(\"div\", { class: \"web__main-arrow\" }, null, -1 /* HOISTED */)\nconst _hoisted_16 = [\"innerHTML\"]\nconst _hoisted_17 = {\n key: 0,\n class: \"web__main-list\"\n}\nconst _hoisted_18 = [\"onClick\"]\nconst _hoisted_19 = { class: \"web__tools\" }\nconst _hoisted_20 = { class: \"web__msg\" }\nconst _hoisted_21 = [\"placeholder\"]\nconst _hoisted_22 = { class: \"web__msg-menu\" }\nconst _hoisted_23 = { style: {\"text-align\":\"right\",\"margin\":\"0\"} }\nconst _hoisted_24 = { key: 0 }\nconst _hoisted_25 = { class: \"dialog-footer\" }\nconst _hoisted_26 = { key: 1 }\nconst _hoisted_27 = [\"src\"]\nconst _hoisted_28 = [\"src\"]\nconst _hoisted_29 = [\"src\"]\n\nfunction render(_ctx, _cache, $props, $setup, $data, $options) {\n const _component_el_icon_picture = Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"resolveComponent\"])(\"el-icon-picture\")\n const _component_el_icon = Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"resolveComponent\"])(\"el-icon\")\n const _component_el_icon_video_camera = Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"resolveComponent\"])(\"el-icon-video-camera\")\n const _component_el_icon_folder_opened = Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"resolveComponent\"])(\"el-icon-folder-opened\")\n const _component_el_input = Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"resolveComponent\"])(\"el-input\")\n const _component_el_button = Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"resolveComponent\"])(\"el-button\")\n const _component_el_popover = Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"resolveComponent\"])(\"el-popover\")\n const _component_el_dropdown_item = Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"resolveComponent\"])(\"el-dropdown-item\")\n const _component_el_tooltip = Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"resolveComponent\"])(\"el-tooltip\")\n const _component_el_scrollbar = Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"resolveComponent\"])(\"el-scrollbar\")\n const _component_el_dropdown_menu = Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"resolveComponent\"])(\"el-dropdown-menu\")\n const _component_el_dropdown = Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"resolveComponent\"])(\"el-dropdown\")\n const _component_el_form_item = Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"resolveComponent\"])(\"el-form-item\")\n const _component_el_form = Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"resolveComponent\"])(\"el-form\")\n const _component_el_dialog = Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"resolveComponent\"])(\"el-dialog\")\n\n return (Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"openBlock\"])(), Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"createElementBlock\"])(\"div\", {\n class: Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"normalizeClass\"])(_ctx.b()),\n style: Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"normalizeStyle\"])(_ctx.heightStyleName),\n onKeyup: _cache[11] || (_cache[11] = Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"withKeys\"])((...args) => (_ctx.handleSend && _ctx.handleSend(...args)), [\"enter\"]))\n }, [\n Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"createElementVNode\"])(\"audio\", _hoisted_1, [\n Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"createElementVNode\"])(\"source\", {\n src: _ctx.audio[0],\n type: \"audio/ogg\"\n }, null, 8 /* PROPS */, _hoisted_2),\n Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"createElementVNode\"])(\"source\", {\n src: _ctx.audio[1],\n type: \"audio/mpeg\"\n }, null, 8 /* PROPS */, _hoisted_3),\n Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"createElementVNode\"])(\"source\", {\n src: _ctx.audio[2],\n type: \"audio/wav\"\n }, null, 8 /* PROPS */, _hoisted_4)\n ], 512 /* NEED_PATCH */),\n Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"createElementVNode\"])(\"div\", _hoisted_5, [\n Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"createElementVNode\"])(\"img\", {\n src: _ctx.config.img,\n class: \"web__logo-img\",\n alt: \"\"\n }, null, 8 /* PROPS */, _hoisted_6),\n Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"createElementVNode\"])(\"div\", _hoisted_7, [\n Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"createElementVNode\"])(\"p\", _hoisted_8, Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"toDisplayString\"])(_ctx.config.name), 1 /* TEXT */),\n Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"createElementVNode\"])(\"p\", _hoisted_9, Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"toDisplayString\"])(_ctx.config.dept), 1 /* TEXT */)\n ]),\n Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"renderSlot\"])(_ctx.$slots, \"header\")\n ]),\n Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"createElementVNode\"])(\"div\", _hoisted_10, [\n Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"createElementVNode\"])(\"div\", {\n style: Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"normalizeStyle\"])(_ctx.widthStyleName)\n }, [\n Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"createElementVNode\"])(\"div\", _hoisted_11, [\n (Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"openBlock\"])(true), Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"createElementBlock\"])(vue__WEBPACK_IMPORTED_MODULE_0__[\"Fragment\"], null, Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"renderList\"])(_ctx.list, (item, index) => {\n return (Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"openBlock\"])(), Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"createElementBlock\"])(\"div\", {\n class: Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"normalizeClass\"])([\"web__main-item\", {'web__main-item--mine':item.mine}]),\n key: index\n }, [\n Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"createElementVNode\"])(\"div\", _hoisted_12, [\n Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"createElementVNode\"])(\"img\", {\n src: item.img\n }, null, 8 /* PROPS */, _hoisted_13),\n Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"createElementVNode\"])(\"cite\", null, [\n Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"createTextVNode\"])(Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"toDisplayString\"])(item.name) + \" \", 1 /* TEXT */),\n Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"createElementVNode\"])(\"i\", null, Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"toDisplayString\"])(item.date), 1 /* TEXT */)\n ])\n ]),\n Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"createElementVNode\"])(\"div\", _hoisted_14, [\n _hoisted_15,\n Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"createElementVNode\"])(\"span\", {\n innerHTML: _ctx.handleDetail(item.text.text),\n ref_for: true,\n ref: \"content\"\n }, null, 8 /* PROPS */, _hoisted_16),\n (!_ctx.validatenull(item.text.list))\n ? (Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"openBlock\"])(), Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"createElementBlock\"])(\"ul\", _hoisted_17, [\n (Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"openBlock\"])(true), Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"createElementBlock\"])(vue__WEBPACK_IMPORTED_MODULE_0__[\"Fragment\"], null, Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"renderList\"])(item.text.list, (citem, cindex) => {\n return (Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"openBlock\"])(), Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"createElementBlock\"])(\"li\", {\n onClick: $event => (_ctx.handleItemMsg(citem)),\n key: cindex\n }, Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"toDisplayString\"])(citem.text), 9 /* TEXT, PROPS */, _hoisted_18))\n }), 128 /* KEYED_FRAGMENT */))\n ]))\n : Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"createCommentVNode\"])(\"v-if\", true)\n ])\n ], 2 /* CLASS */))\n }), 128 /* KEYED_FRAGMENT */))\n ], 512 /* NEED_PATCH */),\n Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"createElementVNode\"])(\"div\", {\n class: \"web__footer\",\n style: Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"normalizeStyle\"])(_ctx.widthStyleName)\n }, [\n Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"createElementVNode\"])(\"div\", _hoisted_19, [\n (_ctx.tools.img)\n ? (Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"openBlock\"])(), Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"createBlock\"])(_component_el_icon, {\n key: 0,\n onClick: _cache[0] || (_cache[0] = $event => (_ctx.handleUpload('img')))\n }, {\n default: Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"withCtx\"])(() => [\n Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"createVNode\"])(_component_el_icon_picture)\n ]),\n _: 1 /* STABLE */\n }))\n : Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"createCommentVNode\"])(\"v-if\", true),\n (_ctx.tools.video)\n ? (Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"openBlock\"])(), Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"createBlock\"])(_component_el_icon, {\n key: 1,\n onClick: _cache[1] || (_cache[1] = $event => (_ctx.handleUpload('video')))\n }, {\n default: Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"withCtx\"])(() => [\n Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"createVNode\"])(_component_el_icon_video_camera)\n ]),\n _: 1 /* STABLE */\n }))\n : Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"createCommentVNode\"])(\"v-if\", true),\n (_ctx.tools.file)\n ? (Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"openBlock\"])(), Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"createBlock\"])(_component_el_icon, {\n key: 2,\n onClick: _cache[2] || (_cache[2] = $event => (_ctx.handleUpload('file')))\n }, {\n default: Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"withCtx\"])(() => [\n Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"createVNode\"])(_component_el_icon_folder_opened)\n ]),\n _: 1 /* STABLE */\n }))\n : Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"createCommentVNode\"])(\"v-if\", true),\n Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"renderSlot\"])(_ctx.$slots, \"menu\")\n ]),\n Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"createElementVNode\"])(\"div\", _hoisted_20, [\n Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"withDirectives\"])(Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"createElementVNode\"])(\"textarea\", {\n \"onUpdate:modelValue\": _cache[3] || (_cache[3] = $event => ((_ctx.msg) = $event)),\n rows: \"2\",\n placeholder: _ctx.placeholder,\n class: \"web__msg-input\"\n }, null, 8 /* PROPS */, _hoisted_21), [\n [vue__WEBPACK_IMPORTED_MODULE_0__[\"vModelText\"], _ctx.msg]\n ]),\n Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"createElementVNode\"])(\"div\", _hoisted_22, [\n Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"createVNode\"])(_component_el_dropdown, {\n \"split-button\": \"\",\n class: \"web__msg-submit\",\n type: \"primary\",\n size: _ctx.size,\n onClick: _ctx.handleSend,\n trigger: \"click\"\n }, {\n dropdown: Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"withCtx\"])(() => [\n Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"createVNode\"])(_component_el_dropdown_menu, null, {\n default: Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"withCtx\"])(() => [\n Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"createVNode\"])(_component_el_dropdown_item, null, {\n default: Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"withCtx\"])(() => [\n Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"createVNode\"])(_component_el_popover, {\n placement: \"top\",\n width: \"160\",\n modelValue: _ctx.visible,\n \"onUpdate:modelValue\": _cache[6] || (_cache[6] = $event => ((_ctx.visible) = $event))\n }, {\n reference: Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"withCtx\"])(() => [\n Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"createVNode\"])(_component_el_button, {\n texts: \"\",\n icon: \"el-icon-plus\"\n })\n ]),\n default: Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"withCtx\"])(() => [\n Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"createElementVNode\"])(\"div\", null, [\n Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"createVNode\"])(_component_el_input, {\n size: _ctx.size,\n style: {\"margin-bottom\":\"10px\"},\n rows: 3,\n \"show-word-limit\": \"\",\n placeholder: \"请输入快捷回复语\",\n modelValue: _ctx.keys,\n \"onUpdate:modelValue\": _cache[4] || (_cache[4] = $event => ((_ctx.keys) = $event)),\n type: \"textarea\"\n }, null, 8 /* PROPS */, [\"size\", \"modelValue\"]),\n Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"createElementVNode\"])(\"div\", _hoisted_23, [\n Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"createVNode\"])(_component_el_button, {\n size: _ctx.size,\n text: \"\",\n onClick: _cache[5] || (_cache[5] = $event => (_ctx.visible = false))\n }, {\n default: Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"withCtx\"])(() => [\n Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"createTextVNode\"])(Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"toDisplayString\"])(_ctx.t(\"common.cancelBtn\")), 1 /* TEXT */)\n ]),\n _: 1 /* STABLE */\n }, 8 /* PROPS */, [\"size\"]),\n Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"createVNode\"])(_component_el_button, {\n type: \"primary\",\n size: _ctx.size,\n onClick: _ctx.addKey\n }, {\n default: Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"withCtx\"])(() => [\n Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"createTextVNode\"])(Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"toDisplayString\"])(_ctx.t(\"common.submitBtn\")), 1 /* TEXT */)\n ]),\n _: 1 /* STABLE */\n }, 8 /* PROPS */, [\"size\", \"onClick\"])\n ])\n ])\n ]),\n _: 1 /* STABLE */\n }, 8 /* PROPS */, [\"modelValue\"])\n ]),\n _: 1 /* STABLE */\n }),\n Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"createVNode\"])(_component_el_scrollbar, { style: {\"height\":\"100px\"} }, {\n default: Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"withCtx\"])(() => [\n (Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"openBlock\"])(true), Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"createElementBlock\"])(vue__WEBPACK_IMPORTED_MODULE_0__[\"Fragment\"], null, Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"renderList\"])(_ctx.keylist, (item, index) => {\n return (Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"openBlock\"])(), Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"createBlock\"])(_component_el_dropdown_item, {\n key: index,\n onClick: $event => (_ctx.sendKey(item))\n }, {\n default: Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"withCtx\"])(() => [\n Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"createVNode\"])(_component_el_tooltip, {\n effect: \"dark\",\n content: item,\n placement: \"top\"\n }, {\n default: Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"withCtx\"])(() => [\n Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"createElementVNode\"])(\"span\", null, Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"toDisplayString\"])(item.substr(0,10)) + Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"toDisplayString\"])(item.length>10?'...':''), 1 /* TEXT */)\n ]),\n _: 2 /* DYNAMIC */\n }, 1032 /* PROPS, DYNAMIC_SLOTS */, [\"content\"])\n ]),\n _: 2 /* DYNAMIC */\n }, 1032 /* PROPS, DYNAMIC_SLOTS */, [\"onClick\"]))\n }), 128 /* KEYED_FRAGMENT */))\n ]),\n _: 1 /* STABLE */\n })\n ]),\n _: 1 /* STABLE */\n })\n ]),\n default: Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"withCtx\"])(() => [\n Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"createTextVNode\"])(\" 发送 \")\n ]),\n _: 1 /* STABLE */\n }, 8 /* PROPS */, [\"size\", \"onClick\"])\n ])\n ])\n ], 4 /* STYLE */)\n ], 4 /* STYLE */),\n Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"renderSlot\"])(_ctx.$slots, \"default\")\n ]),\n (_ctx.upload.box)\n ? (Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"openBlock\"])(), Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"createElementBlock\"])(\"div\", _hoisted_24, [\n Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"createVNode\"])(_component_el_dialog, {\n title: _ctx.upload.title,\n \"destroy-on-close\": \"\",\n \"append-to-body\": _ctx.$AVUE.appendToBody,\n modelValue: _ctx.upload.box,\n \"onUpdate:modelValue\": _cache[9] || (_cache[9] = $event => ((_ctx.upload.box) = $event)),\n width: \"30%\"\n }, {\n footer: Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"withCtx\"])(() => [\n Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"createElementVNode\"])(\"span\", _hoisted_25, [\n Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"createVNode\"])(_component_el_button, {\n onClick: _cache[8] || (_cache[8] = $event => (_ctx.upload.box=false)),\n size: \"small\"\n }, {\n default: Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"withCtx\"])(() => [\n Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"createTextVNode\"])(Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"toDisplayString\"])(_ctx.t(\"common.cancelBtn\")), 1 /* TEXT */)\n ]),\n _: 1 /* STABLE */\n }),\n Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"createVNode\"])(_component_el_button, {\n type: \"primary\",\n onClick: _ctx.uploadSubmit,\n size: \"small\"\n }, {\n default: Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"withCtx\"])(() => [\n Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"createTextVNode\"])(Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"toDisplayString\"])(_ctx.t(\"common.submitBtn\")), 1 /* TEXT */)\n ]),\n _: 1 /* STABLE */\n }, 8 /* PROPS */, [\"onClick\"])\n ])\n ]),\n default: Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"withCtx\"])(() => [\n Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"createVNode\"])(_component_el_form, {\n ref: \"form\",\n model: _ctx.upload\n }, {\n default: Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"withCtx\"])(() => [\n Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"createVNode\"])(_component_el_form_item, {\n prop: \"src\",\n rules: [\n { required: true, message: '地址不能为空'},\n ]\n }, {\n default: Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"withCtx\"])(() => [\n Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"createVNode\"])(_component_el_input, {\n size: _ctx.size,\n style: {\"margin-bottom\":\"10px\"},\n rows: 4,\n \"show-word-limit\": \"\",\n maxlength: \"100\",\n placeholder: \"请输入地址\",\n modelValue: _ctx.upload.src,\n \"onUpdate:modelValue\": _cache[7] || (_cache[7] = $event => ((_ctx.upload.src) = $event)),\n type: \"textarea\"\n }, null, 8 /* PROPS */, [\"size\", \"modelValue\"])\n ]),\n _: 1 /* STABLE */\n })\n ]),\n _: 1 /* STABLE */\n }, 8 /* PROPS */, [\"model\"])\n ]),\n _: 1 /* STABLE */\n }, 8 /* PROPS */, [\"title\", \"append-to-body\", \"modelValue\"])\n ]))\n : Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"createCommentVNode\"])(\"v-if\", true),\n (_ctx.show)\n ? (Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"openBlock\"])(), Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"createElementBlock\"])(\"div\", _hoisted_26, [\n Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"createVNode\"])(_component_el_dialog, {\n modelValue: _ctx.show,\n \"onUpdate:modelValue\": _cache[10] || (_cache[10] = $event => ((_ctx.show) = $event)),\n width: \"40%\",\n \"destroy-on-close\": \"\",\n \"append-to-body\": _ctx.$AVUE.appendToBody,\n \"before-close\": _ctx.handleClose,\n class: \"web__dialog\"\n }, {\n default: Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"withCtx\"])(() => [\n (_ctx.imgSrc)\n ? (Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"openBlock\"])(), Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"createElementBlock\"])(\"img\", {\n key: 0,\n src: _ctx.imgSrc,\n style: {\"width\":\"100%\",\"object-fit\":\"cover\"}\n }, null, 8 /* PROPS */, _hoisted_27))\n : Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"createCommentVNode\"])(\"v-if\", true),\n (_ctx.videoSrc)\n ? (Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"openBlock\"])(), Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"createElementBlock\"])(\"video\", {\n key: 1,\n src: _ctx.videoSrc,\n style: {\"width\":\"100%\",\"object-fit\":\"cover\"},\n controls: \"controls\"\n }, null, 8 /* PROPS */, _hoisted_28))\n : Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"createCommentVNode\"])(\"v-if\", true),\n (_ctx.audioSrc)\n ? (Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"openBlock\"])(), Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"createElementBlock\"])(\"audio\", {\n key: 2,\n src: _ctx.audioSrc,\n style: {\"width\":\"100%\",\"object-fit\":\"cover\"},\n controls: \"controls\"\n }, null, 8 /* PROPS */, _hoisted_29))\n : Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"createCommentVNode\"])(\"v-if\", true)\n ]),\n _: 1 /* STABLE */\n }, 8 /* PROPS */, [\"modelValue\", \"append-to-body\", \"before-close\"])\n ]))\n : Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"createCommentVNode\"])(\"v-if\", true)\n ], 38 /* CLASS, STYLE, NEED_HYDRATION */))\n}\n\n//# sourceURL=webpack://AVUE/./packages/element-ui/chat/index.vue?./node_modules/vue-loader/dist/templateLoader.js??ref--5!./node_modules/vue-loader/dist??ref--1");
|
1462
|
+
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"render\", function() { return render; });\n/* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! vue */ \"vue\");\n/* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(vue__WEBPACK_IMPORTED_MODULE_0__);\n\n\nconst _hoisted_1 = { ref: \"chatAudio\" }\nconst _hoisted_2 = [\"src\"]\nconst _hoisted_3 = [\"src\"]\nconst _hoisted_4 = [\"src\"]\nconst _hoisted_5 = { class: \"web__logo\" }\nconst _hoisted_6 = [\"src\"]\nconst _hoisted_7 = { class: \"web__logo-info\" }\nconst _hoisted_8 = { class: \"web__logo-name\" }\nconst _hoisted_9 = { class: \"web__logo-dept\" }\nconst _hoisted_10 = { class: \"web__content\" }\nconst _hoisted_11 = {\n class: \"web__main\",\n ref: \"main\"\n}\nconst _hoisted_12 = { class: \"web__main-user\" }\nconst _hoisted_13 = [\"src\"]\nconst _hoisted_14 = { class: \"web__main-text\" }\nconst _hoisted_15 = /*#__PURE__*/Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"createElementVNode\"])(\"div\", { class: \"web__main-arrow\" }, null, -1 /* HOISTED */)\nconst _hoisted_16 = [\"innerHTML\"]\nconst _hoisted_17 = {\n key: 0,\n class: \"web__main-list\"\n}\nconst _hoisted_18 = [\"onClick\"]\nconst _hoisted_19 = { class: \"web__tools\" }\nconst _hoisted_20 = { class: \"web__msg\" }\nconst _hoisted_21 = [\"placeholder\"]\nconst _hoisted_22 = { class: \"web__msg-menu\" }\nconst _hoisted_23 = { key: 0 }\nconst _hoisted_24 = { class: \"dialog-footer\" }\nconst _hoisted_25 = { key: 1 }\nconst _hoisted_26 = [\"src\"]\nconst _hoisted_27 = [\"src\"]\nconst _hoisted_28 = [\"src\"]\n\nfunction render(_ctx, _cache, $props, $setup, $data, $options) {\n const _component_Promotion = Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"resolveComponent\"])(\"Promotion\")\n const _component_el_icon = Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"resolveComponent\"])(\"el-icon\")\n const _component_el_button = Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"resolveComponent\"])(\"el-button\")\n const _component_el_input = Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"resolveComponent\"])(\"el-input\")\n const _component_el_form_item = Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"resolveComponent\"])(\"el-form-item\")\n const _component_el_form = Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"resolveComponent\"])(\"el-form\")\n const _component_el_dialog = Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"resolveComponent\"])(\"el-dialog\")\n\n return (Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"openBlock\"])(), Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"createElementBlock\"])(\"div\", {\n class: Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"normalizeClass\"])(_ctx.b()),\n style: Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"normalizeStyle\"])(_ctx.heightStyleName),\n onKeyup: _cache[5] || (_cache[5] = Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"withKeys\"])((...args) => (_ctx.handleSend && _ctx.handleSend(...args)), [\"enter\"]))\n }, [\n Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"createElementVNode\"])(\"audio\", _hoisted_1, [\n Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"createElementVNode\"])(\"source\", {\n src: _ctx.audio[0],\n type: \"audio/ogg\"\n }, null, 8 /* PROPS */, _hoisted_2),\n Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"createElementVNode\"])(\"source\", {\n src: _ctx.audio[1],\n type: \"audio/mpeg\"\n }, null, 8 /* PROPS */, _hoisted_3),\n Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"createElementVNode\"])(\"source\", {\n src: _ctx.audio[2],\n type: \"audio/wav\"\n }, null, 8 /* PROPS */, _hoisted_4)\n ], 512 /* NEED_PATCH */),\n Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"createElementVNode\"])(\"div\", _hoisted_5, [\n Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"createElementVNode\"])(\"img\", {\n src: _ctx.config.img,\n class: \"web__logo-img\",\n alt: \"\"\n }, null, 8 /* PROPS */, _hoisted_6),\n Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"createElementVNode\"])(\"div\", _hoisted_7, [\n Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"createElementVNode\"])(\"p\", _hoisted_8, Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"toDisplayString\"])(_ctx.config.name), 1 /* TEXT */),\n Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"createElementVNode\"])(\"p\", _hoisted_9, Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"toDisplayString\"])(_ctx.config.dept), 1 /* TEXT */)\n ]),\n Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"renderSlot\"])(_ctx.$slots, \"header\")\n ]),\n Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"createElementVNode\"])(\"div\", _hoisted_10, [\n Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"createElementVNode\"])(\"div\", {\n style: Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"normalizeStyle\"])(_ctx.widthStyleName)\n }, [\n Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"createElementVNode\"])(\"div\", _hoisted_11, [\n (Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"openBlock\"])(true), Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"createElementBlock\"])(vue__WEBPACK_IMPORTED_MODULE_0__[\"Fragment\"], null, Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"renderList\"])(_ctx.list, (item, index) => {\n return (Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"openBlock\"])(), Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"createElementBlock\"])(\"div\", {\n class: Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"normalizeClass\"])([\"web__main-item\", {'web__main-item--mine':item.mine}]),\n key: index\n }, [\n Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"createElementVNode\"])(\"div\", _hoisted_12, [\n Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"createElementVNode\"])(\"img\", {\n src: item.img\n }, null, 8 /* PROPS */, _hoisted_13),\n Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"createElementVNode\"])(\"cite\", null, [\n Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"createTextVNode\"])(Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"toDisplayString\"])(item.name) + \" \", 1 /* TEXT */),\n Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"createElementVNode\"])(\"i\", null, Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"toDisplayString\"])(item.date), 1 /* TEXT */)\n ])\n ]),\n Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"createElementVNode\"])(\"div\", _hoisted_14, [\n _hoisted_15,\n Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"createElementVNode\"])(\"span\", {\n innerHTML: _ctx.handleDetail(item.text.text),\n ref_for: true,\n ref: \"content\"\n }, null, 8 /* PROPS */, _hoisted_16),\n (!_ctx.validatenull(item.text.list))\n ? (Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"openBlock\"])(), Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"createElementBlock\"])(\"ul\", _hoisted_17, [\n (Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"openBlock\"])(true), Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"createElementBlock\"])(vue__WEBPACK_IMPORTED_MODULE_0__[\"Fragment\"], null, Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"renderList\"])(item.text.list, (citem, cindex) => {\n return (Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"openBlock\"])(), Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"createElementBlock\"])(\"li\", {\n onClick: $event => (_ctx.handleItemMsg(citem)),\n key: cindex\n }, Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"toDisplayString\"])(citem.text), 9 /* TEXT, PROPS */, _hoisted_18))\n }), 128 /* KEYED_FRAGMENT */))\n ]))\n : Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"createCommentVNode\"])(\"v-if\", true)\n ])\n ], 2 /* CLASS */))\n }), 128 /* KEYED_FRAGMENT */))\n ], 512 /* NEED_PATCH */),\n Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"createElementVNode\"])(\"div\", {\n class: \"web__footer\",\n style: Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"normalizeStyle\"])(_ctx.widthStyleName)\n }, [\n Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"createElementVNode\"])(\"div\", _hoisted_19, [\n Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"createCommentVNode\"])(\" <el-icon v-if=\\\"tools.img\\\"\"),\n Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"createCommentVNode\"])(\" @click=\\\"handleUpload('img')\\\">\"),\n Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"createCommentVNode\"])(\" <el-icon-picture />\"),\n Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"createCommentVNode\"])(\" </el-icon>\"),\n Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"createCommentVNode\"])(\" <el-icon v-if=\\\"tools.video\\\"\"),\n Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"createCommentVNode\"])(\" @click=\\\"handleUpload('video')\\\">\"),\n Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"createCommentVNode\"])(\" <el-icon-video-camera />\"),\n Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"createCommentVNode\"])(\" </el-icon>\"),\n Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"createCommentVNode\"])(\" <el-icon v-if=\\\"tools.file\\\"\"),\n Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"createCommentVNode\"])(\" @click=\\\"handleUpload('file')\\\">\"),\n Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"createCommentVNode\"])(\" <el-icon-folder-opened />\"),\n Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"createCommentVNode\"])(\" </el-icon>\"),\n Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"renderSlot\"])(_ctx.$slots, \"menu\")\n ]),\n Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"createElementVNode\"])(\"div\", _hoisted_20, [\n Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"withDirectives\"])(Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"createElementVNode\"])(\"textarea\", {\n \"onUpdate:modelValue\": _cache[0] || (_cache[0] = $event => ((_ctx.msg) = $event)),\n rows: \"2\",\n placeholder: _ctx.placeholder,\n class: \"web__msg-input\"\n }, null, 8 /* PROPS */, _hoisted_21), [\n [vue__WEBPACK_IMPORTED_MODULE_0__[\"vModelText\"], _ctx.msg]\n ]),\n Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"createElementVNode\"])(\"div\", _hoisted_22, [\n Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"createVNode\"])(_component_el_button, {\n class: \"web__msg-submit\",\n size: _ctx.size,\n onClick: _ctx.handleSend,\n trigger: \"click\"\n }, {\n default: Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"withCtx\"])(() => [\n Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"createVNode\"])(_component_el_icon, {\n size: 20,\n color: \"#FFFFFF\",\n class: \"promotion-icon\"\n }, {\n default: Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"withCtx\"])(() => [\n Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"createVNode\"])(_component_Promotion)\n ]),\n _: 1 /* STABLE */\n })\n ]),\n _: 1 /* STABLE */\n }, 8 /* PROPS */, [\"size\", \"onClick\"])\n ])\n ])\n ], 4 /* STYLE */)\n ], 4 /* STYLE */),\n Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"renderSlot\"])(_ctx.$slots, \"default\")\n ]),\n (_ctx.upload.box)\n ? (Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"openBlock\"])(), Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"createElementBlock\"])(\"div\", _hoisted_23, [\n Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"createVNode\"])(_component_el_dialog, {\n title: _ctx.upload.title,\n \"destroy-on-close\": \"\",\n \"append-to-body\": _ctx.$AVUE.appendToBody,\n modelValue: _ctx.upload.box,\n \"onUpdate:modelValue\": _cache[3] || (_cache[3] = $event => ((_ctx.upload.box) = $event)),\n width: \"30%\"\n }, {\n footer: Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"withCtx\"])(() => [\n Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"createElementVNode\"])(\"span\", _hoisted_24, [\n Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"createVNode\"])(_component_el_button, {\n onClick: _cache[2] || (_cache[2] = $event => (_ctx.upload.box=false)),\n size: \"small\"\n }, {\n default: Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"withCtx\"])(() => [\n Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"createTextVNode\"])(Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"toDisplayString\"])(_ctx.t(\"common.cancelBtn\")), 1 /* TEXT */)\n ]),\n _: 1 /* STABLE */\n }),\n Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"createVNode\"])(_component_el_button, {\n type: \"primary\",\n onClick: _ctx.uploadSubmit,\n size: \"small\"\n }, {\n default: Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"withCtx\"])(() => [\n Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"createTextVNode\"])(Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"toDisplayString\"])(_ctx.t(\"common.submitBtn\")), 1 /* TEXT */)\n ]),\n _: 1 /* STABLE */\n }, 8 /* PROPS */, [\"onClick\"])\n ])\n ]),\n default: Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"withCtx\"])(() => [\n Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"createVNode\"])(_component_el_form, {\n ref: \"form\",\n model: _ctx.upload\n }, {\n default: Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"withCtx\"])(() => [\n Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"createVNode\"])(_component_el_form_item, {\n prop: \"src\",\n rules: [\n { required: true, message: '地址不能为空'},\n ]\n }, {\n default: Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"withCtx\"])(() => [\n Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"createVNode\"])(_component_el_input, {\n size: _ctx.size,\n style: {\"margin-bottom\":\"10px\"},\n rows: 4,\n \"show-word-limit\": \"\",\n maxlength: \"100\",\n placeholder: \"请输入地址\",\n modelValue: _ctx.upload.src,\n \"onUpdate:modelValue\": _cache[1] || (_cache[1] = $event => ((_ctx.upload.src) = $event)),\n type: \"textarea\"\n }, null, 8 /* PROPS */, [\"size\", \"modelValue\"])\n ]),\n _: 1 /* STABLE */\n })\n ]),\n _: 1 /* STABLE */\n }, 8 /* PROPS */, [\"model\"])\n ]),\n _: 1 /* STABLE */\n }, 8 /* PROPS */, [\"title\", \"append-to-body\", \"modelValue\"])\n ]))\n : Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"createCommentVNode\"])(\"v-if\", true),\n (_ctx.show)\n ? (Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"openBlock\"])(), Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"createElementBlock\"])(\"div\", _hoisted_25, [\n Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"createVNode\"])(_component_el_dialog, {\n modelValue: _ctx.show,\n \"onUpdate:modelValue\": _cache[4] || (_cache[4] = $event => ((_ctx.show) = $event)),\n width: \"40%\",\n \"destroy-on-close\": \"\",\n \"append-to-body\": _ctx.$AVUE.appendToBody,\n \"before-close\": _ctx.handleClose,\n class: \"web__dialog\"\n }, {\n default: Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"withCtx\"])(() => [\n (_ctx.imgSrc)\n ? (Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"openBlock\"])(), Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"createElementBlock\"])(\"img\", {\n key: 0,\n src: _ctx.imgSrc,\n style: {\"width\":\"100%\",\"object-fit\":\"cover\"}\n }, null, 8 /* PROPS */, _hoisted_26))\n : Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"createCommentVNode\"])(\"v-if\", true),\n (_ctx.videoSrc)\n ? (Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"openBlock\"])(), Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"createElementBlock\"])(\"video\", {\n key: 1,\n src: _ctx.videoSrc,\n style: {\"width\":\"100%\",\"object-fit\":\"cover\"},\n controls: \"controls\"\n }, null, 8 /* PROPS */, _hoisted_27))\n : Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"createCommentVNode\"])(\"v-if\", true),\n (_ctx.audioSrc)\n ? (Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"openBlock\"])(), Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"createElementBlock\"])(\"audio\", {\n key: 2,\n src: _ctx.audioSrc,\n style: {\"width\":\"100%\",\"object-fit\":\"cover\"},\n controls: \"controls\"\n }, null, 8 /* PROPS */, _hoisted_28))\n : Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"createCommentVNode\"])(\"v-if\", true)\n ]),\n _: 1 /* STABLE */\n }, 8 /* PROPS */, [\"modelValue\", \"append-to-body\", \"before-close\"])\n ]))\n : Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"createCommentVNode\"])(\"v-if\", true)\n ], 38 /* CLASS, STYLE, NEED_HYDRATION */))\n}\n\n//# sourceURL=webpack://AVUE/./packages/element-ui/chat/index.vue?./node_modules/vue-loader/dist/templateLoader.js??ref--5!./node_modules/vue-loader/dist??ref--1");
|
1452
1463
|
|
1453
1464
|
/***/ }),
|
1454
1465
|
|
@@ -5132,7 +5143,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) *
|
|
5132
5143
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
5133
5144
|
|
5134
5145
|
"use strict";
|
5135
|
-
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"version\", function() { return version; });\nvar version = '3.4.
|
5146
|
+
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"version\", function() { return version; });\nvar version = '3.4.67';\n\n//# sourceURL=webpack://AVUE/./src/version.js?");
|
5136
5147
|
|
5137
5148
|
/***/ }),
|
5138
5149
|
|