@cloudbase/weda-ui-mp 3.22.1 → 3.22.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.
@@ -159,6 +159,10 @@ Component({
159
159
  setConfigHandle: function ({ config }) {
160
160
  this.setConfig(config);
161
161
  },
162
+ uploadHandle: function () {
163
+ upload(this.data.uploadInstance);
164
+ },
165
+
162
166
  init: function () {
163
167
  const { config } = this.data;
164
168
  const uploadInstance = this.initUploadInstance({ action: 'CHOOSE_MEDIA', config });
@@ -166,9 +170,7 @@ Component({
166
170
 
167
171
  this.setReadonlyAttributes &&
168
172
  this.setReadonlyAttributes({
169
- upload: (_uploadInstance = uploadInstance) => {
170
- upload(_uploadInstance);
171
- },
173
+ upload: this.uploadHandle.bind(this),
172
174
  delete: this.deleteHandle.bind(this),
173
175
  uploadInstance,
174
176
  setConfig: this.setConfigHandle.bind(this),
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "miniprogram": "./",
4
4
  "packageManager": "yarn@3.0.2",
5
5
  "dependencies": {},
6
- "version": "3.22.1",
6
+ "version": "3.22.2",
7
7
  "main": "./",
8
8
  "publishConfig": {
9
9
  "access": "public"