@zscreate/zhxy-app-component 1.0.147 → 1.0.149
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,10 +7,11 @@
|
|
|
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
|
+
:maxCount="_maxCount"
|
|
10
11
|
:show-progress="showProgress" :max-size="maxSize">
|
|
11
12
|
|
|
12
13
|
<template name="addbtn">
|
|
13
|
-
<view
|
|
14
|
+
<view class="u-list-item u-add-wrap" hover-class="u-add-wrap__hover" hover-stay-time="150" @click.stop="handleClick">
|
|
14
15
|
<u-icon name="plus" size="40"></u-icon>
|
|
15
16
|
<view class="u-add-tips">{{ '上传' }}</view>
|
|
16
17
|
</view>
|
|
@@ -62,6 +63,11 @@ export default {
|
|
|
62
63
|
},
|
|
63
64
|
};
|
|
64
65
|
},
|
|
66
|
+
computed: {
|
|
67
|
+
_maxCount() {
|
|
68
|
+
return this.disabled ? this.fileList.length : this.maxCount
|
|
69
|
+
}
|
|
70
|
+
},
|
|
65
71
|
async created() {
|
|
66
72
|
const { uploadEncrypt, downloadVerifyToken} = this.widget.options
|
|
67
73
|
if (uploadEncrypt && !downloadVerifyToken) {
|