@aochuang/client-sdk 1.0.346 → 1.0.347

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.
Files changed (137) hide show
  1. package/components/index.js +6 -1
  2. package/components/session-select/session-select-item.vue +8 -9
  3. package/components/wework-chat-control/company-card/company-card.vue +1 -1
  4. package/components/wework-chat-control/file-url/file-url.vue +2 -5
  5. package/components/wework-chat-control/image/image.vue +137 -2
  6. package/components/wework-chat-control/index.js +6 -6
  7. package/components/wework-chat-control/text/text.vue +22 -3
  8. package/components/wework-chat-control/util.js +12 -6
  9. package/components/wework-chat-control/video/video.vue +10 -2
  10. package/components/wework-chat-control/voice/voice.vue +1 -1
  11. package/components/wework-chat-control/wework-chat-control-config-item.vue +24 -0
  12. package/components/wework-chat-control/wework-chat-control-config-msg.vue +25 -0
  13. package/{uni-components/chat-control/chat-control-config.vue → components/wework-chat-control/wework-chat-control-config.vue} +16 -13
  14. package/components/wework-chat-panel/chat-panel-chat-status/chat-panel-chat-status.vue +73 -0
  15. package/components/wework-chat-panel/chat-panel-item.vue +12 -35
  16. package/components/wework-chat-panel/chat-panel.vue +95 -12
  17. package/package.json +10 -3
  18. package/services/client-chat/client-chat-wework/client-chat-concats.js +81 -17
  19. package/services/client-chat/client-chat-wework/client-chat-message.js +46 -6
  20. package/services/client-chat/client-chat-wework/client-chat-session.js +50 -2
  21. package/services/client-chat/client-chat-wework/client-chat-socket.js +9 -1
  22. package/services/client-chat/client-chat-wework/client-chat.js +281 -11
  23. package/services/client-chat/client-chat-wework/utils.js +5 -5
  24. package/components/wework-chat-panel/chat-panel-controls/company-card/company-card.vue +0 -35
  25. package/components/wework-chat-panel/chat-panel-controls/expression/expression.vue +0 -36
  26. package/components/wework-chat-panel/chat-panel-controls/file-url/file-url.vue +0 -35
  27. package/components/wework-chat-panel/chat-panel-controls/image/image.vue +0 -36
  28. package/components/wework-chat-panel/chat-panel-controls/index.js +0 -35
  29. package/components/wework-chat-panel/chat-panel-controls/jx-sys-text/jx-sys-text.vue +0 -28
  30. package/components/wework-chat-panel/chat-panel-controls/link/link.vue +0 -35
  31. package/components/wework-chat-panel/chat-panel-controls/location/location.vue +0 -35
  32. package/components/wework-chat-panel/chat-panel-controls/text/text.vue +0 -43
  33. package/components/wework-chat-panel/chat-panel-controls/unkonw/unkonw.vue +0 -39
  34. package/components/wework-chat-panel/chat-panel-controls/video/video.vue +0 -37
  35. package/components/wework-chat-panel/chat-panel-controls/voice/voice.vue +0 -35
  36. package/uni-common/account-portray/account-portray.vue +0 -51
  37. package/uni-common/account-select/account-select-item.vue +0 -172
  38. package/uni-common/account-select/account-select.vue +0 -252
  39. package/uni-common/all-friend-avatar/all-friend-avatar.vue +0 -49
  40. package/uni-common/friend-avatar/default.svg +0 -1
  41. package/uni-common/friend-avatar/friend-avatar.vue +0 -27
  42. package/uni-common/friend-avatar/index.js +0 -3
  43. package/uni-common/friend-loader/friend-loader.vue +0 -53
  44. package/uni-common/friend-portray/friend-portray.vue +0 -56
  45. package/uni-common/group-avatar/default.svg +0 -1
  46. package/uni-common/group-avatar/group-avatar.vue +0 -18
  47. package/uni-common/group-avatar/index.js +0 -3
  48. package/uni-common/room-avatar/default.svg +0 -6
  49. package/uni-common/room-avatar/index.js +0 -3
  50. package/uni-common/room-avatar/room-avatar.vue +0 -27
  51. package/uni-common/room-loader/room-loader.vue +0 -53
  52. package/uni-common/room-portray/room-portray.vue +0 -56
  53. package/uni-components/chat-control/calling/calling.vue +0 -91
  54. package/uni-components/chat-control/calling/phone-fill.svg +0 -1
  55. package/uni-components/chat-control/calling/vidicon-fill.svg +0 -1
  56. package/uni-components/chat-control/channel-video/channel-video.vue +0 -89
  57. package/uni-components/chat-control/channel-video-card/channel-video-card.vue +0 -105
  58. package/uni-components/chat-control/channel-video-live/channel-video-live.vue +0 -92
  59. package/uni-components/chat-control/chat-control-config-item/chat-control-config-item.vue +0 -20
  60. package/uni-components/chat-control/chat-control-config-item/index.js +0 -3
  61. package/uni-components/chat-control/chat-control-config-msg/chat-control-config-msg-app.vue +0 -25
  62. package/uni-components/chat-control/chat-control-config-msg/chat-control-config-msg-h5.vue +0 -21
  63. package/uni-components/chat-control/chat-control.vue +0 -218
  64. package/uni-components/chat-control/company-card/company-card.vue +0 -123
  65. package/uni-components/chat-control/const.js +0 -28
  66. package/uni-components/chat-control/expression/expression.vue +0 -41
  67. package/uni-components/chat-control/image/image.vue +0 -68
  68. package/uni-components/chat-control/index.js +0 -89
  69. package/uni-components/chat-control/location/location.vue +0 -110
  70. package/uni-components/chat-control/member-change/member-change.vue +0 -32
  71. package/uni-components/chat-control/quote-message/quote-message.vue +0 -216
  72. package/uni-components/chat-control/real-time-position/real-time-position.vue +0 -62
  73. package/uni-components/chat-control/redpacket/red-envelope.svg +0 -1
  74. package/uni-components/chat-control/redpacket/redpacket.vue +0 -75
  75. package/uni-components/chat-control/share-card/share-card.vue +0 -101
  76. package/uni-components/chat-control/system/system.vue +0 -69
  77. package/uni-components/chat-control/system-batch-message/system-batch-message.vue +0 -30
  78. package/uni-components/chat-control/system-text/system-text.vue +0 -32
  79. package/uni-components/chat-control/text/text.vue +0 -67
  80. package/uni-components/chat-control/text-with-at/text-with-at.vue +0 -51
  81. package/uni-components/chat-control/transfer/red-transfer.svg +0 -1
  82. package/uni-components/chat-control/transfer/transfer.vue +0 -80
  83. package/uni-components/chat-control/unkonw/unkonw.vue +0 -37
  84. package/uni-components/chat-control/url/icons/file-excel-line.svg +0 -1
  85. package/uni-components/chat-control/url/icons/file-info-line.svg +0 -1
  86. package/uni-components/chat-control/url/icons/file-music-line.svg +0 -1
  87. package/uni-components/chat-control/url/icons/file-pdf-line.svg +0 -1
  88. package/uni-components/chat-control/url/icons/file-ppt-line.svg +0 -1
  89. package/uni-components/chat-control/url/icons/file-settings-line.svg +0 -1
  90. package/uni-components/chat-control/url/icons/file-text-line.svg +0 -1
  91. package/uni-components/chat-control/url/icons/file-unknow-line.svg +0 -1
  92. package/uni-components/chat-control/url/icons/file-word-line.svg +0 -1
  93. package/uni-components/chat-control/url/icons/file-zip-line.svg +0 -1
  94. package/uni-components/chat-control/url/icons/index.js +0 -24
  95. package/uni-components/chat-control/url/miniprogram.svg +0 -1
  96. package/uni-components/chat-control/url/url-miniprogram.vue +0 -116
  97. package/uni-components/chat-control/url/url.vue +0 -306
  98. package/uni-components/chat-control/url-new/icons/file-excel-line.svg +0 -1
  99. package/uni-components/chat-control/url-new/icons/file-info-line.svg +0 -1
  100. package/uni-components/chat-control/url-new/icons/file-music-line.svg +0 -1
  101. package/uni-components/chat-control/url-new/icons/file-pdf-line.svg +0 -1
  102. package/uni-components/chat-control/url-new/icons/file-ppt-line.svg +0 -1
  103. package/uni-components/chat-control/url-new/icons/file-settings-line.svg +0 -1
  104. package/uni-components/chat-control/url-new/icons/file-text-line.svg +0 -1
  105. package/uni-components/chat-control/url-new/icons/file-unknow-line.svg +0 -1
  106. package/uni-components/chat-control/url-new/icons/file-word-line.svg +0 -1
  107. package/uni-components/chat-control/url-new/icons/file-zip-line.svg +0 -1
  108. package/uni-components/chat-control/url-new/icons/index.js +0 -24
  109. package/uni-components/chat-control/url-new/url-new.vue +0 -110
  110. package/uni-components/chat-control/utils.js +0 -12
  111. package/uni-components/chat-control/video/video.vue +0 -156
  112. package/uni-components/chat-control/voice/voice.vue +0 -166
  113. package/uni-components/chat-editor/chat-editor-chartlet/chat-editor-chartlet-collect.vue +0 -84
  114. package/uni-components/chat-editor/chat-editor-chartlet/chat-editor-chartlet-system.vue +0 -28
  115. package/uni-components/chat-editor/chat-editor-chartlet/chat-editor-chartlet.vue +0 -85
  116. package/uni-components/chat-editor/chat-editor-func/chat-editor-func.vue +0 -157
  117. package/uni-components/chat-editor/chat-editor-func-at/chat-editor-func-at-panel.vue +0 -158
  118. package/uni-components/chat-editor/chat-editor-func-at/chat-editor-func-at.vue +0 -61
  119. package/uni-components/chat-editor/chat-editor-func-button/chat-editor-func-button.vue +0 -58
  120. package/uni-components/chat-editor/chat-editor-func-file/chat-editor-func-file.vue +0 -54
  121. package/uni-components/chat-editor/chat-editor-func-image/chat-editor-func-image.vue +0 -42
  122. package/uni-components/chat-editor/chat-editor-func-video/chat-editor-func-video.vue +0 -42
  123. package/uni-components/chat-editor/chat-editor-func-voice/chat-editor-func-voice.vue +0 -25
  124. package/uni-components/chat-editor/chat-editor-message-send/chat-editor-message-send.vue +0 -158
  125. package/uni-components/chat-editor/chat-editor-quote/chat-editor-quote.vue +0 -75
  126. package/uni-components/chat-editor/chat-editor.vue +0 -257
  127. package/uni-components/chat-editor/index.js +0 -10
  128. package/uni-components/chat-editor/util.js +0 -65
  129. package/uni-components/chat-panel/chat-panel-chats-box.vue +0 -238
  130. package/uni-components/chat-panel/chat-panel-chats-forward/chat-panel-chats-forward.vue +0 -273
  131. package/uni-components/chat-panel/chat-panel-chats-item.vue +0 -578
  132. package/uni-components/chat-panel/chat-panel-chats-status/chat-panel-chats-status.vue +0 -71
  133. package/uni-components/chat-panel/chat-panel-chats.vue +0 -368
  134. package/uni-components/chat-panel/chat-panel.vue +0 -227
  135. package/uni-components/contacts-group-select/contacts-group-select-item.vue +0 -85
  136. package/uni-components/contacts-group-select/contacts-group-select-panel.vue +0 -119
  137. package/uni-components/contacts-group-select/contacts-group-select.vue +0 -150
