@kengic/uni 0.5.1 → 0.5.2-beta.1
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/uni/uni-ui/uni-badge/uni-badge.vue +222 -219
- package/dist/uni/uni-ui/uni-breadcrumb/uni-breadcrumb.vue +29 -29
- package/dist/uni/uni-ui/uni-breadcrumb-item/uni-breadcrumb-item.vue +88 -88
- package/dist/uni/uni-ui/uni-calendar/calendar.js +936 -532
- package/dist/uni/uni-ui/uni-calendar/i18n/en.json +10 -10
- package/dist/uni/uni-ui/uni-calendar/i18n/index.js +8 -7
- package/dist/uni/uni-ui/uni-calendar/i18n/zh-Hans.json +10 -10
- package/dist/uni/uni-ui/uni-calendar/i18n/zh-Hant.json +10 -10
- package/dist/uni/uni-ui/uni-calendar/uni-calendar-item.vue +190 -168
- package/dist/uni/uni-ui/uni-calendar/uni-calendar.vue +459 -459
- package/dist/uni/uni-ui/uni-calendar/util.js +324 -340
- package/dist/uni/uni-ui/uni-card/uni-card.vue +8 -1
- package/dist/uni/uni-ui/uni-col/uni-col.vue +294 -287
- package/dist/uni/uni-ui/uni-collapse/uni-collapse.vue +139 -140
- package/dist/uni/uni-ui/uni-collapse-item/uni-collapse-item.vue +381 -378
- package/dist/uni/uni-ui/uni-combox/uni-combox.vue +280 -272
- package/dist/uni/uni-ui/uni-countdown/i18n/en.json +4 -4
- package/dist/uni/uni-ui/uni-countdown/i18n/index.js +8 -7
- package/dist/uni/uni-ui/uni-countdown/i18n/zh-Hans.json +4 -4
- package/dist/uni/uni-ui/uni-countdown/i18n/zh-Hant.json +4 -4
- package/dist/uni/uni-ui/uni-countdown/uni-countdown.vue +249 -257
- package/dist/uni/uni-ui/uni-data-checkbox/uni-data-checkbox.vue +832 -813
- package/dist/uni/uni-ui/uni-data-picker/keypress.js +42 -42
- package/dist/uni/uni-ui/uni-data-picker/uni-data-picker.vue +535 -516
- package/dist/uni/uni-ui/uni-data-pickerview/uni-data-picker.js +623 -618
- package/dist/uni/uni-ui/uni-data-pickerview/uni-data-pickerview.vue +293 -288
- package/dist/uni/uni-ui/uni-data-select/uni-data-select.vue +495 -509
- package/dist/uni/uni-ui/uni-dateformat/date-format.js +181 -184
- package/dist/uni/uni-ui/uni-dateformat/uni-dateformat.vue +81 -82
- package/dist/uni/uni-ui/uni-datetime-picker/calendar-item.vue +176 -170
- package/dist/uni/uni-ui/uni-datetime-picker/calendar.vue +926 -920
- package/dist/uni/uni-ui/uni-datetime-picker/i18n/en.json +20 -20
- package/dist/uni/uni-ui/uni-datetime-picker/i18n/index.js +8 -7
- package/dist/uni/uni-ui/uni-datetime-picker/i18n/zh-Hans.json +21 -21
- package/dist/uni/uni-ui/uni-datetime-picker/i18n/zh-Hant.json +21 -21
- package/dist/uni/uni-ui/uni-datetime-picker/time-picker.vue +921 -926
- package/dist/uni/uni-ui/uni-datetime-picker/uni-datetime-picker.vue +1059 -1012
- package/dist/uni/uni-ui/uni-datetime-picker/util.js +366 -377
- package/dist/uni/uni-ui/uni-drawer/keypress.js +42 -42
- package/dist/uni/uni-ui/uni-drawer/uni-drawer.vue +176 -167
- package/dist/uni/uni-ui/uni-easyinput/common.js +40 -42
- package/dist/uni/uni-ui/uni-easyinput/uni-easyinput.vue +628 -547
- package/dist/uni/uni-ui/uni-fab/uni-fab.vue +507 -483
- package/dist/uni/uni-ui/uni-fav/i18n/en.json +2 -2
- package/dist/uni/uni-ui/uni-fav/i18n/index.js +8 -7
- package/dist/uni/uni-ui/uni-fav/i18n/zh-Hans.json +2 -2
- package/dist/uni/uni-ui/uni-fav/i18n/zh-Hant.json +2 -2
- package/dist/uni/uni-ui/uni-fav/uni-fav.vue +155 -147
- package/dist/uni/uni-ui/uni-file-picker/choose-and-upload-file.js +172 -198
- package/dist/uni/uni-ui/uni-file-picker/uni-file-picker.vue +636 -634
- package/dist/uni/uni-ui/uni-file-picker/upload-file.vue +294 -293
- package/dist/uni/uni-ui/uni-file-picker/upload-image.vue +267 -270
- package/dist/uni/uni-ui/uni-file-picker/utils.js +81 -82
- package/dist/uni/uni-ui/uni-forms/uni-forms.vue +360 -372
- package/dist/uni/uni-ui/uni-forms/utils.js +170 -174
- package/dist/uni/uni-ui/uni-forms/validate.js +447 -456
- package/dist/uni/uni-ui/uni-forms-item/uni-forms-item.vue +497 -497
- package/dist/uni/uni-ui/uni-goods-nav/i18n/en.json +4 -4
- package/dist/uni/uni-ui/uni-goods-nav/i18n/index.js +8 -7
- package/dist/uni/uni-ui/uni-goods-nav/i18n/zh-Hans.json +4 -4
- package/dist/uni/uni-ui/uni-goods-nav/i18n/zh-Hant.json +4 -4
- package/dist/uni/uni-ui/uni-goods-nav/uni-goods-nav.vue +238 -222
- package/dist/uni/uni-ui/uni-grid/uni-grid.vue +134 -134
- package/dist/uni/uni-ui/uni-grid-item/uni-grid-item.vue +121 -119
- package/dist/uni/uni-ui/uni-group/uni-group.vue +121 -121
- package/dist/uni/uni-ui/uni-icons/icons.js +1170 -1168
- package/dist/uni/uni-ui/uni-icons/uni-icons.vue +91 -86
- package/dist/uni/uni-ui/uni-icons/uniicons.css +166 -166
- package/dist/uni/uni-ui/uni-indexed-list/uni-indexed-list-item.vue +129 -129
- package/dist/uni/uni-ui/uni-indexed-list/uni-indexed-list.vue +352 -347
- package/dist/uni/uni-ui/uni-link/uni-link.vue +134 -119
- package/dist/uni/uni-ui/uni-list/uni-list.vue +119 -110
- package/dist/uni/uni-ui/uni-list/uni-refresh.vue +14 -14
- package/dist/uni/uni-ui/uni-list/uni-refresh.wxs +14 -14
- package/dist/uni/uni-ui/uni-list-ad/uni-list-ad.vue +101 -95
- package/dist/uni/uni-ui/uni-list-chat/uni-list-chat.scss +18 -18
- package/dist/uni/uni-ui/uni-list-chat/uni-list-chat.vue +602 -586
- package/dist/uni/uni-ui/uni-list-item/uni-list-item.vue +507 -503
- package/dist/uni/uni-ui/uni-load-more/i18n/en.json +3 -3
- package/dist/uni/uni-ui/uni-load-more/i18n/index.js +8 -7
- package/dist/uni/uni-ui/uni-load-more/i18n/zh-Hans.json +3 -3
- package/dist/uni/uni-ui/uni-load-more/i18n/zh-Hant.json +3 -3
- package/dist/uni/uni-ui/uni-load-more/uni-load-more.vue +402 -392
- package/dist/uni/uni-ui/uni-nav-bar/uni-nav-bar.vue +328 -330
- package/dist/uni/uni-ui/uni-nav-bar/uni-status-bar.vue +17 -17
- package/dist/uni/uni-ui/uni-notice-bar/uni-notice-bar.vue +422 -401
- package/dist/uni/uni-ui/uni-number-box/uni-number-box.vue +211 -205
- package/dist/uni/uni-ui/uni-pagination/i18n/en.json +3 -3
- package/dist/uni/uni-ui/uni-pagination/i18n/es.json +3 -3
- package/dist/uni/uni-ui/uni-pagination/i18n/fr.json +3 -3
- package/dist/uni/uni-ui/uni-pagination/i18n/index.js +12 -11
- package/dist/uni/uni-ui/uni-pagination/i18n/zh-Hans.json +3 -3
- package/dist/uni/uni-ui/uni-pagination/i18n/zh-Hant.json +3 -3
- package/dist/uni/uni-ui/uni-pagination/uni-pagination.vue +450 -433
- package/dist/uni/uni-ui/uni-popup/uni-popup.vue +404 -404
- package/dist/uni/uni-ui/uni-popup-dialog/keypress.js +42 -42
- package/dist/uni/uni-ui/uni-popup-dialog/uni-popup-dialog.vue +1 -0
- package/dist/uni/uni-ui/uni-popup-message/uni-popup-message.vue +126 -125
- package/dist/uni/uni-ui/uni-popup-share/uni-popup-share.vue +172 -172
- package/dist/uni/uni-ui/uni-rate/uni-rate.vue +343 -347
- package/dist/uni/uni-ui/uni-row/uni-row.vue +180 -182
- package/dist/uni/uni-ui/uni-scss/changelog.md +11 -4
- package/dist/uni/uni-ui/uni-scss/package.json +73 -73
- package/dist/uni/uni-ui/uni-scss/readme.md +2 -1
- package/dist/uni/uni-ui/uni-scss/styles/setting/_border.scss +2 -2
- package/dist/uni/uni-ui/uni-scss/styles/setting/_color.scss +46 -47
- package/dist/uni/uni-ui/uni-scss/styles/setting/_radius.scss +49 -49
- package/dist/uni/uni-ui/uni-scss/styles/setting/_space.scss +52 -53
- package/dist/uni/uni-ui/uni-scss/styles/setting/_styles.scss +142 -147
- package/dist/uni/uni-ui/uni-scss/styles/setting/_text.scss +20 -20
- package/dist/uni/uni-ui/uni-scss/styles/setting/_variables.scss +111 -95
- package/dist/uni/uni-ui/uni-scss/styles/tools/functions.scss +28 -18
- package/dist/uni/uni-ui/uni-scss/theme.scss +10 -7
- package/dist/uni/uni-ui/uni-scss/variables.scss +42 -24
- package/dist/uni/uni-ui/uni-search-bar/i18n/en.json +3 -3
- package/dist/uni/uni-ui/uni-search-bar/i18n/index.js +8 -7
- package/dist/uni/uni-ui/uni-search-bar/i18n/zh-Hans.json +2 -2
- package/dist/uni/uni-ui/uni-search-bar/i18n/zh-Hant.json +2 -2
- package/dist/uni/uni-ui/uni-search-bar/uni-search-bar.vue +290 -281
- package/dist/uni/uni-ui/uni-section/uni-section.vue +149 -146
- package/dist/uni/uni-ui/uni-segmented-control/uni-segmented-control.vue +141 -131
- package/dist/uni/uni-ui/uni-steps/uni-steps.vue +255 -236
- package/dist/uni/uni-ui/uni-swipe-action/uni-swipe-action.vue +51 -51
- package/dist/uni/uni-ui/uni-swipe-action-item/bindingx.js +276 -282
- package/dist/uni/uni-ui/uni-swipe-action-item/isPC.js +10 -10
- package/dist/uni/uni-ui/uni-swipe-action-item/mpalipay.js +182 -187
- package/dist/uni/uni-ui/uni-swipe-action-item/mpother.js +235 -244
- package/dist/uni/uni-ui/uni-swipe-action-item/mpwxs.js +70 -75
- package/dist/uni/uni-ui/uni-swipe-action-item/render.js +238 -247
- package/dist/uni/uni-ui/uni-swipe-action-item/uni-swipe-action-item.vue +387 -313
- package/dist/uni/uni-ui/uni-swipe-action-item/wx.wxs +206 -215
- package/dist/uni/uni-ui/uni-swiper-dot/uni-swiper-dot.vue +241 -197
- package/dist/uni/uni-ui/uni-table/uni-table.vue +445 -447
- package/dist/uni/uni-ui/uni-tag/uni-tag.vue +234 -244
- package/dist/uni/uni-ui/uni-tbody/uni-tbody.vue +20 -23
- package/dist/uni/uni-ui/uni-td/uni-td.vue +79 -80
- package/dist/uni/uni-ui/uni-th/filter-dropdown.vue +510 -503
- package/dist/uni/uni-ui/uni-th/uni-th.vue +289 -273
- package/dist/uni/uni-ui/uni-thead/uni-thead.vue +115 -114
- package/dist/uni/uni-ui/uni-title/uni-title.vue +151 -154
- package/dist/uni/uni-ui/uni-tooltip/uni-tooltip.vue +55 -60
- package/dist/uni/uni-ui/uni-tr/table-checkbox.vue +162 -163
- package/dist/uni/uni-ui/uni-tr/uni-tr.vue +158 -157
- package/dist/uni/uni-ui/uni-transition/createAnimation.js +130 -113
- package/dist/uni/uni-ui/uni-transition/uni-transition.vue +274 -272
- package/package.json +1 -1
|
@@ -1,593 +1,609 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
2
|
+
<!-- #ifdef APP-NVUE -->
|
|
3
|
+
<cell>
|
|
4
|
+
<!-- #endif -->
|
|
5
|
+
<view :hover-class="!clickable && !link ? '' : 'uni-list-chat--hover'" class="uni-list-chat" @click.stop="onClick">
|
|
6
|
+
<view :class="{ 'uni-list--border': border, 'uni-list-chat--first': isFirstChild }"></view>
|
|
7
|
+
<view class="uni-list-chat__container">
|
|
8
|
+
<view class="uni-list-chat__header-warp">
|
|
9
|
+
<view v-if="avatarCircle || avatarList.length === 0" class="uni-list-chat__header" :class="{ 'header--circle': avatarCircle }">
|
|
10
|
+
<image class="uni-list-chat__header-image" :class="{ 'header--circle': avatarCircle }" :src="avatarUrl" mode="aspectFill"></image>
|
|
11
|
+
</view>
|
|
12
|
+
<!-- 头像组 -->
|
|
13
|
+
<view v-else class="uni-list-chat__header">
|
|
14
|
+
<view
|
|
15
|
+
v-for="(item, index) in avatarList"
|
|
16
|
+
:key="index"
|
|
17
|
+
class="uni-list-chat__header-box"
|
|
18
|
+
:class="computedAvatar"
|
|
19
|
+
:style="{ width: imageWidth + 'px', height: imageWidth + 'px' }"
|
|
20
|
+
>
|
|
21
|
+
<image
|
|
22
|
+
class="uni-list-chat__header-image"
|
|
23
|
+
:style="{ width: imageWidth + 'px', height: imageWidth + 'px' }"
|
|
24
|
+
:src="item.url"
|
|
25
|
+
mode="aspectFill"
|
|
26
|
+
></image>
|
|
27
|
+
</view>
|
|
28
|
+
</view>
|
|
29
|
+
</view>
|
|
30
|
+
<!-- #ifndef APP -->
|
|
31
|
+
<view class="slot-header">
|
|
32
|
+
<!-- #endif -->
|
|
33
|
+
<slot name="header"></slot>
|
|
34
|
+
<!-- #ifndef APP -->
|
|
35
|
+
</view>
|
|
36
|
+
<!-- #endif -->
|
|
37
|
+
<view v-if="badgeText && badgePositon === 'left'" class="uni-list-chat__badge uni-list-chat__badge-pos" :class="[isSingle]">
|
|
38
|
+
<text class="uni-list-chat__badge-text">{{ badgeText === 'dot' ? '' : badgeText }}</text>
|
|
39
|
+
</view>
|
|
40
|
+
<view class="uni-list-chat__content">
|
|
41
|
+
<view class="uni-list-chat__content-main">
|
|
42
|
+
<text class="uni-list-chat__content-title uni-ellipsis">{{ title }}</text>
|
|
43
|
+
<view style="flex-direction: row">
|
|
44
|
+
<text class="draft" v-if="isDraft">[草稿]</text>
|
|
45
|
+
<text class="uni-list-chat__content-note uni-ellipsis">{{ isDraft ? note.slice(14) : note }}</text>
|
|
46
|
+
</view>
|
|
47
|
+
</view>
|
|
48
|
+
<view class="uni-list-chat__content-extra">
|
|
49
|
+
<slot>
|
|
50
|
+
<text class="uni-list-chat__content-extra-text">{{ time }}</text>
|
|
51
|
+
<view
|
|
52
|
+
v-if="badgeText && badgePositon === 'right'"
|
|
53
|
+
class="uni-list-chat__badge"
|
|
54
|
+
:class="[isSingle, badgePositon === 'right' ? 'uni-list-chat--right' : '']"
|
|
55
|
+
>
|
|
56
|
+
<text class="uni-list-chat__badge-text">{{ badgeText === 'dot' ? '' : badgeText }}</text>
|
|
57
|
+
</view>
|
|
58
|
+
</slot>
|
|
59
|
+
</view>
|
|
60
|
+
</view>
|
|
61
|
+
</view>
|
|
62
|
+
</view>
|
|
63
|
+
<!-- #ifdef APP-NVUE -->
|
|
64
|
+
</cell>
|
|
65
|
+
<!-- #endif -->
|
|
53
66
|
</template>
|
|
54
67
|
|
|
55
68
|
<script>
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
69
|
+
// 头像大小
|
|
70
|
+
const avatarWidth = 45;
|
|
71
|
+
|
|
72
|
+
/**
|
|
73
|
+
* ListChat 聊天列表
|
|
74
|
+
* @description 聊天列表,用于创建聊天类列表
|
|
75
|
+
* @tutorial https://ext.dcloud.net.cn/plugin?id=24
|
|
76
|
+
* @property {String} title 标题
|
|
77
|
+
* @property {String} note 描述
|
|
78
|
+
* @property {Boolean} clickable = [true|false] 是否开启点击反馈,默认为false
|
|
79
|
+
* @property {String} badgeText 数字角标内容
|
|
80
|
+
* @property {String} badgePositon = [left|right] 角标位置,默认为 right
|
|
81
|
+
* @property {String} link = [false|navigateTo|redirectTo|reLaunch|switchTab] 是否展示右侧箭头并开启点击反馈,默认为false
|
|
82
|
+
* @value false 不开启
|
|
83
|
+
* @value navigateTo 同 uni.navigateTo()
|
|
84
|
+
* @value redirectTo 同 uni.redirectTo()
|
|
85
|
+
* @value reLaunch 同 uni.reLaunch()
|
|
86
|
+
* @value switchTab 同 uni.switchTab()
|
|
87
|
+
* @property {String | PageURIString} to 跳转目标页面
|
|
88
|
+
* @property {String} time 右侧时间显示
|
|
89
|
+
* @property {Boolean} avatarCircle = [true|false] 是否显示圆形头像,默认为false
|
|
90
|
+
* @property {String} avatar 头像地址,avatarCircle 不填时生效
|
|
91
|
+
* @property {Array} avatarList 头像组,格式为 [{url:''}]
|
|
92
|
+
* @event {Function} click 点击 uniListChat 触发事件
|
|
93
|
+
*/
|
|
94
|
+
export default {
|
|
95
|
+
name: 'UniListChat',
|
|
96
|
+
emits: ['click'],
|
|
97
|
+
props: {
|
|
98
|
+
title: {
|
|
99
|
+
type: String,
|
|
100
|
+
default: '',
|
|
101
|
+
},
|
|
102
|
+
note: {
|
|
103
|
+
type: String,
|
|
104
|
+
default: '',
|
|
105
|
+
},
|
|
106
|
+
clickable: {
|
|
107
|
+
type: Boolean,
|
|
108
|
+
default: false,
|
|
109
|
+
},
|
|
110
|
+
link: {
|
|
111
|
+
type: [Boolean, String],
|
|
112
|
+
default: false,
|
|
113
|
+
},
|
|
114
|
+
to: {
|
|
115
|
+
type: String,
|
|
116
|
+
default: '',
|
|
117
|
+
},
|
|
118
|
+
badgeText: {
|
|
119
|
+
type: [String, Number],
|
|
120
|
+
default: '',
|
|
121
|
+
},
|
|
122
|
+
badgePositon: {
|
|
123
|
+
type: String,
|
|
124
|
+
default: 'right',
|
|
125
|
+
},
|
|
126
|
+
time: {
|
|
127
|
+
type: String,
|
|
128
|
+
default: '',
|
|
129
|
+
},
|
|
130
|
+
avatarCircle: {
|
|
131
|
+
type: Boolean,
|
|
132
|
+
default: false,
|
|
133
|
+
},
|
|
134
|
+
avatar: {
|
|
135
|
+
type: String,
|
|
136
|
+
default: '',
|
|
137
|
+
},
|
|
138
|
+
avatarList: {
|
|
139
|
+
type: Array,
|
|
140
|
+
default() {
|
|
141
|
+
return [];
|
|
142
|
+
},
|
|
143
|
+
},
|
|
144
|
+
},
|
|
145
|
+
// inject: ['list'],
|
|
146
|
+
computed: {
|
|
147
|
+
isDraft() {
|
|
148
|
+
return this.note.slice(0, 14) == '[uni-im-draft]';
|
|
149
|
+
},
|
|
150
|
+
isSingle() {
|
|
151
|
+
if (this.badgeText === 'dot') {
|
|
152
|
+
return 'uni-badge--dot';
|
|
153
|
+
} else {
|
|
154
|
+
const badgeText = this.badgeText.toString();
|
|
155
|
+
if (badgeText.length > 1) {
|
|
156
|
+
return 'uni-badge--complex';
|
|
157
|
+
} else {
|
|
158
|
+
return 'uni-badge--single';
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
},
|
|
162
|
+
computedAvatar() {
|
|
163
|
+
if (this.avatarList.length > 4) {
|
|
164
|
+
this.imageWidth = avatarWidth * 0.31;
|
|
165
|
+
return 'avatarItem--3';
|
|
166
|
+
} else if (this.avatarList.length > 1) {
|
|
167
|
+
this.imageWidth = avatarWidth * 0.47;
|
|
168
|
+
return 'avatarItem--2';
|
|
169
|
+
} else {
|
|
170
|
+
this.imageWidth = avatarWidth;
|
|
171
|
+
return 'avatarItem--1';
|
|
172
|
+
}
|
|
173
|
+
},
|
|
174
|
+
},
|
|
175
|
+
watch: {
|
|
176
|
+
avatar: {
|
|
177
|
+
handler(avatar) {
|
|
178
|
+
if (avatar.substr(0, 8) == 'cloud://') {
|
|
179
|
+
uniCloud
|
|
180
|
+
.getTempFileURL({
|
|
181
|
+
fileList: [avatar],
|
|
182
|
+
})
|
|
183
|
+
.then((res) => {
|
|
184
|
+
// console.log(res);
|
|
185
|
+
// 兼容uniCloud私有化部署
|
|
186
|
+
let fileList = res.fileList || res.result.fileList;
|
|
187
|
+
this.avatarUrl = fileList[0].tempFileURL;
|
|
188
|
+
});
|
|
189
|
+
} else {
|
|
190
|
+
this.avatarUrl = avatar;
|
|
191
|
+
}
|
|
192
|
+
},
|
|
193
|
+
immediate: true,
|
|
194
|
+
},
|
|
195
|
+
},
|
|
196
|
+
data() {
|
|
197
|
+
return {
|
|
198
|
+
isFirstChild: false,
|
|
199
|
+
border: true,
|
|
200
|
+
// avatarList: 3,
|
|
201
|
+
imageWidth: 50,
|
|
202
|
+
avatarUrl: '',
|
|
203
|
+
};
|
|
204
|
+
},
|
|
205
|
+
mounted() {
|
|
206
|
+
this.list = this.getForm();
|
|
207
|
+
if (this.list) {
|
|
208
|
+
if (!this.list.firstChildAppend) {
|
|
209
|
+
this.list.firstChildAppend = true;
|
|
210
|
+
this.isFirstChild = true;
|
|
211
|
+
}
|
|
212
|
+
this.border = this.list.border;
|
|
213
|
+
}
|
|
214
|
+
},
|
|
215
|
+
methods: {
|
|
216
|
+
/**
|
|
217
|
+
* 获取父元素实例
|
|
218
|
+
*/
|
|
219
|
+
getForm(name = 'uniList') {
|
|
220
|
+
let parent = this.$parent;
|
|
221
|
+
let parentName = parent.$options.name;
|
|
222
|
+
while (parentName !== name) {
|
|
223
|
+
parent = parent.$parent;
|
|
224
|
+
if (!parent) return false;
|
|
225
|
+
parentName = parent.$options.name;
|
|
226
|
+
}
|
|
227
|
+
return parent;
|
|
228
|
+
},
|
|
229
|
+
onClick() {
|
|
230
|
+
if (this.to !== '') {
|
|
231
|
+
this.openPage();
|
|
232
|
+
return;
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
if (this.clickable || this.link) {
|
|
236
|
+
this.$emit('click', {
|
|
237
|
+
data: {},
|
|
238
|
+
});
|
|
239
|
+
}
|
|
240
|
+
},
|
|
241
|
+
openPage() {
|
|
242
|
+
if (['navigateTo', 'redirectTo', 'reLaunch', 'switchTab'].indexOf(this.link) !== -1) {
|
|
243
|
+
this.pageApi(this.link);
|
|
244
|
+
} else {
|
|
245
|
+
this.pageApi('navigateTo');
|
|
246
|
+
}
|
|
247
|
+
},
|
|
248
|
+
pageApi(api) {
|
|
249
|
+
let callback = {
|
|
250
|
+
url: this.to,
|
|
251
|
+
success: (res) => {
|
|
252
|
+
this.$emit('click', {
|
|
253
|
+
data: res,
|
|
254
|
+
});
|
|
255
|
+
},
|
|
256
|
+
fail: (err) => {
|
|
257
|
+
this.$emit('click', {
|
|
258
|
+
data: err,
|
|
259
|
+
});
|
|
260
|
+
},
|
|
261
|
+
};
|
|
262
|
+
switch (api) {
|
|
263
|
+
case 'navigateTo':
|
|
264
|
+
uni.navigateTo(callback);
|
|
265
|
+
break;
|
|
266
|
+
case 'redirectTo':
|
|
267
|
+
uni.redirectTo(callback);
|
|
268
|
+
break;
|
|
269
|
+
case 'reLaunch':
|
|
270
|
+
uni.reLaunch(callback);
|
|
271
|
+
break;
|
|
272
|
+
case 'switchTab':
|
|
273
|
+
uni.switchTab(callback);
|
|
274
|
+
break;
|
|
275
|
+
default:
|
|
276
|
+
uni.navigateTo(callback);
|
|
277
|
+
}
|
|
278
|
+
},
|
|
279
|
+
},
|
|
280
|
+
};
|
|
266
281
|
</script>
|
|
267
282
|
|
|
268
|
-
<style lang="scss"
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
283
|
+
<style lang="scss">
|
|
284
|
+
$uni-font-size-lg: 16px;
|
|
285
|
+
$uni-spacing-row-sm: 5px;
|
|
286
|
+
$uni-spacing-row-base: 10px;
|
|
287
|
+
$uni-spacing-row-lg: 15px;
|
|
288
|
+
$background-color: #fff;
|
|
289
|
+
$divide-line-color: #e5e5e5;
|
|
290
|
+
$avatar-width: 45px;
|
|
291
|
+
$avatar-border-radius: 5px;
|
|
292
|
+
$avatar-border-color: #eee;
|
|
293
|
+
$avatar-border-width: 1px;
|
|
294
|
+
$title-size: 16px;
|
|
295
|
+
$title-color: #3b4144;
|
|
296
|
+
$title-weight: normal;
|
|
297
|
+
$note-size: 12px;
|
|
298
|
+
$note-color: #999;
|
|
299
|
+
$note-weight: normal;
|
|
300
|
+
$right-text-size: 12px;
|
|
301
|
+
$right-text-color: #999;
|
|
302
|
+
$right-text-weight: normal;
|
|
303
|
+
$badge-left: 0px;
|
|
304
|
+
$badge-top: 0px;
|
|
305
|
+
$dot-width: 10px;
|
|
306
|
+
$dot-height: 10px;
|
|
307
|
+
$badge-size: 18px;
|
|
308
|
+
$badge-font: 12px;
|
|
309
|
+
$badge-color: #fff;
|
|
310
|
+
$badge-background-color: #ff5a5f;
|
|
311
|
+
$badge-space: 6px;
|
|
312
|
+
$hover: #f5f5f5;
|
|
313
|
+
|
|
314
|
+
.uni-list-chat {
|
|
315
|
+
font-size: $uni-font-size-lg;
|
|
316
|
+
position: relative;
|
|
317
|
+
flex-direction: column;
|
|
318
|
+
justify-content: space-between;
|
|
319
|
+
background-color: $background-color;
|
|
320
|
+
}
|
|
321
|
+
|
|
322
|
+
// .uni-list-chat--disabled {
|
|
323
|
+
// opacity: 0.3;
|
|
324
|
+
// }
|
|
325
|
+
|
|
326
|
+
.uni-list-chat--hover {
|
|
327
|
+
background-color: $hover;
|
|
328
|
+
}
|
|
329
|
+
|
|
330
|
+
.uni-list--border {
|
|
331
|
+
position: relative;
|
|
332
|
+
margin-left: $uni-spacing-row-lg;
|
|
333
|
+
/* #ifdef APP-PLUS */
|
|
334
|
+
border-top-color: $divide-line-color;
|
|
335
|
+
border-top-style: solid;
|
|
336
|
+
border-top-width: 0.5px;
|
|
337
|
+
/* #endif */
|
|
338
|
+
}
|
|
339
|
+
|
|
340
|
+
/* #ifndef APP-NVUE */
|
|
341
|
+
.uni-list--border:after {
|
|
342
|
+
position: absolute;
|
|
343
|
+
top: 0;
|
|
344
|
+
right: 0;
|
|
345
|
+
left: 0;
|
|
346
|
+
height: 1px;
|
|
347
|
+
content: '';
|
|
348
|
+
-webkit-transform: scaleY(0.5);
|
|
349
|
+
transform: scaleY(0.5);
|
|
350
|
+
background-color: $divide-line-color;
|
|
351
|
+
}
|
|
352
|
+
|
|
353
|
+
.uni-list-item--first:after {
|
|
354
|
+
height: 0px;
|
|
355
|
+
}
|
|
356
|
+
|
|
357
|
+
/* #endif */
|
|
358
|
+
|
|
359
|
+
.uni-list-chat--first {
|
|
360
|
+
border-top-width: 0px;
|
|
361
|
+
}
|
|
362
|
+
|
|
363
|
+
.uni-ellipsis {
|
|
364
|
+
/* #ifndef APP-NVUE */
|
|
365
|
+
overflow: hidden;
|
|
366
|
+
white-space: nowrap;
|
|
367
|
+
text-overflow: ellipsis;
|
|
368
|
+
/* #endif */
|
|
369
|
+
/* #ifdef APP-NVUE */
|
|
370
|
+
lines: 1;
|
|
371
|
+
/* #endif */
|
|
372
|
+
}
|
|
373
|
+
|
|
374
|
+
.uni-ellipsis-2 {
|
|
375
|
+
/* #ifndef APP-NVUE */
|
|
376
|
+
overflow: hidden;
|
|
377
|
+
text-overflow: ellipsis;
|
|
378
|
+
display: -webkit-box;
|
|
379
|
+
-webkit-line-clamp: 2;
|
|
380
|
+
-webkit-box-orient: vertical;
|
|
381
|
+
/* #endif */
|
|
382
|
+
|
|
383
|
+
/* #ifdef APP-NVUE */
|
|
384
|
+
lines: 2;
|
|
385
|
+
/* #endif */
|
|
386
|
+
}
|
|
387
|
+
|
|
388
|
+
.uni-list-chat__container {
|
|
389
|
+
position: relative;
|
|
390
|
+
/* #ifndef APP-NVUE */
|
|
391
|
+
display: flex;
|
|
392
|
+
/* #endif */
|
|
393
|
+
flex-direction: row;
|
|
394
|
+
flex: 1;
|
|
395
|
+
padding: $uni-spacing-row-base $uni-spacing-row-lg;
|
|
396
|
+
position: relative;
|
|
397
|
+
overflow: hidden;
|
|
398
|
+
}
|
|
399
|
+
|
|
400
|
+
.uni-list-chat__header-warp {
|
|
401
|
+
position: relative;
|
|
402
|
+
}
|
|
403
|
+
|
|
404
|
+
.uni-list-chat__header {
|
|
405
|
+
/* #ifndef APP-NVUE */
|
|
406
|
+
display: flex;
|
|
407
|
+
align-content: center;
|
|
408
|
+
/* #endif */
|
|
409
|
+
flex-direction: row;
|
|
410
|
+
justify-content: center;
|
|
411
|
+
align-items: center;
|
|
412
|
+
flex-wrap: wrap-reverse;
|
|
413
|
+
/* #ifdef APP-NVUE */
|
|
414
|
+
width: 50px;
|
|
415
|
+
height: 50px;
|
|
416
|
+
/* #endif */
|
|
417
|
+
/* #ifndef APP-NVUE */
|
|
418
|
+
width: $avatar-width;
|
|
419
|
+
height: $avatar-width;
|
|
420
|
+
/* #endif */
|
|
421
|
+
|
|
422
|
+
border-radius: $avatar-border-radius;
|
|
423
|
+
border-color: $avatar-border-color;
|
|
424
|
+
border-width: $avatar-border-width;
|
|
425
|
+
border-style: solid;
|
|
426
|
+
overflow: hidden;
|
|
427
|
+
}
|
|
428
|
+
|
|
429
|
+
.uni-list-chat__header-box {
|
|
430
|
+
/* #ifndef APP-PLUS */
|
|
431
|
+
box-sizing: border-box;
|
|
432
|
+
display: flex;
|
|
433
|
+
width: $avatar-width;
|
|
434
|
+
height: $avatar-width;
|
|
435
|
+
/* #endif */
|
|
436
|
+
/* #ifdef APP-NVUE */
|
|
437
|
+
width: 50px;
|
|
438
|
+
height: 50px;
|
|
439
|
+
/* #endif */
|
|
440
|
+
overflow: hidden;
|
|
441
|
+
border-radius: 2px;
|
|
442
|
+
}
|
|
443
|
+
|
|
444
|
+
.uni-list-chat__header-image {
|
|
445
|
+
margin: 1px;
|
|
446
|
+
/* #ifdef APP-NVUE */
|
|
447
|
+
width: 50px;
|
|
448
|
+
height: 50px;
|
|
449
|
+
/* #endif */
|
|
450
|
+
/* #ifndef APP-NVUE */
|
|
451
|
+
width: $avatar-width;
|
|
452
|
+
height: $avatar-width;
|
|
453
|
+
/* #endif */
|
|
454
|
+
}
|
|
455
|
+
|
|
456
|
+
/* #ifndef APP-NVUE */
|
|
457
|
+
.uni-list-chat__header-image {
|
|
458
|
+
display: block;
|
|
459
|
+
width: 100%;
|
|
460
|
+
height: 100%;
|
|
461
|
+
}
|
|
462
|
+
|
|
463
|
+
.avatarItem--1 {
|
|
464
|
+
width: 100%;
|
|
465
|
+
height: 100%;
|
|
466
|
+
}
|
|
467
|
+
|
|
468
|
+
.avatarItem--2 {
|
|
469
|
+
width: 47%;
|
|
470
|
+
height: 47%;
|
|
471
|
+
}
|
|
472
|
+
|
|
473
|
+
.avatarItem--3 {
|
|
474
|
+
width: 32%;
|
|
475
|
+
height: 32%;
|
|
476
|
+
}
|
|
477
|
+
|
|
478
|
+
/* #endif */
|
|
479
|
+
.header--circle {
|
|
480
|
+
border-radius: 50%;
|
|
481
|
+
}
|
|
482
|
+
|
|
483
|
+
.uni-list-chat__content {
|
|
484
|
+
/* #ifndef APP-NVUE */
|
|
485
|
+
display: flex;
|
|
486
|
+
/* #endif */
|
|
487
|
+
flex-direction: row;
|
|
488
|
+
flex: 1;
|
|
489
|
+
overflow: hidden;
|
|
490
|
+
padding: 2px 0;
|
|
491
|
+
}
|
|
492
|
+
|
|
493
|
+
.uni-list-chat__content-main {
|
|
494
|
+
/* #ifndef APP-NVUE */
|
|
495
|
+
display: flex;
|
|
496
|
+
/* #endif */
|
|
497
|
+
flex-direction: column;
|
|
498
|
+
justify-content: space-between;
|
|
499
|
+
padding-left: $uni-spacing-row-base;
|
|
500
|
+
flex: 1;
|
|
501
|
+
overflow: hidden;
|
|
502
|
+
}
|
|
503
|
+
|
|
504
|
+
.uni-list-chat__content-title {
|
|
505
|
+
font-size: $title-size;
|
|
506
|
+
color: $title-color;
|
|
507
|
+
font-weight: $title-weight;
|
|
508
|
+
overflow: hidden;
|
|
509
|
+
}
|
|
510
|
+
|
|
511
|
+
.draft,
|
|
512
|
+
.uni-list-chat__content-note {
|
|
513
|
+
margin-top: 3px;
|
|
514
|
+
color: $note-color;
|
|
515
|
+
font-size: $note-size;
|
|
516
|
+
font-weight: $title-weight;
|
|
517
|
+
overflow: hidden;
|
|
518
|
+
}
|
|
519
|
+
.draft {
|
|
520
|
+
color: #eb3a41;
|
|
521
|
+
/* #ifndef APP-NVUE */
|
|
522
|
+
flex-shrink: 0;
|
|
523
|
+
/* #endif */
|
|
524
|
+
padding-right: 3px;
|
|
525
|
+
}
|
|
526
|
+
|
|
527
|
+
.uni-list-chat__content-extra {
|
|
528
|
+
/* #ifndef APP-NVUE */
|
|
529
|
+
flex-shrink: 0;
|
|
530
|
+
display: flex;
|
|
531
|
+
/* #endif */
|
|
532
|
+
flex-direction: column;
|
|
533
|
+
justify-content: space-between;
|
|
534
|
+
align-items: flex-end;
|
|
535
|
+
margin-left: 5px;
|
|
536
|
+
}
|
|
537
|
+
|
|
538
|
+
.uni-list-chat__content-extra-text {
|
|
539
|
+
color: $right-text-color;
|
|
540
|
+
font-size: $right-text-size;
|
|
541
|
+
font-weight: $right-text-weight;
|
|
542
|
+
overflow: hidden;
|
|
543
|
+
}
|
|
544
|
+
|
|
545
|
+
.uni-list-chat__badge-pos {
|
|
546
|
+
position: absolute;
|
|
547
|
+
/* #ifdef APP-NVUE */
|
|
548
|
+
left: 55px;
|
|
549
|
+
top: 3px;
|
|
550
|
+
/* #endif */
|
|
551
|
+
/* #ifndef APP-NVUE */
|
|
552
|
+
left: calc(#{$avatar-width} + 10px - #{$badge-space} + #{$badge-left});
|
|
553
|
+
top: calc(#{$uni-spacing-row-base}/ 2 + 1px + #{$badge-top});
|
|
554
|
+
/* #endif */
|
|
555
|
+
}
|
|
556
|
+
|
|
557
|
+
.uni-list-chat__badge {
|
|
558
|
+
/* #ifndef APP-NVUE */
|
|
559
|
+
display: flex;
|
|
560
|
+
/* #endif */
|
|
561
|
+
justify-content: center;
|
|
562
|
+
align-items: center;
|
|
563
|
+
border-radius: 100px;
|
|
564
|
+
background-color: $badge-background-color;
|
|
565
|
+
}
|
|
566
|
+
|
|
567
|
+
.uni-list-chat__badge-text {
|
|
568
|
+
color: $badge-color;
|
|
569
|
+
font-size: $badge-font;
|
|
570
|
+
}
|
|
571
|
+
|
|
572
|
+
.uni-badge--single {
|
|
573
|
+
/* #ifndef APP-NVUE */
|
|
574
|
+
// left: calc(#{$avatar-width} + 7px + #{$badge-left});
|
|
575
|
+
/* #endif */
|
|
576
|
+
width: $badge-size;
|
|
577
|
+
height: $badge-size;
|
|
578
|
+
}
|
|
579
|
+
|
|
580
|
+
.uni-badge--complex {
|
|
581
|
+
/* #ifdef APP-NVUE */
|
|
582
|
+
left: 50px;
|
|
583
|
+
/* #endif */
|
|
584
|
+
/* #ifndef APP-NVUE */
|
|
585
|
+
width: auto;
|
|
586
|
+
/* #endif */
|
|
587
|
+
height: $badge-size;
|
|
588
|
+
padding: 0 $badge-space;
|
|
589
|
+
}
|
|
590
|
+
|
|
591
|
+
.uni-badge--dot {
|
|
592
|
+
/* #ifdef APP-NVUE */
|
|
593
|
+
left: 60px;
|
|
594
|
+
top: 6px;
|
|
595
|
+
/* #endif */
|
|
596
|
+
/* #ifndef APP-NVUE */
|
|
597
|
+
left: calc(#{$avatar-width} + 15px - #{$dot-width}/ 2 + 1px + #{$badge-left});
|
|
598
|
+
/* #endif */
|
|
599
|
+
width: $dot-width;
|
|
600
|
+
height: $dot-height;
|
|
601
|
+
padding: 0;
|
|
602
|
+
}
|
|
603
|
+
|
|
604
|
+
.uni-list-chat--right {
|
|
605
|
+
/* #ifdef APP-NVUE */
|
|
606
|
+
left: 0;
|
|
607
|
+
/* #endif */
|
|
608
|
+
}
|
|
593
609
|
</style>
|