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
- limit: Number,
223
- limitCount: Number,
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
- return this.limitCount || this.limit || 9
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) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mali-applet-ui",
3
- "version": "1.1.92",
3
+ "version": "1.1.94",
4
4
  "description": "码里UI-小程序组件库(vue2)",
5
5
  "files": [
6
6
  "lib",