@zscreate/zhxy-app-component 1.0.118 → 1.0.119
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.
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
:upload-text="widget.options.placeholder"
|
|
8
8
|
width="150" height="150" :multiple="false" :max-count="maxCount" :disabled="disabled"
|
|
9
9
|
@on-remove="onRemove" @on-oversize="onOversize" @on-success="onSuccess"
|
|
10
|
-
:show-progress="showProgress">
|
|
10
|
+
:show-progress="showProgress" :max-size="maxSize">
|
|
11
11
|
|
|
12
12
|
<template name="addbtn">
|
|
13
13
|
<view class="u-list-item u-add-wrap" hover-class="u-add-wrap__hover" hover-stay-time="150" @click.stop="handleClick">
|
|
@@ -47,6 +47,7 @@ export default {
|
|
|
47
47
|
percent: 0,
|
|
48
48
|
upimg: '',
|
|
49
49
|
maxCount: 8,
|
|
50
|
+
maxSize: undefined,
|
|
50
51
|
disabled: false,
|
|
51
52
|
show: true,
|
|
52
53
|
fileList: [],
|
|
@@ -87,7 +88,7 @@ export default {
|
|
|
87
88
|
|
|
88
89
|
if (!ext.includes(event.name.split('.').pop())) {
|
|
89
90
|
return uni.showToast({
|
|
90
|
-
title:
|
|
91
|
+
title: `不允许上传的文件类型!`,
|
|
91
92
|
icon: 'none'
|
|
92
93
|
})
|
|
93
94
|
}
|
|
@@ -172,6 +173,7 @@ export default {
|
|
|
172
173
|
})
|
|
173
174
|
},
|
|
174
175
|
onOversize() {
|
|
176
|
+
debugger
|
|
175
177
|
uni.showToast({
|
|
176
178
|
title: `文件超出${this.maxSize/1024}KB!`,
|
|
177
179
|
icon: 'none',
|