@cloudbase/weda-ui-mp 3.18.1 → 3.18.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.
@@ -283,7 +283,7 @@ Component({
283
283
  ? `附近搜索失败,请检查APIKEY【${apiKey}】是否正确,调整/ws/place/v1/explore配额`
284
284
  : '',
285
285
  });
286
- this.triggerEvent('error', { error: comErrorInfo });
286
+ _this.triggerEvent('error', { error: comErrorInfo });
287
287
  _this.setData({
288
288
  searchLoadingStatus: false,
289
289
  });
@@ -251,6 +251,9 @@ Component({
251
251
  }
252
252
  const cleanInitValue = JSON.parse(JSON.stringify(initValue));
253
253
  if (this.setReadonlyAttributes) {
254
+ this.setData({
255
+ remoteValue: cleanInitValue,
256
+ });
254
257
  this.setReadonlyAttributes({ remoteValue: cleanInitValue });
255
258
  }
256
259
  this.setData({ isLoadingData: false });
@@ -268,7 +271,7 @@ Component({
268
271
  formData: initValues,
269
272
  initialValues: initValues,
270
273
  });
271
- this.triggerEvent('querySuccess', initValue);
274
+ this.triggerEvent('querySuccess', { ...initValue, data: initValue });
272
275
  }, compMountTimeOut);
273
276
  }
274
277
  if (Object.keys(initValue).length === 0) {
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "miniprogram": "./",
4
4
  "packageManager": "yarn@3.0.2",
5
5
  "dependencies": {},
6
- "version": "3.18.1",
6
+ "version": "3.18.2",
7
7
  "main": "./",
8
8
  "publishConfig": {
9
9
  "access": "public"