@web-utils/component 2.7.30 → 2.7.32
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/dist/chunks/{config.7dec2bf2.js → config.75161c38.mjs} +29 -29
- package/dist/chunks/confirmable-mixin.851d6299.mjs +137 -0
- package/dist/chunks/dataformat.3388d88a.mjs +237 -0
- package/dist/chunks/detail.37726835.mjs +55 -0
- package/dist/chunks/dic.09a81bc8.mjs +215 -0
- package/dist/chunks/{event.fc358074.js → event.6fc3df3a.mjs} +54 -23
- package/dist/chunks/{form-input-mixin.760cd65d.js → form-input-mixin.e7f93f4c.mjs} +4 -4
- package/dist/chunks/{form-item-mixin.fa314b67.js → form-item-mixin.a2ed6693.mjs} +44 -17
- package/dist/chunks/{form-pick-mixin.c4e0391b.js → form-pick-mixin.822300f3.mjs} +1 -1
- package/dist/chunks/{init.e0133910.js → init.3407e589.mjs} +41 -21
- package/dist/chunks/{input-number-mixin.6849fa63.js → input-number-mixin.44b78389.mjs} +4 -4
- package/dist/chunks/{mixins.6a394a6c.js → mixins.e1939731.mjs} +3 -2
- package/dist/chunks/{packages.419bde01.js → packages.c4ea639d.mjs} +12 -6
- package/dist/chunks/{permission.07c49abf.js → permission.9c766972.mjs} +6 -1
- package/dist/chunks/slot.55598d0f.mjs +35 -0
- package/dist/chunks/{tab-mixin.9d568df9.js → tab-mixin.9d848bf6.mjs} +29 -11
- package/dist/chunks/util.b0d0b0ad.mjs +478 -0
- package/dist/chunks/{utils.d7f73f8d.js → utils.2a3ffac9.mjs} +89 -24
- package/dist/chunks/{utils.f44207f4.js → utils.a8891d2c.mjs} +9 -5
- package/dist/chunks/vueComponentNormalizer.9c6b8b3d.mjs +59 -0
- package/dist/components/address-input/{index.js → index.mjs} +30 -17
- package/dist/components/address-input/style.css +15 -1
- package/dist/components/affix/index.mjs +152 -0
- package/dist/components/affix/style.css +5 -1
- package/dist/components/aside-menu/{index.js → index.mjs} +14 -8
- package/dist/components/aside-menu/style.css +9 -1
- package/dist/components/avatar/{index.js → index.mjs} +33 -15
- package/dist/components/avatar/style.css +57 -1
- package/dist/components/awesome-button/{index.js → index.mjs} +45 -31
- package/dist/components/base.css +410 -1
- package/dist/components/capsule-tab/{index.js → index.mjs} +13 -7
- package/dist/components/capsule-tab/style.css +32 -1
- package/dist/components/card/{index.js → index.mjs} +33 -20
- package/dist/components/card/style.css +90 -1
- package/dist/components/carousel/{index.js → index.mjs} +18 -12
- package/dist/components/carousel/style.css +41 -1
- package/dist/components/chat/{index.js → index.mjs} +245 -139
- package/dist/components/chat/style.css +279 -1
- package/dist/components/chunk-file-uploader/index.mjs +153 -0
- package/dist/components/chunk-file-uploader/style.css +4 -1
- package/dist/components/chunk-file-uploader-button/{index.js → index.mjs} +15 -9
- package/dist/components/chunk-file-uploader-button/style.css +17 -1
- package/dist/components/chunk-file-uploader-drop/index.mjs +101 -0
- package/dist/components/chunk-file-uploader-drop/style.css +12 -1
- package/dist/components/chunk-file-uploader-file/{index.js → index.mjs} +150 -73
- package/dist/components/chunk-file-uploader-file/style.css +125 -1
- package/dist/components/chunk-file-uploader-files/{index.js → index.mjs} +15 -9
- package/dist/components/chunk-file-uploader-files/style.css +9 -1
- package/dist/components/chunk-file-uploader-list/{index.js → index.mjs} +16 -10
- package/dist/components/chunk-file-uploader-list/style.css +9 -1
- package/dist/components/chunk-file-uploader-un-support/{index.js → index.mjs} +18 -10
- package/dist/components/chunk-file-uploader-un-support/style.css +6 -1
- package/dist/components/code-mirror-editor/{index.js → index.mjs} +75 -47
- package/dist/components/code-mirror-editor/style.css +17 -1
- package/dist/components/color-picker/{index.js → index.mjs} +62 -39
- package/dist/components/column/{index.js → index.mjs} +54 -29
- package/dist/components/column-default/{index.js → index.mjs} +47 -33
- package/dist/components/column-dynamic/{index.js → index.mjs} +26 -19
- package/dist/components/column-menu/{index.js → index.mjs} +98 -86
- package/dist/components/column-slot/{index.js → index.mjs} +135 -75
- package/dist/components/comment/{index.js → index.mjs} +28 -15
- package/dist/components/comment/style.css +92 -1
- package/dist/components/confirm-button/{index.js → index.mjs} +7 -5
- package/dist/components/confirmable/{index.js → index.mjs} +5 -4
- package/dist/components/context-menu/{index.js → index.mjs} +54 -32
- package/dist/components/context-menu/style.css +88 -1
- package/dist/components/count-up/index.mjs +148 -0
- package/dist/components/custom-scrollbar/{index.js → index.mjs} +45 -21
- package/dist/components/data-box/{index.js → index.mjs} +22 -16
- package/dist/components/data-box/style.css +58 -1
- package/dist/components/data-card/{index.js → index.mjs} +21 -15
- package/dist/components/data-card/style.css +46 -1
- package/dist/components/data-cardtext/{index.js → index.mjs} +19 -13
- package/dist/components/data-cardtext/style.css +36 -1
- package/dist/components/data-display/{index.js → index.mjs} +22 -16
- package/dist/components/data-display/style.css +37 -1
- package/dist/components/data-icons/{index.js → index.mjs} +23 -17
- package/dist/components/data-icons/style.css +53 -1
- package/dist/components/data-imgtext/{index.js → index.mjs} +26 -20
- package/dist/components/data-imgtext/style.css +70 -1
- package/dist/components/data-operatext/{index.js → index.mjs} +20 -14
- package/dist/components/data-operatext/style.css +81 -1
- package/dist/components/data-panel/{index.js → index.mjs} +21 -15
- package/dist/components/data-panel/style.css +37 -1
- package/dist/components/data-pay/{index.js → index.mjs} +29 -23
- package/dist/components/data-pay/style.css +102 -1
- package/dist/components/data-price/{index.js → index.mjs} +19 -13
- package/dist/components/data-price/style.css +81 -1
- package/dist/components/data-progress/{index.js → index.mjs} +26 -20
- package/dist/components/data-progress/style.css +30 -1
- package/dist/components/data-rotate/{index.js → index.mjs} +21 -15
- package/dist/components/data-rotate/style.css +50 -1
- package/dist/components/data-table-picker/{index.js → index.mjs} +47 -28
- package/dist/components/data-tabs/{index.js → index.mjs} +22 -16
- package/dist/components/data-tabs/style.css +70 -1
- package/dist/components/dialog-column/{index.js → index.mjs} +46 -33
- package/dist/components/dialog-excel/{index.js → index.mjs} +102 -53
- package/dist/components/dialog-filter/{index.js → index.mjs} +64 -51
- package/dist/components/dialog-form/{index.js → index.mjs} +54 -34
- package/dist/components/dialog-form/style.css +10 -0
- package/dist/components/dynamic-table/{index.js → index.mjs} +66 -42
- package/dist/components/dynamic-table/style.css +30 -1
- package/dist/components/e-charts/{index.js → index.mjs} +127 -46
- package/dist/components/e-charts/style.css +10 -1
- package/dist/components/easy-popup/{index.js → index.mjs} +32 -14
- package/dist/components/easy-popup/style.css +18 -1
- package/dist/components/editable-progress/{index.js → index.mjs} +64 -31
- package/dist/components/editable-progress/style.css +37 -1
- package/dist/components/editable-tree/{index.js → index.mjs} +513 -287
- package/dist/components/editable-tree/style.css +82 -1
- package/dist/components/egd-collapse/{index.js → index.mjs} +25 -12
- package/dist/components/egd-collapse-item/{index.js → index.mjs} +41 -25
- package/dist/components/element-dialog/{index.js → index.mjs} +101 -48
- package/dist/components/element-dialog/style.css +88 -1
- package/dist/components/empty-view/{index.js → index.mjs} +13 -7
- package/dist/components/empty-view/style.css +17 -1
- package/dist/components/error-view/{index.js → index.mjs} +12 -6
- package/dist/components/error-view/style.css +17 -1
- package/dist/components/flex-column/index.mjs +84 -0
- package/dist/components/flex-item/index.mjs +116 -0
- package/dist/components/flex-row/index.mjs +84 -0
- package/dist/components/flex-scroller/{index.js → index.mjs} +13 -7
- package/dist/components/flex-scroller/style.css +20 -1
- package/dist/components/flow/{index.js → index.mjs} +116 -64
- package/dist/components/flow/style.css +44 -1
- package/dist/components/flow-node/{index.js → index.mjs} +29 -21
- package/dist/components/flow-viewer/index.mjs +207 -0
- package/dist/components/flow-viewer/style.css +19 -1
- package/dist/components/form-button/{index.js → index.mjs} +12 -8
- package/dist/components/form-cascader/{index.js → index.mjs} +55 -40
- package/dist/components/form-checkbox-group/{index.js → index.mjs} +90 -60
- package/dist/components/form-checkbox-group/style.css +51 -1
- package/dist/components/form-date-picker/{index.js → index.mjs} +113 -44
- package/dist/components/form-group/{index.js → index.mjs} +23 -17
- package/dist/components/form-group/style.css +76 -1
- package/dist/components/form-holder/{index.js → index.mjs} +41 -30
- package/dist/components/form-input/{index.js → index.mjs} +42 -31
- package/dist/components/form-input-email/{index.js → index.mjs} +47 -30
- package/dist/components/form-input-id-card/{index.js → index.mjs} +40 -29
- package/dist/components/form-input-number/{index.js → index.mjs} +50 -38
- package/dist/components/form-input-number/style.css +12 -1
- package/dist/components/form-input-phone-number/{index.js → index.mjs} +40 -29
- package/dist/components/form-input-time/{index.js → index.mjs} +40 -29
- package/dist/components/form-item/index.mjs +199 -0
- package/dist/components/form-item/style.css +11 -1
- package/dist/components/form-item-config-provider/{index.js → index.mjs} +9 -8
- package/dist/components/form-item-group/{index.js → index.mjs} +69 -43
- package/dist/components/form-item-group/style.css +30 -1
- package/dist/components/form-radio-group/{index.js → index.mjs} +77 -53
- package/dist/components/form-radio-group/style.css +53 -1
- package/dist/components/form-select/{index.js → index.mjs} +71 -51
- package/dist/components/form-switch/{index.js → index.mjs} +41 -30
- package/dist/components/form-temp/{index.js → index.mjs} +49 -29
- package/dist/components/form-textarea/{index.js → index.mjs} +45 -34
- package/dist/components/form-view/{index.js → index.mjs} +152 -81
- package/dist/components/form-view/style.css +158 -1
- package/dist/components/fy-array/{index.js → index.mjs} +51 -43
- package/dist/components/fy-array/style.css +18 -1
- package/dist/components/fy-article/{index.js → index.mjs} +24 -13
- package/dist/components/fy-article/style.css +40 -1
- package/dist/components/fy-cascader/{index.js → index.mjs} +39 -29
- package/dist/components/fy-checkbox/{index.js → index.mjs} +38 -27
- package/dist/components/fy-checkbox/style.css +15 -1
- package/dist/components/fy-code/{index.js → index.mjs} +19 -12
- package/dist/components/fy-curd/{index.js → index.mjs} +290 -152
- package/dist/components/fy-curd/style.css +239 -1
- package/dist/components/fy-date/{index.js → index.mjs} +24 -18
- package/dist/components/fy-date/style.css +21 -1
- package/dist/components/fy-dialog-form/{index.js → index.mjs} +127 -54
- package/dist/components/fy-draggable/{index.js → index.mjs} +196 -73
- package/dist/components/fy-draggable/style.css +136 -1
- package/dist/components/fy-dynamic/{index.js → index.mjs} +116 -73
- package/dist/components/fy-dynamic/style.css +35 -1
- package/dist/components/fy-empty/{index.js → index.mjs} +15 -9
- package/dist/components/fy-empty/style.css +24 -1
- package/dist/components/fy-form/{index.js → index.mjs} +399 -221
- package/dist/components/fy-form/style.css +79 -1
- package/dist/components/fy-form-design/{index.js → index.mjs} +2267 -1630
- package/dist/components/fy-form-design/style.css +578 -1
- package/dist/components/fy-form-menu/{index.js → index.mjs} +43 -35
- package/dist/components/fy-input/{index.js → index.mjs} +46 -35
- package/dist/components/fy-input-color/{index.js → index.mjs} +40 -33
- package/dist/components/fy-input-icon/{index.js → index.mjs} +58 -37
- package/dist/components/fy-input-icon/style.css +39 -1
- package/dist/components/fy-input-map/{index.js → index.mjs} +113 -68
- package/dist/components/fy-input-map/style.css +50 -1
- package/dist/components/fy-input-number/{index.js → index.mjs} +29 -24
- package/dist/components/fy-input-table/{index.js → index.mjs} +82 -48
- package/dist/components/fy-input-table/style.css +10 -1
- package/dist/components/fy-input-tree/{index.js → index.mjs} +104 -60
- package/dist/components/fy-input-tree/style.css +25 -1
- package/dist/components/fy-progress/{index.js → index.mjs} +15 -10
- package/dist/components/fy-radio/{index.js → index.mjs} +20 -14
- package/dist/components/fy-radio/style.css +12 -1
- package/dist/components/fy-rate/{index.js → index.mjs} +21 -15
- package/dist/components/fy-rate/style.css +9 -1
- package/dist/components/fy-select/{index.js → index.mjs} +73 -55
- package/dist/components/fy-select/style.css +25 -1
- package/dist/components/fy-slider/{index.js → index.mjs} +22 -17
- package/dist/components/fy-switch/{index.js → index.mjs} +17 -12
- package/dist/components/fy-tabs/{index.js → index.mjs} +20 -12
- package/dist/components/fy-tabs/style.css +6 -0
- package/dist/components/fy-time/{index.js → index.mjs} +29 -18
- package/dist/components/fy-title/{index.js → index.mjs} +16 -8
- package/dist/components/fy-title/style.css +11 -1
- package/dist/components/fy-tree/{index.js → index.mjs} +135 -72
- package/dist/components/fy-tree/style.css +46 -1
- package/dist/components/fy-u-editor/{index.js → index.mjs} +172 -67
- package/dist/components/fy-u-editor/style.css +15 -1
- package/dist/components/fy-upload/{index.js → index.mjs} +317 -148
- package/dist/components/fy-upload/style.css +60 -1
- package/dist/components/guide-steps/{index.js → index.mjs} +31 -17
- package/dist/components/guide-steps/style.css +34 -1
- package/dist/components/header-menu/{index.js → index.mjs} +86 -66
- package/dist/components/header-search/{index.js → index.mjs} +92 -60
- package/dist/components/highlight-j-s/{index.js → index.mjs} +28 -15
- package/dist/components/highlight-j-s/style.css +21 -1
- package/dist/components/icon-card/{index.js → index.mjs} +13 -7
- package/dist/components/icon-card/style.css +56 -1
- package/dist/components/icon-temp/{index.js → index.mjs} +12 -6
- package/dist/components/icon-temp/style.css +21 -1
- package/dist/components/iframe-window/{index.js → index.mjs} +20 -14
- package/dist/components/iframe-window/style.css +20 -1
- package/dist/components/image-cropper/{index.js → index.mjs} +69 -51
- package/dist/components/image-cropper/style.css +34 -1
- package/dist/components/image-preview/{index.js → index.mjs} +77 -46
- package/dist/components/image-preview/style.css +72 -1
- package/dist/components/image-viewer/{index.js → index.mjs} +40 -22
- package/dist/components/image-viewer/style.css +21 -1
- package/dist/components/input-number/{index.js → index.mjs} +122 -56
- package/dist/components/input-number/style.css +15 -1
- package/dist/components/input-number-range/{index.js → index.mjs} +32 -20
- package/dist/components/input-number-range/style.css +12 -1
- package/dist/components/j-s-x-component/{index.js → index.mjs} +0 -0
- package/dist/components/keep-view-alive/{index.js → index.mjs} +68 -21
- package/dist/components/keyboard/index.mjs +469 -0
- package/dist/components/keyboard/style.css +547 -1
- package/dist/components/license/index.mjs +180 -0
- package/dist/components/loading-view/{index.js → index.mjs} +12 -6
- package/dist/components/loading-view/style.css +17 -1
- package/dist/components/login/{index.js → index.mjs} +91 -62
- package/dist/components/login/style.css +25 -1
- package/dist/components/name-avatar/{index.js → index.mjs} +32 -10
- package/dist/components/name-avatar/style.css +35 -1
- package/dist/components/nav-bar/{index.js → index.mjs} +21 -11
- package/dist/components/nav-bar/style.css +17 -1
- package/dist/components/not-implement/{index.js → index.mjs} +16 -8
- package/dist/components/not-implement/style.css +15 -1
- package/dist/components/notice/{index.js → index.mjs} +40 -27
- package/dist/components/notice/style.css +54 -1
- package/dist/components/page/{index.js → index.mjs} +13 -7
- package/dist/components/page/style.css +12 -1
- package/dist/components/page-header/{index.js → index.mjs} +15 -9
- package/dist/components/page-header/style.css +14 -1
- package/dist/components/page-index/{index.js → index.mjs} +62 -37
- package/dist/components/page-index/style.css +23 -1
- package/dist/components/page-index-top/{index.js → index.mjs} +53 -34
- package/dist/components/page-skeleton/{index.js → index.mjs} +15 -9
- package/dist/components/page-skeleton/style.css +23 -1
- package/dist/components/page-skeleton-new/{index.js → index.mjs} +15 -9
- package/dist/components/page-skeleton-new/style.css +42 -1
- package/dist/components/pageable-table/{index.js → index.mjs} +187 -106
- package/dist/components/pageable-table/style.css +72 -1
- package/dist/components/pageable-view/{index.js → index.mjs} +164 -80
- package/dist/components/pageable-view/style.css +69 -1
- package/dist/components/photo-swipe/index.mjs +175 -0
- package/dist/components/process-designer/{index.js → index.mjs} +961 -772
- package/dist/components/process-designer/style.css +1186 -1
- package/dist/components/properties-panel/{index.js → index.mjs} +1488 -1044
- package/dist/components/properties-panel/style.css +122 -1
- package/dist/components/queue/{index.js → index.mjs} +24 -12
- package/dist/components/record-video/{index.js → index.mjs} +53 -27
- package/dist/components/record-video/style.css +53 -1
- package/dist/components/resize-observer/index.mjs +96 -0
- package/dist/components/resize-observer/style.css +31 -1
- package/dist/components/search/{index.js → index.mjs} +41 -22
- package/dist/components/search/style.css +57 -1
- package/dist/components/search-popover/{index.js → index.mjs} +153 -91
- package/dist/components/search-popover/style.css +93 -1
- package/dist/components/sign/index.mjs +236 -0
- package/dist/components/sign/style.css +12 -1
- package/dist/components/sign-panel/{index.js → index.mjs} +96 -46
- package/dist/components/sign-panel/style.css +97 -1
- package/dist/components/skeleton/{index.js → index.mjs} +22 -12
- package/dist/components/skeleton/style.css +61 -1
- package/dist/components/split-pane/{index.js → index.mjs} +125 -60
- package/dist/components/split-pane/style.css +100 -1
- package/dist/components/stateful/{index.js → index.mjs} +8 -5
- package/dist/components/stateful/style.css +33 -1
- package/dist/components/static-pageable-table/{index.js → index.mjs} +22 -15
- package/dist/components/static-pageable-table/style.css +9 -1
- package/dist/components/swiper/index.mjs +247 -0
- package/dist/components/swiper/style.css +43 -1
- package/dist/components/tab/{index.js → index.mjs} +34 -16
- package/dist/components/tab/style.css +122 -1
- package/dist/components/tab-item/{index.js → index.mjs} +14 -9
- package/dist/components/table-column/{index.js → index.mjs} +26 -17
- package/dist/components/table-page/{index.js → index.mjs} +42 -23
- package/dist/components/table-view/{index.js → index.mjs} +162 -87
- package/dist/components/table-view/style.css +95 -1
- package/dist/components/tag-render/{index.js → index.mjs} +41 -22
- package/dist/components/tag-render/style.css +33 -1
- package/dist/components/text-ellipsis/{index.js → index.mjs} +48 -26
- package/dist/components/text-ellipsis/style.css +9 -1
- package/dist/components/tinymce-editor/{index.js → index.mjs} +80 -60
- package/dist/components/tinymce-editor/style.css +43 -1
- package/dist/components/tinymce-wrapper/{index.js → index.mjs} +77 -41
- package/dist/components/tinymce-wrapper/style.css +36 -1
- package/dist/components/toolbar/{index.js → index.mjs} +46 -25
- package/dist/components/toolbar/style.css +39 -1
- package/dist/components/toolbar-button/{index.js → index.mjs} +46 -35
- package/dist/components/toolbar-button/style.css +21 -1
- package/dist/components/trigger/{index.js → index.mjs} +15 -8
- package/dist/components/verify/{index.js → index.mjs} +15 -8
- package/dist/components/verify/style.css +15 -1
- package/dist/components/vue-tags-input/{index.js → index.mjs} +233 -113
- package/dist/components/vue-tags-input/style.css +688 -1
- package/dist/components/watermark/{index.js → index.mjs} +33 -14
- package/dist/components/watermark/style.css +11 -1
- package/dist/index.css +2434 -1750
- package/dist/{index.es.js → index.mjs} +15944 -9317
- package/package.json +4 -4
- package/web-types.json +1 -1
- package/dist/chunks/confirmable-mixin.35bd1934.js +0 -104
- package/dist/chunks/dataformat.9cc4428a.js +0 -158
- package/dist/chunks/detail.544c52b0.js +0 -29
- package/dist/chunks/dic.9de2fe5a.js +0 -135
- package/dist/chunks/slot.a7387ecc.js +0 -27
- package/dist/chunks/util.89913643.js +0 -261
- package/dist/chunks/vueComponentNormalizer.77ec6792.js +0 -32
- package/dist/components/affix/index.js +0 -102
- package/dist/components/chunk-file-uploader/index.js +0 -119
- package/dist/components/chunk-file-uploader-drop/index.js +0 -83
- package/dist/components/count-up/index.js +0 -131
- package/dist/components/flex-column/index.js +0 -62
- package/dist/components/flex-item/index.js +0 -81
- package/dist/components/flex-row/index.js +0 -62
- package/dist/components/flow-viewer/index.js +0 -162
- package/dist/components/form-item/index.js +0 -147
- package/dist/components/fy-dialog-form/style.css +0 -1
- package/dist/components/keyboard/index.js +0 -384
- package/dist/components/license/index.js +0 -134
- package/dist/components/photo-swipe/index.js +0 -129
- package/dist/components/resize-observer/index.js +0 -62
- package/dist/components/sign/index.js +0 -133
- package/dist/components/swiper/index.js +0 -178
|
@@ -1,40 +1,44 @@
|
|
|
1
1
|
import { formatDate } from "@web-utils/integrations/dayjs";
|
|
2
|
-
import { s as setPx } from "../../chunks/util.
|
|
3
|
-
import { n as normalizeComponent } from "../../chunks/vueComponentNormalizer.
|
|
2
|
+
import { s as setPx } from "../../chunks/util.b0d0b0ad.mjs";
|
|
3
|
+
import { n as normalizeComponent } from "../../chunks/vueComponentNormalizer.9c6b8b3d.mjs";
|
|
4
4
|
var render = function() {
|
|
5
|
-
var _vm = this
|
|
5
|
+
var _vm = this;
|
|
6
|
+
var _h = _vm.$createElement;
|
|
7
|
+
var _c = _vm._self._c || _h;
|
|
6
8
|
return _c("div", {
|
|
7
9
|
staticClass: "avue-chat",
|
|
8
10
|
style: _vm.heightStyleName,
|
|
9
11
|
on: {
|
|
10
|
-
keyup: function($event) {
|
|
11
|
-
|
|
12
|
+
"keyup": function($event) {
|
|
13
|
+
if (!$event.type.indexOf("key") && _vm._k($event.keyCode, "enter", 13, $event.key, "Enter"))
|
|
14
|
+
return null;
|
|
15
|
+
return _vm.handleSend.apply(null, arguments);
|
|
12
16
|
}
|
|
13
17
|
}
|
|
14
18
|
}, [_c("audio", {
|
|
15
19
|
ref: "chatAudio"
|
|
16
20
|
}, [_c("source", {
|
|
17
21
|
attrs: {
|
|
18
|
-
src: _vm.audio[0],
|
|
19
|
-
type: "audio/ogg"
|
|
22
|
+
"src": _vm.audio[0],
|
|
23
|
+
"type": "audio/ogg"
|
|
20
24
|
}
|
|
21
25
|
}), _c("source", {
|
|
22
26
|
attrs: {
|
|
23
|
-
src: _vm.audio[1],
|
|
24
|
-
type: "audio/mpeg"
|
|
27
|
+
"src": _vm.audio[1],
|
|
28
|
+
"type": "audio/mpeg"
|
|
25
29
|
}
|
|
26
30
|
}), _c("source", {
|
|
27
31
|
attrs: {
|
|
28
|
-
src: _vm.audio[2],
|
|
29
|
-
type: "audio/wav"
|
|
32
|
+
"src": _vm.audio[2],
|
|
33
|
+
"type": "audio/wav"
|
|
30
34
|
}
|
|
31
35
|
})]), _c("div", {
|
|
32
36
|
staticClass: "web__logo"
|
|
33
37
|
}, [_c("img", {
|
|
34
38
|
staticClass: "web__logo-img",
|
|
35
39
|
attrs: {
|
|
36
|
-
src: _vm.config.img,
|
|
37
|
-
alt: ""
|
|
40
|
+
"src": _vm.config.img,
|
|
41
|
+
"alt": ""
|
|
38
42
|
}
|
|
39
43
|
}), _c("div", {
|
|
40
44
|
staticClass: "web__logo-info"
|
|
@@ -60,7 +64,7 @@ var render = function() {
|
|
|
60
64
|
staticClass: "web__main-user"
|
|
61
65
|
}, [_c("img", {
|
|
62
66
|
attrs: {
|
|
63
|
-
src: item.img
|
|
67
|
+
"src": item.img
|
|
64
68
|
}
|
|
65
69
|
}), _c("cite", [_vm._v(" " + _vm._s(item.name) + " "), _c("i", [_vm._v(_vm._s(item.date))])])]), _c("div", {
|
|
66
70
|
staticClass: "web__main-text"
|
|
@@ -68,22 +72,22 @@ var render = function() {
|
|
|
68
72
|
staticClass: "web__main-arrow"
|
|
69
73
|
}), _c("span", {
|
|
70
74
|
ref: "content",
|
|
71
|
-
refInFor:
|
|
75
|
+
refInFor: true,
|
|
72
76
|
domProps: {
|
|
73
|
-
innerHTML: _vm._s(_vm.handleDetail(item.text.text))
|
|
77
|
+
"innerHTML": _vm._s(_vm.handleDetail(item.text.text))
|
|
74
78
|
}
|
|
75
|
-
}), item.text.list ?
|
|
79
|
+
}), !item.text.list ? _c("ul", {
|
|
76
80
|
staticClass: " web__main-list"
|
|
77
81
|
}, _vm._l(item.text.list, function(citem, cindex) {
|
|
78
82
|
return _c("li", {
|
|
79
83
|
key: cindex,
|
|
80
84
|
on: {
|
|
81
|
-
click: function($event) {
|
|
85
|
+
"click": function($event) {
|
|
82
86
|
return _vm.handleItemMsg(citem);
|
|
83
87
|
}
|
|
84
88
|
}
|
|
85
89
|
}, [_vm._v(" " + _vm._s(citem.text) + " ")]);
|
|
86
|
-
}), 0)])]);
|
|
90
|
+
}), 0) : _vm._e()])]);
|
|
87
91
|
}), 0), _c("div", {
|
|
88
92
|
staticClass: "web__footer",
|
|
89
93
|
style: _vm.widthStyleName
|
|
@@ -92,21 +96,21 @@ var render = function() {
|
|
|
92
96
|
}, [_vm.tools.img ? _c("i", {
|
|
93
97
|
staticClass: "el-icon-picture-outline",
|
|
94
98
|
on: {
|
|
95
|
-
click: function($event) {
|
|
99
|
+
"click": function($event) {
|
|
96
100
|
return _vm.handleUpload("img");
|
|
97
101
|
}
|
|
98
102
|
}
|
|
99
103
|
}) : _vm._e(), _vm.tools.video ? _c("i", {
|
|
100
104
|
staticClass: "el-icon-video-camera",
|
|
101
105
|
on: {
|
|
102
|
-
click: function($event) {
|
|
106
|
+
"click": function($event) {
|
|
103
107
|
return _vm.handleUpload("video");
|
|
104
108
|
}
|
|
105
109
|
}
|
|
106
110
|
}) : _vm._e(), _vm.tools.file ? _c("i", {
|
|
107
111
|
staticClass: "el-icon-folder-opened",
|
|
108
112
|
on: {
|
|
109
|
-
click: function($event) {
|
|
113
|
+
"click": function($event) {
|
|
110
114
|
return _vm.handleUpload("file");
|
|
111
115
|
}
|
|
112
116
|
}
|
|
@@ -121,15 +125,17 @@ var render = function() {
|
|
|
121
125
|
}],
|
|
122
126
|
staticClass: "web__msg-input",
|
|
123
127
|
attrs: {
|
|
124
|
-
rows: "2",
|
|
125
|
-
placeholder: _vm.placeholder
|
|
128
|
+
"rows": "2",
|
|
129
|
+
"placeholder": _vm.placeholder
|
|
126
130
|
},
|
|
127
131
|
domProps: {
|
|
128
|
-
value: _vm.msg
|
|
132
|
+
"value": _vm.msg
|
|
129
133
|
},
|
|
130
134
|
on: {
|
|
131
|
-
input: function($event) {
|
|
132
|
-
|
|
135
|
+
"input": function($event) {
|
|
136
|
+
if ($event.target.composing)
|
|
137
|
+
return;
|
|
138
|
+
_vm.msg = $event.target.value;
|
|
133
139
|
}
|
|
134
140
|
}
|
|
135
141
|
}), _c("div", {
|
|
@@ -138,22 +144,22 @@ var render = function() {
|
|
|
138
144
|
staticClass: "web__msg-submit",
|
|
139
145
|
attrs: {
|
|
140
146
|
"split-button": "",
|
|
141
|
-
type: "primary",
|
|
142
|
-
size: "mini",
|
|
143
|
-
trigger: "click"
|
|
147
|
+
"type": "primary",
|
|
148
|
+
"size": "mini",
|
|
149
|
+
"trigger": "click"
|
|
144
150
|
},
|
|
145
151
|
on: {
|
|
146
|
-
click: _vm.handleSend
|
|
152
|
+
"click": _vm.handleSend
|
|
147
153
|
}
|
|
148
154
|
}, [_vm._v(" 发送 "), _c("ElDropdownMenu", {
|
|
149
155
|
attrs: {
|
|
150
|
-
slot: "dropdown"
|
|
156
|
+
"slot": "dropdown"
|
|
151
157
|
},
|
|
152
158
|
slot: "dropdown"
|
|
153
159
|
}, [_c("ElDropdownItem", [_c("ElPopover", {
|
|
154
160
|
attrs: {
|
|
155
|
-
placement: "top",
|
|
156
|
-
width: "160"
|
|
161
|
+
"placement": "top",
|
|
162
|
+
"width": "160"
|
|
157
163
|
},
|
|
158
164
|
model: {
|
|
159
165
|
value: _vm.visible,
|
|
@@ -167,12 +173,12 @@ var render = function() {
|
|
|
167
173
|
"margin-bottom": "10px"
|
|
168
174
|
},
|
|
169
175
|
attrs: {
|
|
170
|
-
size: "mini",
|
|
171
|
-
rows: 3,
|
|
176
|
+
"size": "mini",
|
|
177
|
+
"rows": 3,
|
|
172
178
|
"show-word-limit": "",
|
|
173
|
-
maxlength: "100",
|
|
174
|
-
placeholder: "请输入快捷回复语",
|
|
175
|
-
type: "textarea"
|
|
179
|
+
"maxlength": "100",
|
|
180
|
+
"placeholder": "请输入快捷回复语",
|
|
181
|
+
"type": "textarea"
|
|
176
182
|
},
|
|
177
183
|
model: {
|
|
178
184
|
value: _vm.keys,
|
|
@@ -184,58 +190,58 @@ var render = function() {
|
|
|
184
190
|
}), _c("div", {
|
|
185
191
|
staticStyle: {
|
|
186
192
|
"text-align": "right",
|
|
187
|
-
margin: "0"
|
|
193
|
+
"margin": "0"
|
|
188
194
|
}
|
|
189
195
|
}, [_c("ElButton", {
|
|
190
196
|
attrs: {
|
|
191
|
-
size: "mini",
|
|
192
|
-
type: "text"
|
|
197
|
+
"size": "mini",
|
|
198
|
+
"type": "text"
|
|
193
199
|
},
|
|
194
200
|
on: {
|
|
195
|
-
click: function($event) {
|
|
196
|
-
_vm.visible =
|
|
201
|
+
"click": function($event) {
|
|
202
|
+
_vm.visible = false;
|
|
197
203
|
}
|
|
198
204
|
}
|
|
199
205
|
}, [_vm._v(" 取消 ")]), _c("ElButton", {
|
|
200
206
|
attrs: {
|
|
201
|
-
type: "primary",
|
|
202
|
-
size: "mini"
|
|
207
|
+
"type": "primary",
|
|
208
|
+
"size": "mini"
|
|
203
209
|
},
|
|
204
210
|
on: {
|
|
205
|
-
click: _vm.addKey
|
|
211
|
+
"click": _vm.addKey
|
|
206
212
|
}
|
|
207
213
|
}, [_vm._v(" 确定 ")])], 1), _c("ElButton", {
|
|
208
214
|
attrs: {
|
|
209
|
-
slot: "reference",
|
|
210
|
-
type: "text",
|
|
211
|
-
icon: "el-icon-plus"
|
|
215
|
+
"slot": "reference",
|
|
216
|
+
"type": "text",
|
|
217
|
+
"icon": "el-icon-plus"
|
|
212
218
|
},
|
|
213
219
|
slot: "reference"
|
|
214
220
|
})], 1)], 1), _c("ElScrollbar", {
|
|
215
221
|
staticStyle: {
|
|
216
|
-
height: "100px"
|
|
222
|
+
"height": "100px"
|
|
217
223
|
}
|
|
218
224
|
}, _vm._l(_vm.keylist, function(item, index) {
|
|
219
225
|
return _c("ElDropdownItem", {
|
|
220
226
|
key: index,
|
|
221
227
|
nativeOn: {
|
|
222
|
-
click: function($event) {
|
|
228
|
+
"click": function($event) {
|
|
223
229
|
return _vm.sendKey(item);
|
|
224
230
|
}
|
|
225
231
|
}
|
|
226
232
|
}, [_c("ElTooltip", {
|
|
227
233
|
attrs: {
|
|
228
|
-
effect: "dark",
|
|
229
|
-
content: item,
|
|
230
|
-
placement: "top"
|
|
234
|
+
"effect": "dark",
|
|
235
|
+
"content": item,
|
|
236
|
+
"placement": "top"
|
|
231
237
|
}
|
|
232
238
|
}, [_c("span", [_vm._v(" " + _vm._s(item.substr(0, 10)) + _vm._s(item.length > 10 ? "..." : ""))])])], 1);
|
|
233
239
|
}), 1)], 1)], 1)], 1)])])]), _vm._t("default")], 2), _vm.upload.box ? _c("div", [_c("ElementDialog", {
|
|
234
240
|
attrs: {
|
|
235
|
-
title: _vm.upload.title,
|
|
236
|
-
"body-padding":
|
|
237
|
-
visible: _vm.upload.box,
|
|
238
|
-
width: "30%"
|
|
241
|
+
"title": _vm.upload.title,
|
|
242
|
+
"body-padding": false,
|
|
243
|
+
"visible": _vm.upload.box,
|
|
244
|
+
"width": "30%"
|
|
239
245
|
},
|
|
240
246
|
on: {
|
|
241
247
|
"update:visible": function($event) {
|
|
@@ -245,13 +251,13 @@ var render = function() {
|
|
|
245
251
|
}, [_c("ElForm", {
|
|
246
252
|
ref: "form",
|
|
247
253
|
attrs: {
|
|
248
|
-
model: _vm.upload
|
|
254
|
+
"model": _vm.upload
|
|
249
255
|
}
|
|
250
256
|
}, [_c("ElFormItem", {
|
|
251
257
|
attrs: {
|
|
252
|
-
prop: "src",
|
|
253
|
-
rules: [{
|
|
254
|
-
required:
|
|
258
|
+
"prop": "src",
|
|
259
|
+
"rules": [{
|
|
260
|
+
required: true,
|
|
255
261
|
message: "地址不能为空"
|
|
256
262
|
}]
|
|
257
263
|
}
|
|
@@ -260,12 +266,12 @@ var render = function() {
|
|
|
260
266
|
"margin-bottom": "10px"
|
|
261
267
|
},
|
|
262
268
|
attrs: {
|
|
263
|
-
size: "mini",
|
|
264
|
-
rows: 4,
|
|
269
|
+
"size": "mini",
|
|
270
|
+
"rows": 4,
|
|
265
271
|
"show-word-limit": "",
|
|
266
|
-
maxlength: "100",
|
|
267
|
-
placeholder: "请输入地址",
|
|
268
|
-
type: "textarea"
|
|
272
|
+
"maxlength": "100",
|
|
273
|
+
"placeholder": "请输入地址",
|
|
274
|
+
"type": "textarea"
|
|
269
275
|
},
|
|
270
276
|
model: {
|
|
271
277
|
value: _vm.upload.src,
|
|
@@ -277,33 +283,33 @@ var render = function() {
|
|
|
277
283
|
})], 1)], 1), _c("span", {
|
|
278
284
|
staticClass: "dialog-footer",
|
|
279
285
|
attrs: {
|
|
280
|
-
slot: "footer"
|
|
286
|
+
"slot": "footer"
|
|
281
287
|
},
|
|
282
288
|
slot: "footer"
|
|
283
289
|
}, [_c("ElButton", {
|
|
284
290
|
attrs: {
|
|
285
|
-
size: "small"
|
|
291
|
+
"size": "small"
|
|
286
292
|
},
|
|
287
293
|
on: {
|
|
288
|
-
click: function($event) {
|
|
289
|
-
_vm.upload.box =
|
|
294
|
+
"click": function($event) {
|
|
295
|
+
_vm.upload.box = false;
|
|
290
296
|
}
|
|
291
297
|
}
|
|
292
298
|
}, [_vm._v("取 消")]), _c("ElButton", {
|
|
293
299
|
attrs: {
|
|
294
|
-
type: "primary",
|
|
295
|
-
size: "small"
|
|
300
|
+
"type": "primary",
|
|
301
|
+
"size": "small"
|
|
296
302
|
},
|
|
297
303
|
on: {
|
|
298
|
-
click: _vm.uploadSubmit
|
|
304
|
+
"click": _vm.uploadSubmit
|
|
299
305
|
}
|
|
300
306
|
}, [_vm._v("确 定")])], 1)], 1)], 1) : _vm._e(), _vm.show ? _c("div", [_c("ElementDialog", {
|
|
301
307
|
staticClass: "web__dialog",
|
|
302
308
|
attrs: {
|
|
303
|
-
visible: _vm.show,
|
|
304
|
-
"body-padding":
|
|
305
|
-
title: "预览",
|
|
306
|
-
width: "40%",
|
|
309
|
+
"visible": _vm.show,
|
|
310
|
+
"body-padding": false,
|
|
311
|
+
"title": "预览",
|
|
312
|
+
"width": "40%",
|
|
307
313
|
"before-close": _vm.handleClose
|
|
308
314
|
},
|
|
309
315
|
on: {
|
|
@@ -313,43 +319,47 @@ var render = function() {
|
|
|
313
319
|
}
|
|
314
320
|
}, [_vm.imgSrc ? _c("img", {
|
|
315
321
|
staticStyle: {
|
|
316
|
-
width: "100%",
|
|
322
|
+
"width": "100%",
|
|
317
323
|
"object-fit": "cover"
|
|
318
324
|
},
|
|
319
325
|
attrs: {
|
|
320
|
-
src: _vm.imgSrc
|
|
326
|
+
"src": _vm.imgSrc
|
|
321
327
|
}
|
|
322
328
|
}) : _vm._e(), _vm.videoSrc ? _c("video", {
|
|
323
329
|
staticStyle: {
|
|
324
|
-
width: "100%",
|
|
330
|
+
"width": "100%",
|
|
325
331
|
"object-fit": "cover"
|
|
326
332
|
},
|
|
327
333
|
attrs: {
|
|
328
|
-
src: _vm.videoSrc,
|
|
329
|
-
controls: "controls"
|
|
334
|
+
"src": _vm.videoSrc,
|
|
335
|
+
"controls": "controls"
|
|
330
336
|
}
|
|
331
337
|
}) : _vm._e(), _vm.audioSrc ? _c("audio", {
|
|
332
338
|
staticStyle: {
|
|
333
|
-
width: "100%",
|
|
339
|
+
"width": "100%",
|
|
334
340
|
"object-fit": "cover"
|
|
335
341
|
},
|
|
336
342
|
attrs: {
|
|
337
|
-
src: _vm.audioSrc,
|
|
338
|
-
controls: "controls"
|
|
343
|
+
"src": _vm.audioSrc,
|
|
344
|
+
"controls": "controls"
|
|
339
345
|
}
|
|
340
346
|
}) : _vm._e()])], 1) : _vm._e()]);
|
|
341
|
-
}
|
|
347
|
+
};
|
|
348
|
+
var staticRenderFns = [];
|
|
349
|
+
const Chat_vue_vue_type_style_index_0_lang = "";
|
|
342
350
|
const __vue2_script = {
|
|
343
351
|
name: "Chat",
|
|
344
352
|
props: {
|
|
345
353
|
beforeOpen: Function,
|
|
346
354
|
tools: {
|
|
347
355
|
type: Object,
|
|
348
|
-
default: () =>
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
356
|
+
default: () => {
|
|
357
|
+
return {
|
|
358
|
+
img: true,
|
|
359
|
+
video: true,
|
|
360
|
+
file: true
|
|
361
|
+
};
|
|
362
|
+
}
|
|
353
363
|
},
|
|
354
364
|
placeholder: {
|
|
355
365
|
type: String,
|
|
@@ -368,43 +378,51 @@ const __vue2_script = {
|
|
|
368
378
|
},
|
|
369
379
|
notice: {
|
|
370
380
|
type: Boolean,
|
|
371
|
-
default:
|
|
381
|
+
default: true
|
|
372
382
|
},
|
|
373
383
|
audio: {
|
|
374
384
|
type: Array,
|
|
375
|
-
default: () =>
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
385
|
+
default: () => {
|
|
386
|
+
return [
|
|
387
|
+
"https://www.helloweba.net/demo/notifysound/notify.ogg",
|
|
388
|
+
"https://www.helloweba.net/demo/notifysound/notify.mp3",
|
|
389
|
+
"https://www.helloweba.net/demo/notifysound/notify.wav"
|
|
390
|
+
];
|
|
391
|
+
}
|
|
380
392
|
},
|
|
381
393
|
config: {
|
|
382
394
|
type: Object,
|
|
383
|
-
default: () =>
|
|
395
|
+
default: () => {
|
|
396
|
+
return {};
|
|
397
|
+
}
|
|
384
398
|
},
|
|
385
399
|
keylist: {
|
|
386
400
|
type: Array,
|
|
387
|
-
default: () =>
|
|
401
|
+
default: () => {
|
|
402
|
+
return [];
|
|
403
|
+
}
|
|
388
404
|
},
|
|
389
405
|
list: {
|
|
390
406
|
type: Array,
|
|
391
|
-
default: () =>
|
|
407
|
+
default: () => {
|
|
408
|
+
return [];
|
|
409
|
+
}
|
|
392
410
|
}
|
|
393
411
|
},
|
|
394
412
|
data() {
|
|
395
413
|
return {
|
|
396
414
|
upload: {
|
|
397
|
-
box:
|
|
415
|
+
box: false,
|
|
398
416
|
src: "",
|
|
399
417
|
type: "",
|
|
400
418
|
title: ""
|
|
401
419
|
},
|
|
402
|
-
visible:
|
|
420
|
+
visible: false,
|
|
403
421
|
imgSrc: "",
|
|
404
422
|
videoSrc: "",
|
|
405
423
|
audioSrc: "",
|
|
406
424
|
keys: "",
|
|
407
|
-
show:
|
|
425
|
+
show: false
|
|
408
426
|
};
|
|
409
427
|
},
|
|
410
428
|
computed: {
|
|
@@ -413,7 +431,8 @@ const __vue2_script = {
|
|
|
413
431
|
return this.value;
|
|
414
432
|
},
|
|
415
433
|
set(val) {
|
|
416
|
-
this.$emit("input", val)
|
|
434
|
+
this.$emit("input", val);
|
|
435
|
+
this.$emit("change", val);
|
|
417
436
|
}
|
|
418
437
|
},
|
|
419
438
|
heightStyleName() {
|
|
@@ -433,17 +452,36 @@ const __vue2_script = {
|
|
|
433
452
|
methods: {
|
|
434
453
|
uploadSubmit() {
|
|
435
454
|
this.$refs.form.validate((valid) => {
|
|
436
|
-
|
|
455
|
+
if (valid) {
|
|
456
|
+
this.upload.box = false;
|
|
457
|
+
this.$emit("submit", this.getDetail(this.upload));
|
|
458
|
+
}
|
|
437
459
|
});
|
|
438
460
|
},
|
|
439
461
|
handleUpload(type) {
|
|
440
|
-
this.upload.type = type
|
|
462
|
+
this.upload.type = type;
|
|
463
|
+
this.upload.src = "";
|
|
464
|
+
if (type === "img") {
|
|
465
|
+
this.upload.title = "图片上传";
|
|
466
|
+
} else if (type === "video") {
|
|
467
|
+
this.upload.title = "视频上传";
|
|
468
|
+
} else if (type === "file") {
|
|
469
|
+
this.upload.title = "文件上传";
|
|
470
|
+
}
|
|
471
|
+
this.upload.box = true;
|
|
441
472
|
},
|
|
442
473
|
handleClose(done) {
|
|
443
|
-
this.imgSrc = void 0
|
|
474
|
+
this.imgSrc = void 0;
|
|
475
|
+
this.videoSrc = void 0;
|
|
476
|
+
this.audioSrc = void 0;
|
|
477
|
+
done();
|
|
444
478
|
},
|
|
445
479
|
addKey() {
|
|
446
|
-
|
|
480
|
+
if (this.keys !== "") {
|
|
481
|
+
this.$emit("keyadd", this.keys);
|
|
482
|
+
this.keys = "";
|
|
483
|
+
}
|
|
484
|
+
this.visible = false;
|
|
447
485
|
},
|
|
448
486
|
sendKey(key) {
|
|
449
487
|
this.$emit("keysend", key);
|
|
@@ -452,11 +490,16 @@ const __vue2_script = {
|
|
|
452
490
|
this.$refs.chatAudio.play();
|
|
453
491
|
},
|
|
454
492
|
getNotification(text) {
|
|
455
|
-
const safe = this
|
|
493
|
+
const safe = this;
|
|
494
|
+
const NotificationInstance = Notification || window.Notification;
|
|
456
495
|
if (NotificationInstance) {
|
|
457
496
|
let setPermission = function() {
|
|
458
497
|
NotificationInstance.requestPermission(function(PERMISSION) {
|
|
459
|
-
PERMISSION === "granted"
|
|
498
|
+
if (PERMISSION === "granted") {
|
|
499
|
+
CreatNotification();
|
|
500
|
+
} else {
|
|
501
|
+
console.log("用户无情残忍的拒绝了你!!!");
|
|
502
|
+
}
|
|
460
503
|
});
|
|
461
504
|
}, CreatNotification = function() {
|
|
462
505
|
const n = new Notification(safe.config.name, {
|
|
@@ -464,30 +507,47 @@ const __vue2_script = {
|
|
|
464
507
|
icon: safe.config.img
|
|
465
508
|
});
|
|
466
509
|
n.onshow = function() {
|
|
467
|
-
safe.getAudio()
|
|
510
|
+
safe.getAudio();
|
|
511
|
+
setTimeout(() => {
|
|
468
512
|
n.close();
|
|
469
513
|
}, 2500);
|
|
470
|
-
}
|
|
514
|
+
};
|
|
515
|
+
n.onclick = function() {
|
|
471
516
|
n.close();
|
|
472
517
|
};
|
|
473
518
|
};
|
|
474
519
|
const permissionNow = NotificationInstance.permission;
|
|
475
|
-
|
|
520
|
+
if (permissionNow === "granted") {
|
|
521
|
+
CreatNotification();
|
|
522
|
+
} else if (permissionNow === "denied") {
|
|
523
|
+
console.log("用户拒绝了你!!!");
|
|
524
|
+
} else {
|
|
525
|
+
setPermission();
|
|
526
|
+
}
|
|
476
527
|
}
|
|
477
528
|
},
|
|
478
529
|
// mine为'我'的对话
|
|
479
530
|
// text为内容
|
|
480
531
|
pushMsg(params = {}) {
|
|
481
|
-
const mine = params.mine ===
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
532
|
+
const mine = params.mine === true;
|
|
533
|
+
const text = params.text || {};
|
|
534
|
+
const date = params.date;
|
|
535
|
+
const textObj = {
|
|
536
|
+
date: date || formatDate(Date.now(), "YYYY-MM-DD HH:mm:ss"),
|
|
537
|
+
text: (() => {
|
|
538
|
+
if (typeof text !== "object") {
|
|
539
|
+
return {
|
|
540
|
+
text
|
|
541
|
+
};
|
|
542
|
+
}
|
|
543
|
+
return text;
|
|
544
|
+
})(),
|
|
486
545
|
mine,
|
|
487
546
|
img: mine ? this.config.myImg : this.config.img,
|
|
488
547
|
name: mine ? this.config.myName : this.config.name
|
|
489
548
|
};
|
|
490
|
-
this.list.push(textObj)
|
|
549
|
+
this.list.push(textObj);
|
|
550
|
+
setTimeout(() => {
|
|
491
551
|
this.setScroll();
|
|
492
552
|
}, 50);
|
|
493
553
|
},
|
|
@@ -498,7 +558,9 @@ const __vue2_script = {
|
|
|
498
558
|
},
|
|
499
559
|
// 用户主动发送
|
|
500
560
|
handleSend() {
|
|
501
|
-
this.msgActive
|
|
561
|
+
if (this.msgActive) {
|
|
562
|
+
this.$emit("submit");
|
|
563
|
+
}
|
|
502
564
|
},
|
|
503
565
|
// 选择列表
|
|
504
566
|
handleItemMsg(item) {
|
|
@@ -507,57 +569,101 @@ const __vue2_script = {
|
|
|
507
569
|
// 处理排版
|
|
508
570
|
handleDetail(html = "") {
|
|
509
571
|
const result = html;
|
|
510
|
-
|
|
511
|
-
|
|
572
|
+
setTimeout(() => {
|
|
573
|
+
const list = this.$refs.content || [];
|
|
574
|
+
list.forEach((ele) => {
|
|
512
575
|
for (let i = 0; i < ele.children.length; i++) {
|
|
513
576
|
const child = ele.children[i];
|
|
514
|
-
child.getAttribute("data-flag") != 0
|
|
515
|
-
|
|
516
|
-
|
|
577
|
+
if (child.getAttribute("data-flag") != 0) {
|
|
578
|
+
child.setAttribute("data-flag", 0);
|
|
579
|
+
child.onclick = () => {
|
|
580
|
+
this.handleEvent(child.dataset);
|
|
581
|
+
};
|
|
582
|
+
if (child.tagName === "IMG") {
|
|
583
|
+
child.className = "web__msg--img";
|
|
584
|
+
child.src = child.getAttribute("data-src");
|
|
585
|
+
} else if (child.tagName === "VIDEO") {
|
|
586
|
+
child.className = "web__msg--video";
|
|
587
|
+
child.src = child.getAttribute("data-src");
|
|
588
|
+
} else if (child.tagName === "AUDIO") {
|
|
589
|
+
child.className = "web__msg--audio";
|
|
590
|
+
child.controls = "controls";
|
|
591
|
+
child.src = child.getAttribute("data-src");
|
|
592
|
+
} else if (child.tagName === "FILE") {
|
|
593
|
+
child.className = "web__msg--file";
|
|
594
|
+
child.innerHTML = `<h2>File</h2><span>${child.getAttribute("data-name")}</span>`;
|
|
595
|
+
} else if (child.tagName === "MAP") {
|
|
596
|
+
child.className = "web__msg--file web__msg--map";
|
|
597
|
+
child.innerHTML = `<h2>Map</h2><span>${child.getAttribute("data-longitude")} , ${child.getAttribute("data-latitude")}<br />${child.getAttribute("data-address")}</span>`;
|
|
598
|
+
}
|
|
599
|
+
this.setScroll();
|
|
600
|
+
}
|
|
517
601
|
}
|
|
518
602
|
});
|
|
519
|
-
}, 0)
|
|
603
|
+
}, 0);
|
|
604
|
+
return result;
|
|
520
605
|
},
|
|
521
606
|
getDetail(params = {}) {
|
|
522
607
|
const { type, src, name, longitude, latitude, address } = params;
|
|
523
|
-
if (type === "img")
|
|
608
|
+
if (type === "img") {
|
|
524
609
|
return `<img data-type="IMG" data-src="${src}" />`;
|
|
525
|
-
if (type === "video")
|
|
610
|
+
} else if (type === "video") {
|
|
526
611
|
return `<video data-type="VIDEO" data-src="${src}"></video>`;
|
|
527
|
-
if (type === "audio")
|
|
612
|
+
} else if (type === "audio") {
|
|
528
613
|
return `<audio data-type="AUDIO" data-src="${src}"></audio>`;
|
|
529
|
-
if (type === "file")
|
|
614
|
+
} else if (type === "file") {
|
|
530
615
|
return `<file data-type="FILE" data-name="${name}" data-src="${src}"></file>`;
|
|
531
|
-
if (type === "map")
|
|
616
|
+
} else if (type === "map") {
|
|
532
617
|
return `<map data-type="MAP" data-src="${src}" data-address="${address} "data-latitude="${latitude}" data-longitude="${longitude}"></map>`;
|
|
618
|
+
}
|
|
533
619
|
},
|
|
534
620
|
// 处理事件
|
|
535
621
|
handleEvent(params) {
|
|
536
622
|
const callback = () => {
|
|
537
|
-
|
|
623
|
+
if (params.type === "IMG") {
|
|
624
|
+
this.imgSrc = params.src;
|
|
625
|
+
this.show = true;
|
|
626
|
+
} else if (params.type === "VIDEO") {
|
|
627
|
+
this.videoSrc = params.src;
|
|
628
|
+
this.show = true;
|
|
629
|
+
} else if (params.type === "AUDIO") {
|
|
630
|
+
this.audioSrc = params.src;
|
|
631
|
+
this.show = true;
|
|
632
|
+
} else if (params.type === "FILE") {
|
|
633
|
+
window.open(params.src);
|
|
634
|
+
}
|
|
538
635
|
};
|
|
539
|
-
typeof this.beforeOpen
|
|
636
|
+
if (typeof this.beforeOpen === "function") {
|
|
637
|
+
this.beforeOpen(params, callback);
|
|
638
|
+
} else {
|
|
639
|
+
callback();
|
|
640
|
+
}
|
|
540
641
|
},
|
|
541
642
|
rootSendMsg(msg) {
|
|
542
643
|
this.pushMsg({
|
|
543
644
|
text: msg
|
|
544
|
-
})
|
|
645
|
+
});
|
|
646
|
+
if (this.notice) {
|
|
647
|
+
this.getNotification(msg.text || msg);
|
|
648
|
+
}
|
|
545
649
|
}
|
|
546
650
|
}
|
|
547
|
-
}
|
|
651
|
+
};
|
|
652
|
+
const __cssModules = {};
|
|
548
653
|
var __component__ = /* @__PURE__ */ normalizeComponent(
|
|
549
654
|
__vue2_script,
|
|
550
655
|
render,
|
|
551
656
|
staticRenderFns,
|
|
552
|
-
|
|
657
|
+
false,
|
|
553
658
|
__vue2_injectStyles,
|
|
554
659
|
null,
|
|
555
660
|
null,
|
|
556
661
|
null
|
|
557
662
|
);
|
|
558
663
|
function __vue2_injectStyles(context) {
|
|
559
|
-
for (let o in __cssModules)
|
|
664
|
+
for (let o in __cssModules) {
|
|
560
665
|
this[o] = __cssModules[o];
|
|
666
|
+
}
|
|
561
667
|
}
|
|
562
668
|
const Chat = /* @__PURE__ */ function() {
|
|
563
669
|
return __component__.exports;
|