@aochuang/client-sdk 1.0.304 → 1.0.305
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.
|
@@ -11,6 +11,20 @@
|
|
|
11
11
|
<div class="sdk-contacts-group-select__group-head-col is-full">
|
|
12
12
|
<div class="sdk-contacts-group-select__group-title">好友分组({{ friendGroupData ? friendGroupData.length : 0 }})</div>
|
|
13
13
|
</div>
|
|
14
|
+
<template v-if="showRefresh">
|
|
15
|
+
<div class="sdk-contacts-group-select__group-head-col">
|
|
16
|
+
<ui-tooltip content="刷新数据">
|
|
17
|
+
<div class="sdk-contacts-group-select__group-addon" @click="handleFriendRefreshClick">
|
|
18
|
+
<template v-if="friendRefreshing">
|
|
19
|
+
<ui-loading size="mini"></ui-loading>
|
|
20
|
+
</template>
|
|
21
|
+
<template v-else>
|
|
22
|
+
<ui-icon name="refresh-line"></ui-icon>
|
|
23
|
+
</template>
|
|
24
|
+
</div>
|
|
25
|
+
</ui-tooltip>
|
|
26
|
+
</div>
|
|
27
|
+
</template>
|
|
14
28
|
<div class="sdk-contacts-group-select__group-head-col">
|
|
15
29
|
<ui-tooltip :content="showFriendFilterPanel ? '关闭筛选' : '展开筛选'">
|
|
16
30
|
<div class="sdk-contacts-group-select__group-addon" @click="handleFriendAddonClick">
|
|
@@ -71,6 +85,20 @@
|
|
|
71
85
|
<div class="sdk-contacts-group-select__group-head-col is-full">
|
|
72
86
|
<div class="sdk-contacts-group-select__group-title">群聊分组({{ roomGroupData ? roomGroupData.length : 0 }})</div>
|
|
73
87
|
</div>
|
|
88
|
+
<template v-if="showRefresh">
|
|
89
|
+
<div class="sdk-contacts-group-select__group-head-col">
|
|
90
|
+
<ui-tooltip content="刷新数据">
|
|
91
|
+
<div class="sdk-contacts-group-select__group-addon" @click="handleRoomRefreshClick">
|
|
92
|
+
<template v-if="roomRefreshing">
|
|
93
|
+
<ui-loading size="mini"></ui-loading>
|
|
94
|
+
</template>
|
|
95
|
+
<template v-else>
|
|
96
|
+
<ui-icon name="refresh-line"></ui-icon>
|
|
97
|
+
</template>
|
|
98
|
+
</div>
|
|
99
|
+
</ui-tooltip>
|
|
100
|
+
</div>
|
|
101
|
+
</template>
|
|
74
102
|
<div class="sdk-contacts-group-select__group-head-col">
|
|
75
103
|
<ui-tooltip :content="showRoomFilterPanel ? '关闭筛选' : '展开筛选'">
|
|
76
104
|
<div class="sdk-contacts-group-select__group-addon" @click="handleRoomAddonClick">
|
|
@@ -143,6 +171,9 @@ export default {
|
|
|
143
171
|
ContactsGroupSelectItem
|
|
144
172
|
},
|
|
145
173
|
props: {
|
|
174
|
+
showRefresh: {
|
|
175
|
+
type: Boolean
|
|
176
|
+
},
|
|
146
177
|
friendGroupData: {
|
|
147
178
|
type: Array
|
|
148
179
|
},
|
|
@@ -151,9 +182,6 @@ export default {
|
|
|
151
182
|
},
|
|
152
183
|
queryGroupDataMethod: {
|
|
153
184
|
type: Function
|
|
154
|
-
},
|
|
155
|
-
queryGroupCountMethod: {
|
|
156
|
-
type: Function
|
|
157
185
|
},
|
|
158
186
|
checkGroupLoadingMethod: {
|
|
159
187
|
type: Function
|
|
@@ -168,6 +196,8 @@ export default {
|
|
|
168
196
|
roomGroupEmpty: null
|
|
169
197
|
},
|
|
170
198
|
loading: false,
|
|
199
|
+
friendRefreshing: false,
|
|
200
|
+
roomRefreshing: false,
|
|
171
201
|
showRoomFilterPanel: false,
|
|
172
202
|
showFriendFilterPanel: false
|
|
173
203
|
}
|
|
@@ -209,18 +239,30 @@ export default {
|
|
|
209
239
|
}
|
|
210
240
|
},
|
|
211
241
|
created () {
|
|
212
|
-
this.
|
|
242
|
+
this.loading = true
|
|
243
|
+
this.loadData().finally(() => {
|
|
244
|
+
this.loading = false
|
|
245
|
+
})
|
|
213
246
|
},
|
|
214
247
|
methods: {
|
|
215
248
|
loadData () {
|
|
216
|
-
|
|
217
|
-
this.queryGroupDataMethod().finally(() => {
|
|
218
|
-
this.loading = false
|
|
219
|
-
})
|
|
249
|
+
return this.queryGroupDataMethod()
|
|
220
250
|
},
|
|
221
251
|
handleFriendToggleEmptyClick () {
|
|
222
252
|
this.filters.friendGroupEmpty = !this.filters.friendGroupEmpty
|
|
223
253
|
},
|
|
254
|
+
handleFriendRefreshClick () {
|
|
255
|
+
this.friendRefreshing = true
|
|
256
|
+
this.loadData().finally(() => {
|
|
257
|
+
this.friendRefreshing = false
|
|
258
|
+
})
|
|
259
|
+
},
|
|
260
|
+
handleRoomRefreshClick () {
|
|
261
|
+
this.roomRefreshing = true
|
|
262
|
+
this.loadData().finally(() => {
|
|
263
|
+
this.roomRefreshing = false
|
|
264
|
+
})
|
|
265
|
+
},
|
|
224
266
|
handleFriendAddonClick () {
|
|
225
267
|
this.showFriendFilterPanel = !this.showFriendFilterPanel
|
|
226
268
|
this.$nextTick(() => {
|
|
@@ -354,6 +396,10 @@ export default {
|
|
|
354
396
|
text-align: center;
|
|
355
397
|
line-height: 24px;
|
|
356
398
|
border-radius: 3px;
|
|
399
|
+
display: flex;
|
|
400
|
+
flex-direction: column;
|
|
401
|
+
align-items: center;
|
|
402
|
+
justify-content: center;
|
|
357
403
|
cursor: pointer;
|
|
358
404
|
transition: all .25s;
|
|
359
405
|
color: #999;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aochuang/client-sdk",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.305",
|
|
4
4
|
"description": "",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"test": "echo \"Error: no test specified\" && exit 1"
|
|
@@ -14,9 +14,9 @@
|
|
|
14
14
|
"access": "public"
|
|
15
15
|
},
|
|
16
16
|
"peerDependencies": {
|
|
17
|
-
"axios": "
|
|
18
|
-
"@aochuang/common": "
|
|
19
|
-
"x2js": "
|
|
17
|
+
"axios": "*",
|
|
18
|
+
"@aochuang/common": "*",
|
|
19
|
+
"x2js": "*"
|
|
20
20
|
},
|
|
21
21
|
"author": "",
|
|
22
22
|
"license": "ISC"
|