@aochuang/client-sdk 1.0.287 → 1.0.288

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.
@@ -7,9 +7,11 @@
7
7
  </div>
8
8
  <div class="sdk-chat-panel-box__main">
9
9
  <div class="sdk-chat-panel-box__head">
10
- <span class="sdk-chat-panel-box__name">
11
- {{ userData ? userData.name : '' }}
12
- </span>
10
+ <template v-if="showUserName">
11
+ <span class="sdk-chat-panel-box__name">
12
+ {{ userData ? userData.name : '' }}
13
+ </span>
14
+ </template>
13
15
  </div>
14
16
  <div class="sdk-chat-panel-box__body" @contextmenu="handleBodyContextMenu">
15
17
  <component
@@ -92,6 +94,10 @@ export default {
92
94
  type: Boolean,
93
95
  default: false
94
96
  },
97
+ showUserName: {
98
+ type: Boolean,
99
+ default: true
100
+ },
95
101
  fetchUserMethod: {
96
102
  type: Function
97
103
  }
@@ -9,6 +9,7 @@
9
9
  </template>
10
10
  <template v-if="item.msgType == MESSAGE_TYPE.TEXT">
11
11
  <sdk-chat-panel-box
12
+ :show-user-name="showUserName"
12
13
  :dir="dir"
13
14
  :data="item"
14
15
  :fetchUserMethod="fetchUserMethod"
@@ -31,6 +32,7 @@
31
32
  </template>
32
33
  <template v-else-if="item.msgType == MESSAGE_TYPE.IMAGE">
33
34
  <sdk-chat-panel-box
35
+ :show-user-name="showUserName"
34
36
  :dir="dir"
35
37
  :data="item"
36
38
  :fetchUserMethod="fetchUserMethod"
@@ -53,6 +55,7 @@
53
55
  </template>
54
56
  <template v-else-if="item.msgType == MESSAGE_TYPE.VIDEO">
55
57
  <sdk-chat-panel-box
58
+ :show-user-name="showUserName"
56
59
  :dir="dir"
57
60
  :data="item"
58
61
  :fetchUserMethod="fetchUserMethod"
@@ -75,6 +78,7 @@
75
78
  </template>
76
79
  <template v-else-if="item.msgType == MESSAGE_TYPE.VOICE">
77
80
  <sdk-chat-panel-box
81
+ :show-user-name="showUserName"
78
82
  :dir="dir"
79
83
  :data="item"
80
84
  :fetchUserMethod="fetchUserMethod"
@@ -98,6 +102,7 @@
98
102
  </template>
99
103
  <template v-else-if="item.msgType == MESSAGE_TYPE.MUSIC">
100
104
  <sdk-chat-panel-box
105
+ :show-user-name="showUserName"
101
106
  :dir="dir"
102
107
  :data="item"
103
108
  :fetchUserMethod="fetchUserMethod"
@@ -121,6 +126,7 @@
121
126
  </template>
122
127
  <template v-else-if="item.msgType == MESSAGE_TYPE.SHARE_CARD">
123
128
  <sdk-chat-panel-box
129
+ :show-user-name="showUserName"
124
130
  :dir="dir"
125
131
  :data="item"
126
132
  :fetchUserMethod="fetchUserMethod"
@@ -144,6 +150,7 @@
144
150
  </template>
145
151
  <template v-else-if="item.msgType == MESSAGE_TYPE.LOCATION">
146
152
  <sdk-chat-panel-box
153
+ :show-user-name="showUserName"
147
154
  :dir="dir"
148
155
  :data="item"
149
156
  :fetchUserMethod="fetchUserMethod"
@@ -171,6 +178,7 @@
171
178
  </template>
172
179
  <template v-else-if="item.msgType == MESSAGE_TYPE.REAL_TIME_POSITION">
173
180
  <sdk-chat-panel-box
181
+ :show-user-name="showUserName"
174
182
  :dir="dir"
175
183
  :data="item"
176
184
  :fetchUserMethod="fetchUserMethod"
@@ -192,6 +200,7 @@
192
200
  </template>
193
201
  <template v-else-if="item.msgType == MESSAGE_TYPE.ACCOUNT_TRANSFER">
194
202
  <sdk-chat-panel-box
203
+ :show-user-name="showUserName"
195
204
  :dir="dir"
196
205
  :data="item"
197
206
  :fetchUserMethod="fetchUserMethod"
@@ -218,6 +227,7 @@
218
227
  </template>
219
228
  <template v-else-if="item.msgType == MESSAGE_TYPE.RED_ENVELOPES">
220
229
  <sdk-chat-panel-box
230
+ :show-user-name="showUserName"
221
231
  :dir="dir"
222
232
  :data="item"
223
233
  :fetchUserMethod="fetchUserMethod"
@@ -241,6 +251,7 @@
241
251
  </template>
242
252
  <template v-else-if="item.msgType == MESSAGE_TYPE.COMPANY_CARD">
243
253
  <sdk-chat-panel-box
