@cloudbase/weda-ui-mp 3.7.3 → 3.7.4

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.
@@ -257,17 +257,12 @@ Component({
257
257
  });
258
258
  }
259
259
  },
260
- failEvent(length, invalidIndex) {
261
- this.triggerEvent(
262
- 'fail',
263
- {
264
- type: 1,
265
- errMsg: `chooseImage:fail size exceed ${this.data.maxSize}`,
266
- total: length,
267
- index: invalidIndex,
268
- },
269
- {}
270
- );
260
+ failEvent() {
261
+ wx.showToast({
262
+ icon: 'none',
263
+ duration: 2000,
264
+ title: `请上传不超过 ${this.data.maxSize / (1024 * 1024)}M 的图片`,
265
+ });
271
266
  },
272
267
  deletePic(e) {
273
268
  const index = e.detail.index;
@@ -174,12 +174,13 @@
174
174
  }
175
175
  .wd-modal-bd__ft-text-btn .wd-mp-btn.wd-btn--primary {
176
176
  color: var(--wd-color-brand, #0052d9);
177
+ background-color: transparent;
177
178
  }
178
- .wd-modal-bd__ft-text-btn .wd-mp-btn.wd-btn--primary:hover {
179
+ .wd-modal-bd__ft-text-btn .wd-mp-btn.wd-btn--primary:hover:not(.is-disabled) {
179
180
  background-color: transparent;
180
181
  border-color: var(--wd-color-border-default);
181
182
  }
182
- .wd-modal-bd__ft-text-btn .wd-mp-btn:hover {
183
+ .wd-modal-bd__ft-text-btn .wd-mp-btn:hover:not(.is-disabled) {
183
184
  background-color: transparent;
184
185
  border-color: var(--wd-color-border-default);
185
186
  }
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.3",
6
+ "version": "3.7.4",
7
7
  "main": "./",
8
8
  "publishConfig": {
9
9
  "access": "public"