@cloudbase/weda-ui-mp 3.7.1 → 3.7.2
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.
|
@@ -227,9 +227,11 @@ Component({
|
|
|
227
227
|
option,
|
|
228
228
|
loadStatus,
|
|
229
229
|
searchOption,
|
|
230
|
-
searchStatus
|
|
230
|
+
searchStatus,
|
|
231
|
+
_needFetch
|
|
231
232
|
) {
|
|
232
233
|
if (this.data.searchValue === '') {
|
|
234
|
+
// 初始化会走到这
|
|
233
235
|
const { chooseIndexValue } = this.properties;
|
|
234
236
|
let index = -1;
|
|
235
237
|
if (chooseIndexValue !== '') {
|
|
@@ -250,12 +252,15 @@ Component({
|
|
|
250
252
|
clickIndex: index,
|
|
251
253
|
});
|
|
252
254
|
} else {
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
255
|
+
if (_needFetch) {
|
|
256
|
+
// 只有needFetch 才设置searchOption
|
|
257
|
+
this.setData({
|
|
258
|
+
status: searchStatus,
|
|
259
|
+
showOption: searchOption,
|
|
260
|
+
isFinish: true,
|
|
261
|
+
index: -1,
|
|
262
|
+
});
|
|
263
|
+
}
|
|
259
264
|
}
|
|
260
265
|
},
|
|
261
266
|
},
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
<view wx:if="{{currentFiles.length < maxCount && !readOnly}}" class="weui-uploader__input-box {{shapeClass}}" hover-class="weui-active">
|
|
41
41
|
<view wx:if="{{!disabled&&!isChooseAvatar}}" class="weui-uploader__input" bindtap="chooseImage"></view>
|
|
42
42
|
|
|
43
|
-
<button class="weui-uploader__input weui-uploader__input
|
|
43
|
+
<button class="weui-uploader__input weui-uploader__input-button" wx:if="{{!disabled&&isChooseAvatar}}" open-type="chooseAvatar" bind:chooseavatar="onChooseAvatar"></button>
|
|
44
44
|
|
|
45
45
|
<view wx:if="{{disabled}}" class="weui-uploader__uploader_disabled"></view>
|
|
46
46
|
</view>
|