254
+ :show-user-name="showUserName"
244
255
  :dir="dir"
245
256
  :data="item"
246
257
  :fetchUserMethod="fetchUserMethod"
@@ -264,6 +275,7 @@
264
275
  </template>
265
276
  <template v-else-if="item.msgType == MESSAGE_TYPE.CHANNEL_VIDEO">
266
277
  <sdk-chat-panel-box
278
+ :show-user-name="showUserName"
267
279
  :dir="dir"
268
280
  :data="item"
269
281
  :fetchUserMethod="fetchUserMethod"
@@ -287,6 +299,7 @@
287
299
  </template>
288
300
  <template v-else-if="item.msgType == MESSAGE_TYPE.CHANNEL_VIDEO_CARD">
289
301
  <sdk-chat-panel-box
302
+ :show-user-name="showUserName"
290
303
  :dir="dir"
291
304
  :data="item"
292
305
  :fetchUserMethod="fetchUserMethod"
@@ -310,6 +323,7 @@
310
323
  </template>
311
324
  <template v-else-if="item.msgType == MESSAGE_TYPE.CHANNEL_VIDEO_LIVE">
312
325
  <sdk-chat-panel-box
326
+ :show-user-name="showUserName"
313
327
  :dir="dir"
314
328
  :data="item"
315
329
  :fetchUserMethod="fetchUserMethod"
@@ -333,6 +347,7 @@
333
347
  </template>
334
348
  <template v-else-if="item.msgType == MESSAGE_TYPE.URL">
335
349
  <sdk-chat-panel-box
350
+ :show-user-name="showUserName"
336
351
  :dir="dir"
337
352
  :data="item"
338
353
  :fetchUserMethod="fetchUserMethod"
@@ -359,6 +374,7 @@
359
374
  </template>
360
375
  <template v-else-if="item.msgType == MESSAGE_TYPE.URLNew">
361
376
  <sdk-chat-panel-box
377
+ :show-user-name="showUserName"
362
378
  :dir="dir"
363
379
  :data="item"
364
380
  :fetchUserMethod="fetchUserMethod"
@@ -385,6 +401,7 @@
385
401
  </template>
386
402
  <template v-else-if="item.msgType == MESSAGE_TYPE.CUSTOM_EXPRESSION">
387
403
  <sdk-chat-panel-box
404
+ :show-user-name="showUserName"
388
405
  :dir="dir"
389
406
  :data="item"
390
407
  :fetchUserMethod="fetchUserMethod"
@@ -406,6 +423,7 @@
406
423
  </template>
407
424
  <template v-else-if="item.msgType == MESSAGE_TYPE.CALLING">
408
425
  <sdk-chat-panel-box
426
+ :show-user-name="showUserName"
409
427
  :dir="dir"
410
428
  :data="item"
411
429
  :fetchUserMethod="fetchUserMethod"
@@ -439,6 +457,7 @@
439
457
  </template>
440
458
  <template v-else-if="item.msgType === MESSAGE_TYPE.TEXT_WITH_AT">
441
459
  <sdk-chat-panel-box
460
+ :show-user-name="showUserName"
442
461
  :dir="dir"
443
462
  :data="item"
444
463
  :fetchUserMethod="fetchUserMethod"
@@ -517,6 +536,7 @@
517
536
  </template>
518
537
  <template v-else-if="item.msgType === MESSAGE_TYPE.QUOTE_MESSAGE">
519
538
  <sdk-chat-panel-box
539
+ :show-user-name="showUserName"
520
540
  :dir="dir"
521
541
  :data="item"
522
542
  :fetchUserMethod="fetchUserMethod"
@@ -554,6 +574,7 @@
554
574
  </template>
555
575
  <template v-else>
556
576
  <sdk-chat-panel-box
577
+ :show-user-name="showUserName"
557
578
  :dir="dir"
558
579
  :data="item"
559
580
  :fetchUserMethod="fetchUserMethod"
@@ -659,6 +680,10 @@ export default {
659
680
  config: {
660
681
  type: Function
661
682
  },
683
+ showUserName: {
684
+ type: Boolean,
685
+ default: true
686
+ },
662
687
  fetchUserMethod: {
663
688
  type: Function
664
689
  }
@@ -20,6 +20,7 @@
20
20
  :dir="dir"
21
21
  :fetch-user-method="fetchUserMethod"
22
22
  :config="config"
23
+ :show-user-name="showUserName"
23
24
  @user-avatar-click="handleUserAvatarClick"
24
25
  @user-avatar-contextmenu="handleUserAvatarContextmenu"
25
26
  >
@@ -115,6 +116,10 @@ export default {
115
116
  },
116
117
  onBeforeSelectionChange: {
117
118
  type: Function
119
+ },
120
+ showUserName: {
121
+ type: Boolean,
122
+ default: true
118
123
  }
119
124
  },
120
125
  data () {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aochuang/client-sdk",
3
- "version": "1.0.287",
3
+ "version": "1.0.288",
4
4
  "description": "",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1"