@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
- this.setData({
254
- status: searchStatus,
255
- showOption: searchOption,
256
- isFinish: true,
257
- index: -1,
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__inputbutton" wx:if="{{!disabled&&isChooseAvatar}}" open-type="chooseAvatar" bind:chooseavatar="onChooseAvatar"></button>
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>
@@ -18,6 +18,6 @@
18
18
  border-radius: 6px;
19
19
  }
20
20
 
21
- .weui-uploader__files .weui-uploader__input-box .weui-uploader__inputbutton {
21
+ .weui-uploader__files .weui-uploader__input-box .weui-uploader__input-button {
22
22
  width: 100%;
23
23
  }
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "miniprogram": "./",
4
4
  "packageManager": "yarn@3.0.2",
5
5
  "dependencies": {},
6
- "version": "3.7.1",
6
+ "version": "3.7.2",
7
7
  "main": "./",
8
8
  "publishConfig": {
9
9
  "access": "public"