@@ -1,61 +0,0 @@
1
- <template>
2
- <view class="bi-chat-editor-func-at">
3
- <chat-editor-func-button text="@群成员" icon="at-line" @click="handleHandleClick"></chat-editor-func-button>
4
- <ui-popup
5
- ref="popup"
6
- mode="bottom"
7
- title="@群成员"
8
- v-model="showPopup"
9
- >
10
- <chat-editor-func-at-panel
11
- :query-method="queryMethod"
12
- :confirm-method="handleConfirmMethod"
13
- ></chat-editor-func-at-panel>
14
- </ui-popup>
15
- </view>
16
- </template>
17
-
18
- <script>
19
- import UiPopup from '@aochuang/common/uni-components/popup/popup.vue'
20
- import ChatEditorFuncButton from '../chat-editor-func-button/chat-editor-func-button.vue'
21
- import ChatEditorFuncAtPanel from './chat-editor-func-at-panel.vue'
22
-
23
- export default {
24
- name: 'BiChatEditorFuncAt',
25
- components: {
26
- UiPopup,
27
- ChatEditorFuncButton,
28
- ChatEditorFuncAtPanel
29
- },
30
- props: {
31
- queryMethod: {
32
- type: Function
33
- },
34
- confirmMethod: {
35
- type: Function
36
- }
37
- },
38
- data () {
39
- return {
40
- showPopup: false
41
- }
42
- },
43
- methods: {
44
- handleHandleClick () {
45
- this.showPopup = true
46
- },
47
- handleConfirmMethod (evt) {
48
- if (!this.confirmMethod) {
49
- return
50
- }
51
- const rs = this.confirmMethod(evt)
52
- Promise.all([rs]).then(() => {
53
- this.showPopup = false
54
- })
55
- }
56
- }
57
- }
58
- </script>
59
-
60
- <style>
61
- </style>
@@ -1,58 +0,0 @@
1
- <template>
2
- <view class="bi-chat-editor-func-button" @click="handleClick">
3
- <view class="bi-chat-editor-func-button__icon">
4
- <slot name="icon">
5
- <bi-icon :name="icon" size="24px" color="#666"></bi-icon>
6
- </slot>
7
- </view>
8
- <view class="bi-chat-editor-func-button__text">
9
- {{ text }}
10
- </view>
11
- </view>
12
- </template>
13
-
14
- <script>
15
- import BiIcon from '@aochuang/common/uni-components/icon/icon.vue'
16
-
17
- export default {
18
- name: 'BiChatEditorFuncButton',
19
- components: {
20
- BiIcon
21
- },
22
- props: {
23
- text: {
24
- type: String
25
- },
26
- icon: {
27
- type: String
28
- }
29
- },
30
- methods: {
31
- handleClick () {
32
- this.$emit('click')
33
- }
34
- }
35
- }
36
- </script>
37
-
38
- <style lang="less">
39
- .bi-chat-editor-func-button{
40
- display: flex;
41
- flex-direction: column;
42
- align-items: center;
43
- justify-content: center;
44
- padding: 12px;
45
- color: #666;
46
- }
47
- .bi-chat-editor-func-button__icon{
48
- width: 54px;
49
- height: 54px;
50
- background-color: #fff;
51
- border-radius: 4px;
52
- display: flex;
53
- flex-direction: column;
54
- align-items: center;
55
- justify-content: center;
56
- margin-bottom: 4px;
57
- }
58
- </style>
@@ -1,54 +0,0 @@
1
- <template>
2
- <view class="bi-chat-editor-func-file">
3
- <bi-oss-upload
4
- source-type="file"
5
- :root-directory="uploadRootDirectory"
6
- :sub-directory="handleUploadSubDirectory"
7
- @change="handleUploadFileSuccess"
8
- >
9
- <template slot="handle">
10
- <chat-editor-func-button text="文件" icon="attachment-line"></chat-editor-func-button>
11
- </template>
12
- </bi-oss-upload>
13
- </view>
14
- </template>
15
-
16
- <script>
17
- import BiOssUpload from '@/common/oss-upload/oss-upload.vue'
18
- import ChatEditorFuncButton from '../chat-editor-func-button/chat-editor-func-button.vue'
19
- import { error } from '@aochuang/common/uni-components/message/message.js'
20
- import { MESSAGE_TYPE } from 'client-sdk/uni-components/chat-control/index.js'
21
-
22
- export default {
23
- name: 'BiChatEditorFuncFuncFile',
24
- components: {
25
- BiOssUpload,
26
- ChatEditorFuncButton
27
- },
28
- props: {
29
- uploadRootDirectory: {
30
- type: String
31
- }
32
- },
33
- methods: {
34
- handleUploadSubDirectory ({ file }) {
35
- if (file.type.indexOf('image') >= 0) {
36
- return MESSAGE_TYPE.IMAGE
37
- } else if (file.type.indexOf('video') >= 0) {
38
- return MESSAGE_TYPE.VIDEO
39
- } else {
40
- return MESSAGE_TYPE.URL
41
- }
42
- },
43
- handleUploadFileSuccess ({ value, file }) {
44
- this.$emit('confirm', {
45
- file,
46
- data: value
47
- })
48
- }
49
- }
50
- }
51
- </script>
52
-
53
- <style>
54
- </style>
@@ -1,42 +0,0 @@
1
- <template>
2
- <view class="bi-chat-editor-func-image">
3
- <bi-oss-upload
4
- source-type="image"
5
- sub-directory="3"
6
- :root-directory="uploadRootDirectory"
7
- @input="handleUploadImageSuccess"
8
- >
9
- <template slot="handle">
10
- <chat-editor-func-button text="图片" icon="image-line"></chat-editor-func-button>
11
- </template>
12
- </bi-oss-upload>
13
- </view>
14
- </template>
15
-
16
- <script>
17
- import BiOssUpload from '@/common/oss-upload/oss-upload.vue'
18
- import ChatEditorFuncButton from '../chat-editor-func-button/chat-editor-func-button.vue'
19
-
20
- export default {
21
- name: 'BiChatEditorFuncImage',
22
- components: {
23
- BiOssUpload,
24
- ChatEditorFuncButton
25
- },
26
- props: {
27
- uploadRootDirectory: {
28
- type: String
29
- }
30
- },
31
- methods: {
32
- handleUploadImageSuccess (value) {
33
- this.$emit('confirm', {
34
- data: value
35
- })
36
- }
37
- }
38
- }
39
- </script>
40
-
41
- <style>
42
- </style>
@@ -1,42 +0,0 @@
1
- <template>
2
- <view class="bi-chat-editor-func-video">
3
- <bi-oss-upload
4
- source-type="video"
5
- sub-directory="43"
6
- :root-directory="uploadRootDirectory"
7
- @input="handleUploadVideoSuccess"
8
- >
9
- <template slot="handle">
10
- <chat-editor-func-button text="视频" icon="vidicon-line"></chat-editor-func-button>
11
- </template>
12
- </bi-oss-upload>
13
- </view>
14
- </template>
15
-
16
- <script>
17
- import BiOssUpload from '@/common/oss-upload/oss-upload.vue'
18
- import ChatEditorFuncButton from '../chat-editor-func-button/chat-editor-func-button.vue'
19
-
20
- export default {
21
- name: 'BiChatEditorFuncVideo',
22
- components: {
23
- BiOssUpload,
24
- ChatEditorFuncButton
25
- },
26
- props: {
27
- uploadRootDirectory: {
28
- type: String
29
- }
30
- },
31
- methods: {
32
- handleUploadVideoSuccess (value) {
33
- this.$emit('confirm', {
34
- data: value
35
- })
36
- }
37
- }
38
- }
39
- </script>
40
-
41
- <style>
42
- </style>
@@ -1,25 +0,0 @@
1
- <template>
2
- <view class="bi-chat-editor-func-voice">
3
- <chat-editor-func-button text="录音" icon="mic-line" @click="handleHandleClick"></chat-editor-func-button>
4
- </view>
5
- </template>
6
-
7
- <script>
8
- import ChatEditorFuncButton from '../chat-editor-func-button/chat-editor-func-button.vue'
9
- import { error } from '@aochuang/common/uni-components/message/message.js'
10
-
11
- export default {
12
- name: 'BiChatEditorFuncVoice',
13
- components: {
14
- ChatEditorFuncButton
15
- },
16
- methods: {
17
- handleHandleClick () {
18
- error('暂不支持')
19
- }
20
- }
21
- }
22
- </script>
23
-
24
- <style>
25
- </style>
@@ -1,158 +0,0 @@
1
- <template>
2
- <view class="bi-chat-editor-message-send" @click.stop>
3
- <view class="bi-chat-editor-message-send__target">
4
- <view class="bi-chat-editor-message-send__target-label">发送给:</view>
5
- <view class="bi-chat-editor-message-send__target-object">
6
- <template v-if="sendTarget">
7
- <template v-if="sendTarget.chatroomId">
8
- <bi-portray :name="sendTarget.nickname" :avatar="sendTarget.chatroomAvatar"></bi-portray>
9
- </template>
10
- <template v-else>
11
- <bi-portray :name="sendTarget.nickname" :avatar="sendTarget.avatar"></bi-portray>
12
- </template>
13
- </template>
14
- </view>
15
- </view>
16
- <view class="bi-chat-editor-message-send__content">
17
- <template v-if="messageType === MESSAGE_TYPE.IMAGE">
18
- <chat-control-image :data="innerMessageContent"></chat-control-image>
19
- </template>
20
- <template v-else-if="messageType === MESSAGE_TYPE.VIDEO">
21
- <chat-control-video :data="innerMessageContent"></chat-control-video>
22
- </template>
23
- <template v-else-if="messageType === MESSAGE_TYPE.URL">
24
- <chat-control-url :data="innerMessageContent"></chat-control-url>
25
- </template>
26
- </view>
27
- <view class="bi-chat-editor-message-send__toolbar">
28
- <view class="bi-chat-editor-message-send__toolbar-item">
29
- <uv-button size="small" @click="handleCancelClick">取消</uv-button>
30
- </view>
31
- <view class="bi-chat-editor-message-send__toolbar-item">
32
- <uv-button size="small" type="primary" :disabled="uploading" :loading="sending" @click="handleSendClick">发送</uv-button>
33
- </view>
34
- </view>
35
- </view>
36
- </template>
37
-
38
- <script>
39
- import BiPortray from '@aochuang/common/uni-common/portray/portray.vue'
40
- import BiUpload from '@/common/upload/upload.vue'
41
- import ChatControlImage from 'client-sdk/uni-components/chat-control/image/image.vue'
42
- import ChatControlVideo from 'client-sdk/uni-components/chat-control/video/video.vue'
43
- import ChatControlUrl from 'client-sdk/uni-components/chat-control/url/url.vue'
44
- import { MESSAGE_TYPE } from 'client-sdk/uni-components/chat-control/index.js'
45
-
46
- export default {
47
- name: 'BiChatEditorMessageSend',
48
- components: {
49
- BiPortray,
50
- BiUpload,
51
- ChatControlImage,
52
- ChatControlUrl,
53
- ChatControlVideo
54
- },
55
- props: {
56
- sendTarget: {
57
- type: Object,
58
- required: true
59
- },
60
- submitMethod: {
61
- type: Function,
62
- required: true
63
- },
64
- messageType: {
65
- type: [String, Number],
66
- validator (value) {
67
- return [MESSAGE_TYPE.IMAGE, MESSAGE_TYPE.VIDEO, MESSAGE_TYPE.URL].includes(value)
68
- }
69
- },
70
- messageContent: {
71
- type: [String, Object]
72
- }
73
- },
74
- data () {
75
- return {
76
- MESSAGE_TYPE,
77
- uploading: false,
78
- sending: false,
79
- innerMessageContent: this.messageContent
80
- }
81
- },
82
- computed: {
83
- previewFileData () {
84
- if (this.MESSAGE_TYPE.URL !== this.messageType) {
85
- return
86
- }
87
- return this.messageContent
88
- }
89
- },
90
- methods: {
91
- handleCancelClick () {
92
- this.$emit('cancel')
93
- },
94
- handleUploading () {
95
- this.uploading = true
96
- },
97
- handleUploadComplete () {
98
- this.uploading = false
99
- },
100
- handleSendClick () {
101
- this.sending = true
102
- let content = this.innerMessageContent
103
- if (this.messageType === MESSAGE_TYPE.URL) {
104
- if (this.messageFile) {
105
- content = JSON.stringify({
106
- type: 'file',
107
- totalLen: this.messageFile.size,
108
- title: this.messageFile.name,
109
- url: this.innerMessageContent
110
- })
111
- }
112
- }
113
- this.submitMethod({
114
- data: {
115
- content,
116
- messageType: this.messageType
117
- }
118
- }).finally(() => {
119
- this.sending = false
120
- })
121
- }
122
- }
123
- }
124
- </script>
125
-
126
- <style lang="less">
127
- .bi-chat-editor-message-send{
128
- background-color: #fff;
129
- width: 80vw;
130
- max-width: 420px;
131
- max-height: 80vh;
132
- border-radius: 4px;
133
- }
134
- .bi-chat-editor-message-send__target{
135
- padding: 12px 0;
136
- margin: 0 12px;
137
- border-bottom: 1px solid #eee;
138
- }
139
- .bi-chat-editor-message-send__target-label{
140
- margin-bottom: 6px;
141
- }
142
- .bi-chat-editor-message-send__content{
143
- padding: 12px;
144
- border-bottom: 1px solid #eee;
145
- max-height: 300px;
146
- overflow: auto;
147
- }
148
- .bi-chat-editor-message-send__toolbar{
149
- display: flex;
150
- flex-direction: row;
151
- align-items: center;
152
- justify-content: flex-end;
153
- padding: 12px;
154
- }
155
- .bi-chat-editor-message-send__toolbar-item{
156
- margin-left: 12px;
157
- }
158
- </style>
@@ -1,75 +0,0 @@
1
- <template>
2
- <view class="bi-chat-eidtor-quote">
3
- <sdk-chat-control
4
- type="quote"
5
- :msg-type="quoteChat.msgType"
6
- :content="quotaChatContent"
7
- ></sdk-chat-control>
8
- <view class="bi-chat-eidtor-quote__remove" @click="handleRemoveClick"></view>
9
- </view>
10
- </template>
11
-
12
- <script>
13
- import SdkChatControl from 'client-sdk/uni-components/chat-control/chat-control.vue'
14
-
15
- export default {
16
- name: 'BiChatEditorQuote',
17
- components: {
18
- SdkChatControl
19
- },
20
- props: {
21
- quoteChat: {
22
- type: Object,
23
- required: true
24
- }
25
- },
26
- computed: {
27
- quotaChatContent () {
28
- return this.quoteChat.content
29
- }
30
- },
31
- methods: {
32
- handleRemoveClick () {
33
- this.$emit('remove')
34
- }
35
- }
36
- }
37
- </script>
38
-
39
- <style lang="less">
40
- .bi-chat-eidtor-quote{
41
- display: block;
42
- background-color: rgba(0,0,0,.1);
43
- border-radius: 4px;
44
- padding: 6px 30px 6px 6px;
45
- position: relative;
46
- }
47
- .bi-chat-eidtor-quote__remove{
48
- position: absolute;
49
- width: 16px;
50
- height: 16px;
51
- background-color: #999;
52
- top: 50%;
53
- right: 12px;
54
- border-radius: 50%;
55
- transform: rotate(45deg) translateY(-50%);
56
- cursor: pointer;
57
- transition: all .25s;
58
- &:before, &:after {
59
- content: '';
60
- position: absolute;
61
- left: 50%;
62
- top: 50%;
63
- transform: translate(-50%, -50%);
64
- background-color: #fff;
65
- }
66
- &:before {
67
- width: 10px;
68
- height: 1px;
69
- }
70
- &:after {
71
- width: 1px;
72
- height: 10px;
73
- }
74
- }
75
- </style>