mali-applet-ui 1.1.92 → 1.1.94
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.
|
@@ -219,8 +219,10 @@ export default {
|
|
|
219
219
|
type: Boolean,
|
|
220
220
|
default: false
|
|
221
221
|
},
|
|
222
|
-
|
|
223
|
-
|
|
222
|
+
limitCount: {
|
|
223
|
+
type: Number,
|
|
224
|
+
default: 0
|
|
225
|
+
},
|
|
224
226
|
limitSize: {
|
|
225
227
|
type: Number,
|
|
226
228
|
default: Number(globalStore.upload?.limitSize || 20480)
|
|
@@ -298,7 +300,13 @@ export default {
|
|
|
298
300
|
return !!this.form
|
|
299
301
|
},
|
|
300
302
|
limitFileLen () {
|
|
301
|
-
|
|
303
|
+
if (this.limitCount) {
|
|
304
|
+
return this.limitCount
|
|
305
|
+
}
|
|
306
|
+
if (this.mediatype === 'image') {
|
|
307
|
+
return 9
|
|
308
|
+
}
|
|
309
|
+
return 100
|
|
302
310
|
},
|
|
303
311
|
isLimit () {
|
|
304
312
|
if (this.multiple) {
|