@aochuang/client-sdk 1.0.317 → 1.0.319
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.
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<div class="sdk-chat-panel-box" :class="[dir ? 'is-dir-' + dir : '', {'is-blank': blank, 'is-recalled': recalled}]" @mouseenter="handleMouseEnter" @mouseleave="handleMouseLeave">
|
|
2
|
+
<div class="sdk-chat-panel-box" :class="[dir ? 'is-dir-' + dir : '', {'is-blank': blank, 'is-recalled': recalled}, {'has-user-name': !!showUserName}]" @mouseenter="handleMouseEnter" @mouseleave="handleMouseLeave">
|
|
3
3
|
<div class="sdk-chat-panel-box__avatar" @contextmenu="handleUserAvatarContextmenu" @click="handleUserAvatarClick">
|
|
4
4
|
<template v-if="userData && userData.avatar">
|
|
5
5
|
<sdk-user-avatar :src="userData.avatar"></sdk-user-avatar>
|
|
6
6
|
</template>
|
|
7
7
|
</div>
|
|
8
8
|
<div class="sdk-chat-panel-box__main">
|
|
9
|
-
<div class="sdk-chat-panel-box__head"
|
|
9
|
+
<div class="sdk-chat-panel-box__head">
|
|
10
10
|
<template v-if="showUserName">
|
|
11
11
|
<span class="sdk-chat-panel-box__name">
|
|
12
12
|
{{ userData ? userData.name : '' }}
|
|
@@ -308,19 +308,22 @@ export default {
|
|
|
308
308
|
}
|
|
309
309
|
}
|
|
310
310
|
.sdk-chat-panel-box__avatar{
|
|
311
|
-
margin-top: 24px;
|
|
312
311
|
width: 32px;
|
|
313
312
|
height: 32px;
|
|
314
313
|
background: #eee;
|
|
315
314
|
border-radius: 3px;
|
|
315
|
+
margin-top: 8px;
|
|
316
316
|
}
|
|
317
317
|
.sdk-chat-panel-box__head{
|
|
318
318
|
line-height: 24px;
|
|
319
319
|
min-height: 24px;
|
|
320
320
|
}
|
|
321
|
-
.sdk-chat-panel-
|
|
321
|
+
.sdk-chat-panel-box:not(.has-user-name) .sdk-chat-panel-box__head {
|
|
322
322
|
min-height: 6px;
|
|
323
323
|
}
|
|
324
|
+
.sdk-chat-panel-box.has-user-name .sdk-chat-panel-box__avatar{
|
|
325
|
+
margin-top: 26px;
|
|
326
|
+
}
|
|
324
327
|
.sdk-chat-panel-box__name{
|
|
325
328
|
font-size: 12px;
|
|
326
329
|
color: #888;
|
|
@@ -22,6 +22,7 @@
|
|
|
22
22
|
:width="innerWidth"
|
|
23
23
|
:poster="innerCover"
|
|
24
24
|
:preload="innerCover ? 'none' : 'metadata'"
|
|
25
|
+
:poster-play-mode="posterPlayMode"
|
|
25
26
|
class="sdk-chat-control-video__player"
|
|
26
27
|
></ui-video>
|
|
27
28
|
</template>
|
|
@@ -61,6 +62,7 @@
|
|
|
61
62
|
:width="innerWidth"
|
|
62
63
|
:poster="innerCover"
|
|
63
64
|
:preload="innerCover ? 'none' : 'metadata'"
|
|
65
|
+
:poster-play-mode="posterPlayMode"
|
|
64
66
|
@error="handleError"
|
|
65
67
|
class="sdk-chat-control-video__player"
|
|
66
68
|
></ui-video>
|
|
@@ -73,6 +75,7 @@
|
|
|
73
75
|
:width="innerWidth"
|
|
74
76
|
:poster="innerCover"
|
|
75
77
|
:preload="innerCover ? 'none' : 'metadata'"
|
|
78
|
+
:poster-play-mode="posterPlayMode"
|
|
76
79
|
@error="handleError"
|
|
77
80
|
class="sdk-chat-control-video__player"
|
|
78
81
|
></ui-video>
|
|
@@ -116,6 +119,10 @@ export default {
|
|
|
116
119
|
allowDownload: {
|
|
117
120
|
type: Boolean
|
|
118
121
|
},
|
|
122
|
+
posterPlayMode: {
|
|
123
|
+
type: Boolean,
|
|
124
|
+
default: false
|
|
125
|
+
},
|
|
119
126
|
downloadMethod: {
|
|
120
127
|
type: Function
|
|
121
128
|
},
|