@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.
@@ -190,6 +190,7 @@
190
190
  this.indexone = idx
191
191
  if (item.isLeaf == false) {
192
192
  this.listtwo = []
193
+ this.levellist = []
193
194
  this.getnext(item.value).then(res => {
194
195
  this.listtwo = res.result
195
196
  this.hadletwo(res.result[this.indexList[1]], this.indexList[1])
@@ -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 class="u-list-item u-add-wrap" hover-class="u-add-wrap__hover" hover-stay-time="150" @click.stop="handleClick">
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) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zscreate/zhxy-app-component",
3
- "version": "1.0.147",
3
+ "version": "1.0.149",
4
4
  "private": false,
5
5
  "description": "zhxy-app-component",
6
6
  "main": "index.js",