@tencentcloud/ai-desk-customer-vue 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.code.yml +17 -0
- package/.eslintignore +6 -0
- package/.stylelintrc.json +40 -0
- package/CHANGELOG.md +5 -0
- package/README.md +12 -0
- package/adapter-vue-web.ts +73 -0
- package/adapter-vue.ts +10 -0
- package/assets/audio-before-delete.svg +4 -0
- package/assets/audio-blue.png +0 -0
- package/assets/audio-bubble-blue.svg +3 -0
- package/assets/audio-bubble-red.svg +3 -0
- package/assets/audio-delete.svg +10 -0
- package/assets/audio.svg +6 -0
- package/assets/back.svg +16 -0
- package/assets/background_mobile.png +0 -0
- package/assets/camera-uni.png +0 -0
- package/assets/close-quote-icon.svg +3 -0
- package/assets/customer_avatar.png +0 -0
- package/assets/customer_avatar_mobile.png +0 -0
- package/assets/dialog-close.png +0 -0
- package/assets/double-arrow.svg +1 -0
- package/assets/download.svg +6 -0
- package/assets/emoji.png +0 -0
- package/assets/face-uni.png +0 -0
- package/assets/face.png +0 -0
- package/assets/file-h5.png +0 -0
- package/assets/files.png +0 -0
- package/assets/form-dialog-bg.png +0 -0
- package/assets/icon-arrow-left.svg +7 -0
- package/assets/icon-close.svg +6 -0
- package/assets/iconRight.svg +3 -0
- package/assets/icon_form.png +0 -0
- package/assets/icon_form_filled.png +0 -0
- package/assets/icon_question.png +0 -0
- package/assets/icon_refresh.png +0 -0
- package/assets/icon_success.png +0 -0
- package/assets/imRobotGuess.svg +4 -0
- package/assets/image-uni.png +0 -0
- package/assets/image.png +0 -0
- package/assets/keyboard_icon.png +0 -0
- package/assets/loading.png +0 -0
- package/assets/more-uni.png +0 -0
- package/assets/more_tools.png +0 -0
- package/assets/msg-audio.svg +1 -0
- package/assets/msg-copy.svg +30 -0
- package/assets/msg-del.svg +33 -0
- package/assets/msg-quote.svg +8 -0
- package/assets/msg-revoke.svg +29 -0
- package/assets/radio-check.png +0 -0
- package/assets/radio-uncheck.png +0 -0
- package/assets/radio.svg +6 -0
- package/assets/refresh.svg +4 -0
- package/assets/rotate-left.svg +7 -0
- package/assets/rotate-right.svg +7 -0
- package/assets/star.png +0 -0
- package/assets/starLine.png +0 -0
- package/assets/translate.svg +12 -0
- package/assets/video-play.png +0 -0
- package/assets/video-uni.png +0 -0
- package/assets/video.png +0 -0
- package/assets/zoom-in.svg +9 -0
- package/assets/zoom-out.svg +9 -0
- package/components/CustomerServiceChat/chat-header/index-web.vue +141 -0
- package/components/CustomerServiceChat/emoji-config/custom-emoji.ts +15 -0
- package/components/CustomerServiceChat/emoji-config/default-emoji.ts +114 -0
- package/components/CustomerServiceChat/emoji-config/index.ts +140 -0
- package/components/CustomerServiceChat/emoji-config/locales/en.ts +66 -0
- package/components/CustomerServiceChat/emoji-config/locales/zh_cn.ts +66 -0
- package/components/CustomerServiceChat/index-web.vue +250 -0
- package/components/CustomerServiceChat/message-input/index-web.vue +214 -0
- package/components/CustomerServiceChat/message-input/index.ts +2 -0
- package/components/CustomerServiceChat/message-input/message-input-button.vue +95 -0
- package/components/CustomerServiceChat/message-input/message-input-editor-web.vue +884 -0
- package/components/CustomerServiceChat/message-input/message-input-file-web.ts +38 -0
- package/components/CustomerServiceChat/message-input/message-input-quote/index.vue +204 -0
- package/components/CustomerServiceChat/message-input-toolbar/emoji-dialog-mobile/emoji-dialog-mobile.vue +145 -0
- package/components/CustomerServiceChat/message-input-toolbar/emoji-picker/emoji-picker-dialog.vue +180 -0
- package/components/CustomerServiceChat/message-input-toolbar/emoji-picker/index.ts +2 -0
- package/components/CustomerServiceChat/message-input-toolbar/emoji-picker/index.vue +90 -0
- package/components/CustomerServiceChat/message-input-toolbar/emoji-picker/style/h5.scss +26 -0
- package/components/CustomerServiceChat/message-input-toolbar/emoji-picker/style/index.scss +4 -0
- package/components/CustomerServiceChat/message-input-toolbar/emoji-picker/style/web.scss +55 -0
- package/components/CustomerServiceChat/message-input-toolbar/file-upload/index.ts +2 -0
- package/components/CustomerServiceChat/message-input-toolbar/file-upload/index.vue +77 -0
- package/components/CustomerServiceChat/message-input-toolbar/image-upload/index.ts +2 -0
- package/components/CustomerServiceChat/message-input-toolbar/image-upload/index.vue +185 -0
- package/components/CustomerServiceChat/message-input-toolbar/index-web.vue +191 -0
- package/components/CustomerServiceChat/message-input-toolbar/index.ts +2 -0
- package/components/CustomerServiceChat/message-input-toolbar/style/uni.scss +111 -0
- package/components/CustomerServiceChat/message-input-toolbar/toolbar-item-container/index.vue +149 -0
- package/components/CustomerServiceChat/message-input-toolbar/toolbar-item-container/style/color.scss +6 -0
- package/components/CustomerServiceChat/message-input-toolbar/toolbar-item-container/style/h5.scss +20 -0
- package/components/CustomerServiceChat/message-input-toolbar/toolbar-item-container/style/index.scss +5 -0
- package/components/CustomerServiceChat/message-input-toolbar/toolbar-item-container/style/uni.scss +36 -0
- package/components/CustomerServiceChat/message-input-toolbar/toolbar-item-container/style/web.scss +19 -0
- package/components/CustomerServiceChat/message-input-toolbar/video-upload/index.ts +2 -0
- package/components/CustomerServiceChat/message-input-toolbar/video-upload/index.vue +146 -0
- package/components/CustomerServiceChat/message-list/index-web.vue +712 -0
- package/components/CustomerServiceChat/message-list/link/index.ts +23 -0
- package/components/CustomerServiceChat/message-list/message-elements/message-audio-web.vue +223 -0
- package/components/CustomerServiceChat/message-list/message-elements/message-bubble-web.vue +504 -0
- package/components/CustomerServiceChat/message-list/message-elements/message-custom.vue +5 -0
- package/components/CustomerServiceChat/message-list/message-elements/message-face.vue +45 -0
- package/components/CustomerServiceChat/message-list/message-elements/message-file.vue +151 -0
- package/components/CustomerServiceChat/message-list/message-elements/message-image-web.vue +97 -0
- package/components/CustomerServiceChat/message-list/message-elements/message-location.vue +34 -0
- package/components/CustomerServiceChat/message-list/message-elements/message-quote/index-web.vue +286 -0
- package/components/CustomerServiceChat/message-list/message-elements/message-quote/interface.ts +60 -0
- package/components/CustomerServiceChat/message-list/message-elements/message-record/index.vue +139 -0
- package/components/CustomerServiceChat/message-list/message-elements/message-text.vue +94 -0
- package/components/CustomerServiceChat/message-list/message-elements/message-timestamp.vue +76 -0
- package/components/CustomerServiceChat/message-list/message-elements/message-video-web.vue +319 -0
- package/components/CustomerServiceChat/message-list/message-elements/plugins/plugin-components/index.ts +9 -0
- package/components/CustomerServiceChat/message-list/message-elements/plugins/plugin-components/message-customer/index.ts +5 -0
- package/components/CustomerServiceChat/message-list/message-elements/plugins/plugin-components/message-customer/message-customer-service.vue +22 -0
- package/components/CustomerServiceChat/message-list/message-elements/plugins/plugin-components/message-plugin-layout-web.vue +133 -0
- package/components/CustomerServiceChat/message-list/message-elements/plugins/plugin-components/message-plugin-web.vue +83 -0
- package/components/CustomerServiceChat/message-list/message-elements/read-status/index.vue +193 -0
- package/components/CustomerServiceChat/message-list/message-elements/simple-message-list/index.vue +462 -0
- package/components/CustomerServiceChat/message-list/message-elements/simple-message-list/message-container.vue +105 -0
- package/components/CustomerServiceChat/message-list/message-elements/video-play.vue +59 -0
- package/components/CustomerServiceChat/message-list/message-tool/index-web.vue +312 -0
- package/components/CustomerServiceChat/message-list/message-tool/message-revoked.vue +63 -0
- package/components/CustomerServiceChat/message-list/scroll-button/index.vue +201 -0
- package/components/CustomerServiceChat/message-list/style/color.scss +32 -0
- package/components/CustomerServiceChat/message-list/style/h5.scss +16 -0
- package/components/CustomerServiceChat/message-list/style/index.scss +11 -0
- package/components/CustomerServiceChat/message-list/style/web.scss +180 -0
- package/components/CustomerServiceChat/style/common.scss +59 -0
- package/components/CustomerServiceChat/style/h5.scss +51 -0
- package/components/CustomerServiceChat/style/index.scss +12 -0
- package/components/CustomerServiceChat/style/uni.scss +13 -0
- package/components/CustomerServiceChat/style/web.scss +46 -0
- package/components/CustomerServiceChat/style/wx.scss +5 -0
- package/components/CustomerServiceChat/utils/conversationDraft.ts +86 -0
- package/components/CustomerServiceChat/utils/sendMessage.ts +140 -0
- package/components/common/Avatar/index.vue +148 -0
- package/components/common/BottomPopup/index.ts +3 -0
- package/components/common/BottomPopup/index.vue +160 -0
- package/components/common/BottomPopup/style/h5.scss +62 -0
- package/components/common/BottomPopup/style/index.scss +3 -0
- package/components/common/BottomPopup/style/modal.scss +5 -0
- package/components/common/Dialog/index.ts +3 -0
- package/components/common/Dialog/index.vue +120 -0
- package/components/common/Dialog/style/color.scss +43 -0
- package/components/common/Dialog/style/dialog.scss +4 -0
- package/components/common/Dialog/style/h5.scss +56 -0
- package/components/common/Dialog/style/web.scss +61 -0
- package/components/common/Drawer/index.vue +164 -0
- package/components/common/Icon.vue +83 -0
- package/components/common/ImagePreviewer/image-item-web.vue +42 -0
- package/components/common/ImagePreviewer/index-web.vue +682 -0
- package/components/common/ImagePreviewer/index.ts +3 -0
- package/components/common/Overlay/index.vue +126 -0
- package/components/common/ProgressMessage/index.vue +95 -0
- package/components/common/RadioSelect/index.vue +59 -0
- package/components/common/RichText/LICENSE +21 -0
- package/components/common/RichText/README.md +244 -0
- package/components/common/RichText/dist/mp-alipay/index.acss +1 -0
- package/components/common/RichText/dist/mp-alipay/index.axml +1 -0
- package/components/common/RichText/dist/mp-alipay/index.js +8 -0
- package/components/common/RichText/dist/mp-alipay/index.json +1 -0
- package/components/common/RichText/dist/mp-alipay/node/node.acss +1 -0
- package/components/common/RichText/dist/mp-alipay/node/node.axml +1 -0
- package/components/common/RichText/dist/mp-alipay/node/node.js +1 -0
- package/components/common/RichText/dist/mp-alipay/node/node.json +1 -0
- package/components/common/RichText/dist/mp-alipay/parser.js +1 -0
- package/components/common/RichText/dist/mp-baidu/index.css +1 -0
- package/components/common/RichText/dist/mp-baidu/index.js +8 -0
- package/components/common/RichText/dist/mp-baidu/index.json +1 -0
- package/components/common/RichText/dist/mp-baidu/index.swan +1 -0
- package/components/common/RichText/dist/mp-baidu/node/node.css +1 -0
- package/components/common/RichText/dist/mp-baidu/node/node.js +1 -0
- package/components/common/RichText/dist/mp-baidu/node/node.json +1 -0
- package/components/common/RichText/dist/mp-baidu/node/node.swan +1 -0
- package/components/common/RichText/dist/mp-baidu/parser.js +1 -0
- package/components/common/RichText/dist/mp-qq/index.js +8 -0
- package/components/common/RichText/dist/mp-qq/index.json +1 -0
- package/components/common/RichText/dist/mp-qq/index.qml +1 -0
- package/components/common/RichText/dist/mp-qq/index.qss +1 -0
- package/components/common/RichText/dist/mp-qq/node/node.js +1 -0
- package/components/common/RichText/dist/mp-qq/node/node.json +1 -0
- package/components/common/RichText/dist/mp-qq/node/node.qml +1 -0
- package/components/common/RichText/dist/mp-qq/node/node.qss +1 -0
- package/components/common/RichText/dist/mp-qq/parser.js +1 -0
- package/components/common/RichText/dist/mp-toutiao/index.js +8 -0
- package/components/common/RichText/dist/mp-toutiao/index.json +1 -0
- package/components/common/RichText/dist/mp-toutiao/index.ttml +1 -0
- package/components/common/RichText/dist/mp-toutiao/index.ttss +1 -0
- package/components/common/RichText/dist/mp-toutiao/node/node.js +1 -0
- package/components/common/RichText/dist/mp-toutiao/node/node.json +1 -0
- package/components/common/RichText/dist/mp-toutiao/node/node.ttml +1 -0
- package/components/common/RichText/dist/mp-toutiao/node/node.ttss +1 -0
- package/components/common/RichText/dist/mp-toutiao/parser.js +1 -0
- package/components/common/RichText/dist/mp-weixin/index.js +8 -0
- package/components/common/RichText/dist/mp-weixin/index.json +1 -0
- package/components/common/RichText/dist/mp-weixin/index.wxml +1 -0
- package/components/common/RichText/dist/mp-weixin/index.wxss +1 -0
- package/components/common/RichText/dist/mp-weixin/node/node.js +1 -0
- package/components/common/RichText/dist/mp-weixin/node/node.json +1 -0
- package/components/common/RichText/dist/mp-weixin/node/node.wxml +1 -0
- package/components/common/RichText/dist/mp-weixin/node/node.wxss +1 -0
- package/components/common/RichText/dist/mp-weixin/parser.js +1 -0
- package/components/common/RichText/dist/uni-app/components/mp-html/mp-html.vue +498 -0
- package/components/common/RichText/dist/uni-app/components/mp-html/node/node.vue +587 -0
- package/components/common/RichText/dist/uni-app/components/mp-html/parser.js +1393 -0
- package/components/common/RichText/dist/uni-app/static/app-plus/mp-html/js/handler.js +1 -0
- package/components/common/RichText/dist/uni-app/static/app-plus/mp-html/js/uni.webview.min.js +1 -0
- package/components/common/RichText/dist/uni-app/static/app-plus/mp-html/local.html +1 -0
- package/components/common/RichText/docs/.nojekyll +0 -0
- package/components/common/RichText/docs/index.html +50 -0
- package/components/common/RichText/docs/lib/docsify.min.js +1 -0
- package/components/common/RichText/docs/lib/prism-bash.min.js +1 -0
- package/components/common/RichText/docs/lib/search.min.js +1 -0
- package/components/common/RichText/docs/lib/vue.css +858 -0
- package/components/common/RichText/gulpfile.js +113 -0
- package/components/common/RichText/lint.js +63 -0
- package/components/common/RichText/package.json +74 -0
- package/components/common/RichText/plugins/README.md +2 -0
- package/components/common/RichText/plugins/audio/README.md +25 -0
- package/components/common/RichText/plugins/audio/build.js +11 -0
- package/components/common/RichText/plugins/audio/context.js +7 -0
- package/components/common/RichText/plugins/audio/index.js +34 -0
- package/components/common/RichText/plugins/audio/miniprogram/audio.js +189 -0
- package/components/common/RichText/plugins/audio/miniprogram/audio.json +3 -0
- package/components/common/RichText/plugins/audio/miniprogram/audio.wxml +17 -0
- package/components/common/RichText/plugins/audio/miniprogram/audio.wxss +127 -0
- package/components/common/RichText/plugins/audio/miniprogram/build.js +3 -0
- package/components/common/RichText/plugins/audio/uni-app/audio.vue +269 -0
- package/components/common/RichText/plugins/audio/uni-app/build.js +3 -0
- package/components/common/RichText/plugins/card/README.md +30 -0
- package/components/common/RichText/plugins/card/build.js +14 -0
- package/components/common/RichText/plugins/card/index.js +7 -0
- package/components/common/RichText/plugins/card/miniprogram/build.js +3 -0
- package/components/common/RichText/plugins/card/miniprogram/card.js +26 -0
- package/components/common/RichText/plugins/card/miniprogram/card.json +3 -0
- package/components/common/RichText/plugins/card/miniprogram/card.wxml +9 -0
- package/components/common/RichText/plugins/card/miniprogram/card.wxss +55 -0
- package/components/common/RichText/plugins/card/uni-app/build.js +3 -0
- package/components/common/RichText/plugins/card/uni-app/card.vue +122 -0
- package/components/common/RichText/plugins/editable/README.md +137 -0
- package/components/common/RichText/plugins/editable/config.js +15 -0
- package/components/common/RichText/plugins/editable/miniprogram/build.js +813 -0
- package/components/common/RichText/plugins/editable/miniprogram/index.js +551 -0
- package/components/common/RichText/plugins/editable/uni-app/build.js +744 -0
- package/components/common/RichText/plugins/editable/uni-app/index.js +553 -0
- package/components/common/RichText/plugins/emoji/README.md +15 -0
- package/components/common/RichText/plugins/emoji/index.js +203 -0
- package/components/common/RichText/plugins/highlight/README.md +26 -0
- package/components/common/RichText/plugins/highlight/config.js +5 -0
- package/components/common/RichText/plugins/highlight/index.js +96 -0
- package/components/common/RichText/plugins/highlight/miniprogram/build.js +88 -0
- package/components/common/RichText/plugins/highlight/prism.css +125 -0
- package/components/common/RichText/plugins/highlight/prism.min.js +7 -0
- package/components/common/RichText/plugins/highlight/uni-app/build.js +88 -0
- package/components/common/RichText/plugins/img-cache/README.md +24 -0
- package/components/common/RichText/plugins/img-cache/build.js +16 -0
- package/components/common/RichText/plugins/img-cache/index.js +138 -0
- package/components/common/RichText/plugins/latex/README.md +16 -0
- package/components/common/RichText/plugins/latex/build.js +14 -0
- package/components/common/RichText/plugins/latex/index.js +77 -0
- package/components/common/RichText/plugins/latex/katex.css +1070 -0
- package/components/common/RichText/plugins/latex/katex.min.js +1 -0
- package/components/common/RichText/plugins/markdown/README.md +17 -0
- package/components/common/RichText/plugins/markdown/index.js +34 -0
- package/components/common/RichText/plugins/markdown/marked.min.js +6 -0
- package/components/common/RichText/plugins/markdown/miniprogram/build.js +70 -0
- package/components/common/RichText/plugins/markdown/uni-app/build.js +68 -0
- package/components/common/RichText/plugins/search/README.md +46 -0
- package/components/common/RichText/plugins/search/miniprogram/index.js +137 -0
- package/components/common/RichText/plugins/search/uni-app/index.js +132 -0
- package/components/common/RichText/plugins/style/README.md +30 -0
- package/components/common/RichText/plugins/style/index.js +129 -0
- package/components/common/RichText/plugins/style/parser.js +175 -0
- package/components/common/RichText/plugins/template/README.md +2 -0
- package/components/common/RichText/plugins/template/build.js +65 -0
- package/components/common/RichText/plugins/template/index.js +67 -0
- package/components/common/RichText/plugins/txv-video/README.md +18 -0
- package/components/common/RichText/plugins/txv-video/build.js +3 -0
- package/components/common/RichText/plugins/txv-video/index.js +46 -0
- package/components/common/RichText/plugins/txv-video/miniprogram/build.js +6 -0
- package/components/common/RichText/plugins/txv-video/uni-app/build.js +3 -0
- package/components/common/RichText/src/miniprogram/index.js +396 -0
- package/components/common/RichText/src/miniprogram/index.json +6 -0
- package/components/common/RichText/src/miniprogram/index.wxml +7 -0
- package/components/common/RichText/src/miniprogram/index.wxss +13 -0
- package/components/common/RichText/src/miniprogram/node/node.js +247 -0
- package/components/common/RichText/src/miniprogram/node/node.json +6 -0
- package/components/common/RichText/src/miniprogram/node/node.wxml +112 -0
- package/components/common/RichText/src/miniprogram/node/node.wxss +164 -0
- package/components/common/RichText/src/miniprogram/parser.js +1269 -0
- package/components/common/RichText/src/uni-app/components/mp-html/mp-html.vue +498 -0
- package/components/common/RichText/src/uni-app/components/mp-html/node/node.vue +585 -0
- package/components/common/RichText/src/uni-app/components/mp-html/parser.js +1393 -0
- package/components/common/RichText/src/uni-app/static/app-plus/mp-html/js/handler.js +254 -0
- package/components/common/RichText/src/uni-app/static/app-plus/mp-html/js/uni.webview.min.js +1 -0
- package/components/common/RichText/src/uni-app/static/app-plus/mp-html/local.html +33 -0
- package/components/common/RichText/tools/config.js +82 -0
- package/components/common/RichText/tools/converter.js +205 -0
- package/components/common/RichText/tools/ifdef.js +115 -0
- package/components/common/RichText/tools/minifier.js +40 -0
- package/components/common/RichText/tools/plugin.js +248 -0
- package/components/common/Toast/index-web.ts +122 -0
- package/components/common/Toast/index-web.vue +178 -0
- package/components/common/Toast/type.ts +8 -0
- package/components/common/common.scss +59 -0
- package/components/customer-icon.vue +56 -0
- package/components/message-branch.vue +120 -0
- package/components/message-customer-service.vue +114 -0
- package/components/message-form/form-branch.vue +68 -0
- package/components/message-form/form-input.vue +242 -0
- package/components/message-form/index.vue +80 -0
- package/components/message-multi-branch/branch-pc.vue +79 -0
- package/components/message-multi-branch/index.vue +60 -0
- package/components/message-multi-form/component-mobile/form-popup.vue +37 -0
- package/components/message-multi-form/component-mobile/input-mobile.vue +102 -0
- package/components/message-multi-form/component-mobile/label-mobile.vue +32 -0
- package/components/message-multi-form/component-mobile/radios-mobile.vue +161 -0
- package/components/message-multi-form/component-pc/input-pc.vue +93 -0
- package/components/message-multi-form/component-pc/label-pc.vue +33 -0
- package/components/message-multi-form/component-pc/radio-pc.vue +98 -0
- package/components/message-multi-form/form-mobile.vue +385 -0
- package/components/message-multi-form/form-pc.vue +184 -0
- package/components/message-multi-form/index.vue +61 -0
- package/components/message-product-card.vue +129 -0
- package/components/message-rating/index.vue +56 -0
- package/components/message-rating/message-rating-number.vue +247 -0
- package/components/message-rating/message-rating-star.vue +237 -0
- package/components/message-rich-text.vue +155 -0
- package/components/message-robot-welcome.vue +181 -0
- package/components/message-stream.vue +109 -0
- package/constant.ts +122 -0
- package/excluded-list.txt +6 -0
- package/index.ts +30 -0
- package/index.vue +60 -0
- package/interface.ts +176 -0
- package/logger/index.ts +12 -0
- package/logger/main.ts +120 -0
- package/package.json +62 -0
- package/script/fileCopy.js +60 -0
- package/script/syncVersion.js +35 -0
- package/server.ts +128 -0
- package/styles/common.scss +116 -0
- package/tsconfig.json +34 -0
- package/typings.d.ts +20 -0
- package/utils/chatStorage.ts +70 -0
- package/utils/copy-web.ts +141 -0
- package/utils/enableSampleTaskStatus.ts +8 -0
- package/utils/env.ts +15 -0
- package/utils/index.ts +59 -0
- package/utils/utils.ts +162 -0
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
.emoji-picker {
|
|
2
|
+
width: 405px;
|
|
3
|
+
height: 300px;
|
|
4
|
+
display: flex;
|
|
5
|
+
flex-direction: column;
|
|
6
|
+
|
|
7
|
+
&-list {
|
|
8
|
+
flex: 1;
|
|
9
|
+
display: flex;
|
|
10
|
+
flex-wrap: wrap;
|
|
11
|
+
overflow-y: auto;
|
|
12
|
+
margin: 2px;
|
|
13
|
+
|
|
14
|
+
&::-webkit-scrollbar {
|
|
15
|
+
display: none;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
&-item {
|
|
19
|
+
cursor: pointer;
|
|
20
|
+
padding: 5px;
|
|
21
|
+
|
|
22
|
+
.emoji {
|
|
23
|
+
width: 30px;
|
|
24
|
+
height: 30px;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.emoji-big {
|
|
28
|
+
width: 70px;
|
|
29
|
+
height: 70px;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
&-tab {
|
|
35
|
+
display: flex;
|
|
36
|
+
align-items: center;
|
|
37
|
+
|
|
38
|
+
&-item {
|
|
39
|
+
padding: 0 10px;
|
|
40
|
+
cursor: pointer;
|
|
41
|
+
|
|
42
|
+
.icon {
|
|
43
|
+
margin: 10px;
|
|
44
|
+
width: 20px;
|
|
45
|
+
height: 20px;
|
|
46
|
+
|
|
47
|
+
&-big {
|
|
48
|
+
margin: 2px 0;
|
|
49
|
+
width: 30px;
|
|
50
|
+
height: 30px;
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
}
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<ToolbarItemContainer
|
|
3
|
+
:iconFile="isH5?fileIconH5:fileIcon"
|
|
4
|
+
title="文件"
|
|
5
|
+
:iconWidth="isUniFrameWork ? '32px' : '21px'"
|
|
6
|
+
:iconHeight="isUniFrameWork ? '25px' : '18px'"
|
|
7
|
+
:needDialog="false"
|
|
8
|
+
@onIconClick="onIconClick"
|
|
9
|
+
>
|
|
10
|
+
<div :class="['file-upload', !isPC && 'file-upload-h5']">
|
|
11
|
+
<input
|
|
12
|
+
ref="inputRef"
|
|
13
|
+
title="文件"
|
|
14
|
+
type="file"
|
|
15
|
+
data-type="file"
|
|
16
|
+
accept="*"
|
|
17
|
+
@change="sendFileMessage"
|
|
18
|
+
>
|
|
19
|
+
</div>
|
|
20
|
+
</ToolbarItemContainer>
|
|
21
|
+
</template>
|
|
22
|
+
<script lang="ts" setup>
|
|
23
|
+
import {
|
|
24
|
+
TUIChatService,
|
|
25
|
+
TUIStore,
|
|
26
|
+
StoreName,
|
|
27
|
+
IConversationModel,
|
|
28
|
+
SendMessageParams,
|
|
29
|
+
SendMessageOptions,
|
|
30
|
+
} from '@tencentcloud/chat-uikit-engine';
|
|
31
|
+
import vue from '../../../../adapter-vue';
|
|
32
|
+
import ToolbarItemContainer from '../toolbar-item-container/index.vue';
|
|
33
|
+
import fileIcon from '../../../../assets/files.png';
|
|
34
|
+
import fileIconH5 from '../../../../assets/file-h5.png';
|
|
35
|
+
import { isPC, isUniFrameWork,isH5 } from '../../../../utils/env';
|
|
36
|
+
import { isEnabledMessageReadReceiptGlobal } from '../../../../utils/utils';
|
|
37
|
+
const { ref } = vue;
|
|
38
|
+
|
|
39
|
+
const inputRef = ref();
|
|
40
|
+
const currentConversation = ref<IConversationModel>();
|
|
41
|
+
|
|
42
|
+
TUIStore.watch(StoreName.CONV, {
|
|
43
|
+
currentConversation: (conversation: IConversationModel) => {
|
|
44
|
+
currentConversation.value = conversation;
|
|
45
|
+
},
|
|
46
|
+
});
|
|
47
|
+
|
|
48
|
+
const onIconClick = () => {
|
|
49
|
+
if (isUniFrameWork) {
|
|
50
|
+
return;
|
|
51
|
+
} else {
|
|
52
|
+
inputRef?.value?.click && inputRef?.value?.click();
|
|
53
|
+
}
|
|
54
|
+
};
|
|
55
|
+
|
|
56
|
+
const sendFileMessage = (e: any) => {
|
|
57
|
+
if (e?.target?.files?.length <= 0) {
|
|
58
|
+
return;
|
|
59
|
+
}
|
|
60
|
+
const options = {
|
|
61
|
+
to:
|
|
62
|
+
currentConversation?.value?.groupProfile?.groupID
|
|
63
|
+
|| currentConversation?.value?.userProfile?.userID,
|
|
64
|
+
conversationType: currentConversation?.value?.type,
|
|
65
|
+
payload: {
|
|
66
|
+
file: e?.target,
|
|
67
|
+
},
|
|
68
|
+
needReadReceipt: isEnabledMessageReadReceiptGlobal(),
|
|
69
|
+
} as SendMessageParams;
|
|
70
|
+
const sendMessageOptions: SendMessageOptions = {};
|
|
71
|
+
TUIChatService.sendFileMessage(options, sendMessageOptions);
|
|
72
|
+
e.target.value = '';
|
|
73
|
+
};
|
|
74
|
+
</script>
|
|
75
|
+
<style lang="scss" scoped>
|
|
76
|
+
@import "../../style/common";
|
|
77
|
+
</style>
|
|
@@ -0,0 +1,185 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<ToolbarItemContainer
|
|
3
|
+
:iconFile="imageToolbarForShow.icon"
|
|
4
|
+
:title="imageToolbarForShow.title"
|
|
5
|
+
:iconWidth="isUniFrameWork ? '32px' : '21px'"
|
|
6
|
+
:iconHeight="isUniFrameWork ? '25px' : '18px'"
|
|
7
|
+
:needDialog="false"
|
|
8
|
+
@onIconClick="onIconClick"
|
|
9
|
+
:isH5ToolShow="isH5ToolShow"
|
|
10
|
+
>
|
|
11
|
+
<div
|
|
12
|
+
v-if="!isUniFrameWork"
|
|
13
|
+
:class="['image-upload', !isPC && 'image-upload-h5','image-video']"
|
|
14
|
+
>
|
|
15
|
+
<input
|
|
16
|
+
ref="inputRef"
|
|
17
|
+
title="图片"
|
|
18
|
+
type="file"
|
|
19
|
+
accept="image/gif,image/jpeg,image/jpg,image/png,image/bmp,image/webp,video/mov,video/mp4"
|
|
20
|
+
@change="sendImageInWeb"
|
|
21
|
+
>
|
|
22
|
+
</div>
|
|
23
|
+
</ToolbarItemContainer>
|
|
24
|
+
</template>
|
|
25
|
+
<script lang="ts" setup>
|
|
26
|
+
import {
|
|
27
|
+
TUIChatService,
|
|
28
|
+
TUIStore,
|
|
29
|
+
StoreName,
|
|
30
|
+
IConversationModel,
|
|
31
|
+
SendMessageParams,
|
|
32
|
+
SendMessageOptions,
|
|
33
|
+
} from '@tencentcloud/chat-uikit-engine';
|
|
34
|
+
import { TUIGlobal } from '@tencentcloud/universal-api';
|
|
35
|
+
import vue from '../../../../adapter-vue';
|
|
36
|
+
import { isPC, isH5,isWeChat, isUniFrameWork } from '../../../../utils/env';
|
|
37
|
+
import ToolbarItemContainer from '../toolbar-item-container/index.vue';
|
|
38
|
+
import imageIcon from '../../../../assets/image.png';
|
|
39
|
+
import imageUniIcon from '../../../../assets/image-uni.png';
|
|
40
|
+
import cameraUniIcon from '../../../../assets/camera-uni.png';
|
|
41
|
+
import { isEnabledMessageReadReceiptGlobal } from '../../../../utils/utils';
|
|
42
|
+
const { ref, computed } = vue;
|
|
43
|
+
|
|
44
|
+
const props = defineProps({
|
|
45
|
+
// Image source: only valid for uni-app version, web version only supports selecting images from the album.
|
|
46
|
+
// album: Select from album
|
|
47
|
+
// camera: Take a photo using the camera
|
|
48
|
+
imageSourceType: {
|
|
49
|
+
type: String,
|
|
50
|
+
default: 'album',
|
|
51
|
+
},
|
|
52
|
+
isH5ToolShow:{
|
|
53
|
+
type:Boolean,
|
|
54
|
+
default:false,
|
|
55
|
+
}
|
|
56
|
+
});
|
|
57
|
+
|
|
58
|
+
const inputRef = ref();
|
|
59
|
+
const currentConversation = ref<IConversationModel>();
|
|
60
|
+
const IMAGE_TOOLBAR_SHOW_MAP = {
|
|
61
|
+
web_album: {
|
|
62
|
+
icon: imageIcon,
|
|
63
|
+
title: '图片',
|
|
64
|
+
},
|
|
65
|
+
uni_album: {
|
|
66
|
+
icon: imageUniIcon,
|
|
67
|
+
title: '图片',
|
|
68
|
+
},
|
|
69
|
+
uni_camera: {
|
|
70
|
+
icon: cameraUniIcon,
|
|
71
|
+
title: '拍照',
|
|
72
|
+
},
|
|
73
|
+
};
|
|
74
|
+
|
|
75
|
+
TUIStore.watch(StoreName.CONV, {
|
|
76
|
+
currentConversation: (conversation: IConversationModel) => {
|
|
77
|
+
currentConversation.value = conversation;
|
|
78
|
+
},
|
|
79
|
+
});
|
|
80
|
+
|
|
81
|
+
const imageToolbarForShow = computed((): { icon: string; title: string } => {
|
|
82
|
+
if (isUniFrameWork) {
|
|
83
|
+
return props.imageSourceType === 'camera'
|
|
84
|
+
? IMAGE_TOOLBAR_SHOW_MAP['uni_camera']
|
|
85
|
+
: IMAGE_TOOLBAR_SHOW_MAP['uni_album'];
|
|
86
|
+
} else if(isH5){
|
|
87
|
+
return IMAGE_TOOLBAR_SHOW_MAP['uni_album'];
|
|
88
|
+
}
|
|
89
|
+
else {
|
|
90
|
+
return IMAGE_TOOLBAR_SHOW_MAP['web_album'];
|
|
91
|
+
}
|
|
92
|
+
});
|
|
93
|
+
|
|
94
|
+
const onIconClick = () => {
|
|
95
|
+
// uni-app send image
|
|
96
|
+
if (isUniFrameWork) {
|
|
97
|
+
if (isWeChat && TUIGlobal?.chooseMedia) {
|
|
98
|
+
TUIGlobal?.chooseMedia({
|
|
99
|
+
count: 1,
|
|
100
|
+
mediaType: ['image','video'],
|
|
101
|
+
sizeType: ['original', 'compressed'],
|
|
102
|
+
sourceType: [props.imageSourceType], // Use camera or select from album.
|
|
103
|
+
success: function (res: any) {
|
|
104
|
+
if(res.tempFiles[0].fileType == 'image'){
|
|
105
|
+
sendImageMessage(res);
|
|
106
|
+
} else if(res.tempFiles[0].fileType == 'video'){
|
|
107
|
+
sendVideoMessage(res);
|
|
108
|
+
}
|
|
109
|
+
},
|
|
110
|
+
});
|
|
111
|
+
} else {
|
|
112
|
+
// uni-app H5/App send image
|
|
113
|
+
TUIGlobal?.chooseImage({
|
|
114
|
+
count: 1,
|
|
115
|
+
sourceType: [props.imageSourceType], // Use camera or select from album.
|
|
116
|
+
success: function (res) {
|
|
117
|
+
sendImageMessage(res);
|
|
118
|
+
},
|
|
119
|
+
});
|
|
120
|
+
}
|
|
121
|
+
} else {
|
|
122
|
+
console.log("imageToolbarForShow.value.icon")
|
|
123
|
+
if (inputRef.value?.click) {
|
|
124
|
+
inputRef.value.click();
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
};
|
|
128
|
+
|
|
129
|
+
const sendImageInWeb = (e: any) => {
|
|
130
|
+
if (e?.target?.files?.length <= 0) {
|
|
131
|
+
return;
|
|
132
|
+
}
|
|
133
|
+
const file = e.target.files[0];
|
|
134
|
+
console.log("file")
|
|
135
|
+
console.log(file)
|
|
136
|
+
if (file.type.startsWith('image/')) {
|
|
137
|
+
// 处理图片文件
|
|
138
|
+
sendImageMessage(e?.target);
|
|
139
|
+
} else if (file.type.startsWith('video/')) {
|
|
140
|
+
// 处理视频文件
|
|
141
|
+
sendVideoMessage(e?.target);
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
e.target.value = '';
|
|
145
|
+
};
|
|
146
|
+
|
|
147
|
+
const sendImageMessage = (files: any) => {
|
|
148
|
+
if (!files) {
|
|
149
|
+
return;
|
|
150
|
+
}
|
|
151
|
+
const options = {
|
|
152
|
+
to:
|
|
153
|
+
currentConversation?.value?.groupProfile?.groupID
|
|
154
|
+
|| currentConversation?.value?.userProfile?.userID,
|
|
155
|
+
conversationType: currentConversation?.value?.type,
|
|
156
|
+
payload: {
|
|
157
|
+
file: files,
|
|
158
|
+
},
|
|
159
|
+
needReadReceipt: isEnabledMessageReadReceiptGlobal(),
|
|
160
|
+
} as SendMessageParams;
|
|
161
|
+
const sendMessageOptions: SendMessageOptions = {};
|
|
162
|
+
TUIChatService.sendImageMessage(options, sendMessageOptions);
|
|
163
|
+
};
|
|
164
|
+
const sendVideoMessage = (file: any) => {
|
|
165
|
+
if (!file) {
|
|
166
|
+
return;
|
|
167
|
+
}
|
|
168
|
+
const options = {
|
|
169
|
+
to:
|
|
170
|
+
currentConversation?.value?.groupProfile?.groupID
|
|
171
|
+
|| currentConversation?.value?.userProfile?.userID,
|
|
172
|
+
conversationType: currentConversation?.value?.type,
|
|
173
|
+
payload: {
|
|
174
|
+
file,
|
|
175
|
+
},
|
|
176
|
+
needReadReceipt: isEnabledMessageReadReceiptGlobal(),
|
|
177
|
+
} as SendMessageParams;
|
|
178
|
+
const sendMessageOptions: SendMessageOptions = {};
|
|
179
|
+
TUIChatService.sendVideoMessage(options, sendMessageOptions);
|
|
180
|
+
};
|
|
181
|
+
</script>
|
|
182
|
+
|
|
183
|
+
<style lang="scss" scoped>
|
|
184
|
+
@import "../../style/common";
|
|
185
|
+
</style>
|
|
@@ -0,0 +1,191 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div
|
|
3
|
+
:class="[
|
|
4
|
+
'message-input-toolbar',
|
|
5
|
+
!isPC && 'message-input-toolbar-h5',
|
|
6
|
+
isUniFrameWork && 'message-input-toolbar-uni',
|
|
7
|
+
]"
|
|
8
|
+
>
|
|
9
|
+
<div
|
|
10
|
+
:class="[
|
|
11
|
+
'message-input-toolbar-list',
|
|
12
|
+
!isPC && 'message-input-toolbar-h5-list',
|
|
13
|
+
isUniFrameWork && 'message-input-toolbar-uni-list',
|
|
14
|
+
]"
|
|
15
|
+
>
|
|
16
|
+
<EmojiPicker
|
|
17
|
+
ref="emojiPickerRef"
|
|
18
|
+
@insertEmoji="insertEmoji"
|
|
19
|
+
@dialogShowInH5="dialogShowInH5"
|
|
20
|
+
@dialogCloseInH5="dialogCloseInH5"
|
|
21
|
+
@changeToolbarDisplayType="
|
|
22
|
+
(type) => emits('changeToolbarDisplayType', type)
|
|
23
|
+
"
|
|
24
|
+
:isH5EmojiShow="isH5EmojiShow"
|
|
25
|
+
@sendMessage="sendMessage"
|
|
26
|
+
/>
|
|
27
|
+
<ImageUpload imageSourceType="album" :isH5ToolShow="isH5ToolShow"/>
|
|
28
|
+
<FileUpload :isH5ToolShow="isH5ToolShow"/>
|
|
29
|
+
<!-- <VideoUpload videoSourceType="album" /> -->
|
|
30
|
+
</div>
|
|
31
|
+
<div
|
|
32
|
+
v-if="isH5"
|
|
33
|
+
ref="h5Dialog"
|
|
34
|
+
:class="['message-input-toolbar-h5-dialog']"
|
|
35
|
+
/>
|
|
36
|
+
</div>
|
|
37
|
+
</template>
|
|
38
|
+
<script setup lang="ts">
|
|
39
|
+
import vue from '../../../adapter-vue';
|
|
40
|
+
import TUIChatEngine, {
|
|
41
|
+
IConversationModel,
|
|
42
|
+
TUIStore,
|
|
43
|
+
StoreName,
|
|
44
|
+
} from '@tencentcloud/chat-uikit-engine';
|
|
45
|
+
import EmojiPicker from './emoji-picker/index.vue';
|
|
46
|
+
import ImageUpload from './image-upload/index.vue';
|
|
47
|
+
import FileUpload from './file-upload/index.vue';
|
|
48
|
+
import VideoUpload from './video-upload/index.vue';
|
|
49
|
+
import { isPC, isH5, isUniFrameWork } from '../../../utils/env';
|
|
50
|
+
import { ToolbarDisplayType } from '../../../interface';
|
|
51
|
+
const { ref, onMounted, onUnmounted, watch } = vue;
|
|
52
|
+
|
|
53
|
+
interface IProps {
|
|
54
|
+
displayType: ToolbarDisplayType;
|
|
55
|
+
isH5EmojiShow:boolean;
|
|
56
|
+
isH5ToolShow:boolean;
|
|
57
|
+
}
|
|
58
|
+
interface IEmits {
|
|
59
|
+
(e: 'scrollToLatestMessage'): void;
|
|
60
|
+
(e: 'changeToolbarDisplayType', type: ToolbarDisplayType): void;
|
|
61
|
+
(e: 'insertEmoji', emoji: any): void;
|
|
62
|
+
(e:'sendMessage'):void;
|
|
63
|
+
}
|
|
64
|
+
const props = withDefaults(defineProps<IProps>(), {
|
|
65
|
+
displayType: 'none',
|
|
66
|
+
isH5EmojiShow:false,
|
|
67
|
+
isH5ToolShow:false,
|
|
68
|
+
});
|
|
69
|
+
|
|
70
|
+
const emits = defineEmits<IEmits>();
|
|
71
|
+
const h5Dialog = ref<HTMLElement>();
|
|
72
|
+
const currentConversation = ref<IConversationModel>();
|
|
73
|
+
const isGroup = ref<boolean>(false);
|
|
74
|
+
const emojiPickerRef = ref<InstanceType<typeof EmojiPicker>>();
|
|
75
|
+
|
|
76
|
+
onMounted(() => {
|
|
77
|
+
TUIStore.watch(StoreName.CONV, {
|
|
78
|
+
currentConversation: onCurrentConversationUpdate,
|
|
79
|
+
});
|
|
80
|
+
});
|
|
81
|
+
|
|
82
|
+
onUnmounted(() => {
|
|
83
|
+
TUIStore.unwatch(StoreName.CONV, {
|
|
84
|
+
currentConversation: onCurrentConversationUpdate,
|
|
85
|
+
});
|
|
86
|
+
});
|
|
87
|
+
|
|
88
|
+
watch(
|
|
89
|
+
() => props.displayType,
|
|
90
|
+
(newValue) => {
|
|
91
|
+
if (newValue === 'none') {
|
|
92
|
+
emojiPickerRef.value?.closeEmojiPicker();
|
|
93
|
+
} else {
|
|
94
|
+
emits('scrollToLatestMessage');
|
|
95
|
+
}
|
|
96
|
+
},
|
|
97
|
+
);
|
|
98
|
+
|
|
99
|
+
watch(
|
|
100
|
+
() => props.isH5EmojiShow,
|
|
101
|
+
(newValue) => {
|
|
102
|
+
if (newValue === false) {
|
|
103
|
+
emojiPickerRef.value?.closeEmojiPicker();
|
|
104
|
+
}
|
|
105
|
+
},
|
|
106
|
+
);
|
|
107
|
+
|
|
108
|
+
const onCurrentConversationUpdate = (conversation: IConversationModel) => {
|
|
109
|
+
currentConversation.value = conversation;
|
|
110
|
+
isGroup.value
|
|
111
|
+
= currentConversation?.value?.type === TUIChatEngine.TYPES.CONV_GROUP;
|
|
112
|
+
};
|
|
113
|
+
|
|
114
|
+
const insertEmoji = (emojiObj: object) => {
|
|
115
|
+
emits('insertEmoji', emojiObj);
|
|
116
|
+
};
|
|
117
|
+
|
|
118
|
+
const sendMessage = () =>{
|
|
119
|
+
emits('sendMessage');
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
const dialogShowInH5 = (dialogDom: any) => {
|
|
123
|
+
if (!isH5) {
|
|
124
|
+
return;
|
|
125
|
+
}
|
|
126
|
+
h5Dialog.value?.appendChild && h5Dialog.value?.appendChild(dialogDom);
|
|
127
|
+
};
|
|
128
|
+
|
|
129
|
+
const dialogCloseInH5 = (dialogDom: any) => {
|
|
130
|
+
if (!isH5) {
|
|
131
|
+
return;
|
|
132
|
+
}
|
|
133
|
+
if (dialogDom) {
|
|
134
|
+
h5Dialog.value?.removeChild && h5Dialog.value?.removeChild(dialogDom);
|
|
135
|
+
}
|
|
136
|
+
};
|
|
137
|
+
</script>
|
|
138
|
+
<style lang="scss" scoped>
|
|
139
|
+
@import "../style/common";
|
|
140
|
+
|
|
141
|
+
.message-input-toolbar {
|
|
142
|
+
border-top: 1px solid #f4f5f9;
|
|
143
|
+
width: 100%;
|
|
144
|
+
max-width: 100%;
|
|
145
|
+
display: flex;
|
|
146
|
+
flex-direction: row;
|
|
147
|
+
justify-content: space-between;
|
|
148
|
+
user-select: none;
|
|
149
|
+
-webkit-touch-callout: none;
|
|
150
|
+
-webkit-user-select: none;
|
|
151
|
+
-khtml-user-select: none;
|
|
152
|
+
-moz-user-select: none;
|
|
153
|
+
-ms-user-select: none;
|
|
154
|
+
|
|
155
|
+
&-list {
|
|
156
|
+
display: flex;
|
|
157
|
+
flex-direction: row;
|
|
158
|
+
align-items: center;
|
|
159
|
+
|
|
160
|
+
.extension-list {
|
|
161
|
+
list-style: none;
|
|
162
|
+
display: flex;
|
|
163
|
+
|
|
164
|
+
&-item {
|
|
165
|
+
width: 20px;
|
|
166
|
+
height: 20px;
|
|
167
|
+
padding: 12px 10px 1px;
|
|
168
|
+
cursor: pointer;
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
.message-input-toolbar-h5 {
|
|
175
|
+
padding: 5px 10px;
|
|
176
|
+
box-sizing: border-box;
|
|
177
|
+
flex-direction: column;
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
.message-input-toolbar-uni {
|
|
181
|
+
background-color: #ebf0f6;
|
|
182
|
+
flex-direction: column;
|
|
183
|
+
|
|
184
|
+
&-list {
|
|
185
|
+
flex: 1;
|
|
186
|
+
display: grid;
|
|
187
|
+
grid-template-columns: repeat(4, 25%);
|
|
188
|
+
grid-template-rows: repeat(2, 100px);
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
</style>
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
/* stylelint-disable */
|
|
2
|
+
.message-input-toolbar {
|
|
3
|
+
border-top: 1px solid #f4f5f9;
|
|
4
|
+
width: 100%;
|
|
5
|
+
max-width: 100%;
|
|
6
|
+
display: flex;
|
|
7
|
+
flex-direction: row;
|
|
8
|
+
justify-content: space-between;
|
|
9
|
+
z-index: 100;
|
|
10
|
+
user-select: none;
|
|
11
|
+
-webkit-touch-callout: none;
|
|
12
|
+
-webkit-user-select: none;
|
|
13
|
+
-khtml-user-select: none;
|
|
14
|
+
-moz-user-select: none;
|
|
15
|
+
-ms-user-select: none;
|
|
16
|
+
|
|
17
|
+
&-list {
|
|
18
|
+
display: flex;
|
|
19
|
+
flex-direction: row;
|
|
20
|
+
align-items: center;
|
|
21
|
+
|
|
22
|
+
.extension-list {
|
|
23
|
+
list-style: none;
|
|
24
|
+
display: flex;
|
|
25
|
+
|
|
26
|
+
&-item {
|
|
27
|
+
width: 20px;
|
|
28
|
+
height: 20px;
|
|
29
|
+
padding: 12px 10px 1px;
|
|
30
|
+
cursor: pointer;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
.message-input-toolbar-h5 {
|
|
37
|
+
padding: 5px 10px;
|
|
38
|
+
box-sizing: border-box;
|
|
39
|
+
flex-direction: column;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.message-input-toolbar-uni {
|
|
43
|
+
background-color: transparent;
|
|
44
|
+
flex-direction: column;
|
|
45
|
+
z-index: 100;
|
|
46
|
+
|
|
47
|
+
&-list {
|
|
48
|
+
flex: 1;
|
|
49
|
+
display: grid;
|
|
50
|
+
grid-template-columns: repeat(4, 25%);
|
|
51
|
+
grid-template-rows: repeat(2, 100px);
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
// uniapp swiper style
|
|
56
|
+
wx-swiper .wx-swiper-wrapper,
|
|
57
|
+
wx-swiper .wx-swiper-slides,
|
|
58
|
+
wx-swiper .wx-swiper-slide-frame,
|
|
59
|
+
.message-input-toolbar-list {
|
|
60
|
+
overflow: visible !important;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
.message-input-toolbar {
|
|
64
|
+
|
|
65
|
+
.bottom-popup,
|
|
66
|
+
.bottom-popup-h5,
|
|
67
|
+
.bottom-popup-uni {
|
|
68
|
+
position: sticky !important;
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
.message-input-toolbar-swiper {
|
|
73
|
+
width: 100%;
|
|
74
|
+
height: 220px;
|
|
75
|
+
|
|
76
|
+
::v-deep .uni-swiper-wrapper,
|
|
77
|
+
wx-swiper .wx-swiper-wrapper {
|
|
78
|
+
overflow: visible !important;
|
|
79
|
+
|
|
80
|
+
.uni-swiper-slides,
|
|
81
|
+
.wx-swiper-slides,
|
|
82
|
+
wx-swiper .wx-swiper-slides {
|
|
83
|
+
overflow: visible !important;
|
|
84
|
+
|
|
85
|
+
.uni-swiper-slide-frame,
|
|
86
|
+
.wx-swiper-slide-frame,
|
|
87
|
+
wx-swiper .wx-swiper-slide-frame {
|
|
88
|
+
overflow: visible !important;
|
|
89
|
+
|
|
90
|
+
.message-input-toolbar-list {
|
|
91
|
+
overflow: visible !important;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
.toolbar-item-container-uni {
|
|
95
|
+
position: static !important;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
.toolbar-item-container-dialog {
|
|
99
|
+
position: absolute !important;
|
|
100
|
+
background: transparent;
|
|
101
|
+
left: -10px;
|
|
102
|
+
bottom: -5px;
|
|
103
|
+
|
|
104
|
+
.bottom-popup-uni {
|
|
105
|
+
position: sticky !important;
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
}
|