@cloudbase/weda-ui-mp 3.17.1 → 3.17.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.
|
@@ -156,12 +156,21 @@ Component({
|
|
|
156
156
|
'name, value, label, required, visible, disabled, readOnly, sourceType': function () {
|
|
157
157
|
this.updateWidgetAPI();
|
|
158
158
|
},
|
|
159
|
-
'disabled,sourceType,maxUploadCount,sizeType,single': function (
|
|
159
|
+
'disabled,sourceType,maxUploadCount,sizeType,maxSize,single': function (
|
|
160
|
+
disabled,
|
|
161
|
+
sourceType,
|
|
162
|
+
maxUploadCount,
|
|
163
|
+
sizeType,
|
|
164
|
+
maxSize,
|
|
165
|
+
single,
|
|
166
|
+
) {
|
|
160
167
|
const config = {
|
|
161
168
|
disabled,
|
|
162
169
|
sourceType,
|
|
163
170
|
maxUploadCount,
|
|
164
171
|
sizeType,
|
|
172
|
+
maxSize,
|
|
173
|
+
single,
|
|
165
174
|
};
|
|
166
175
|
this.setConfig(config);
|
|
167
176
|
},
|
|
@@ -194,8 +203,8 @@ Component({
|
|
|
194
203
|
lifetimes: {
|
|
195
204
|
attached: function () {
|
|
196
205
|
this.initValue();
|
|
197
|
-
const { disabled, sourceType, sizeType } = this.data;
|
|
198
|
-
this.setConfig({ disabled, maxDuration: 60, sourceType, sizeType });
|
|
206
|
+
const { disabled, sourceType, sizeType, maxSize } = this.data;
|
|
207
|
+
this.setConfig({ disabled, maxDuration: 60, sourceType, sizeType, maxSize });
|
|
199
208
|
|
|
200
209
|
this.updateWidgetAPI();
|
|
201
210
|
},
|