mali-applet-ui 0.2.76 → 0.2.77

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.
@@ -39,7 +39,7 @@
39
39
  <ml-button status="primary" type="text" @click="downloadEvent(item)">下载</ml-button>
40
40
  </view>
41
41
  </view>
42
- <view v-if="!isFromReadonly" class="ml-upload-file-right">
42
+ <view v-if="!isFromReadonly || fileList.length <= limit" class="ml-upload-file-right">
43
43
  <view class="ml-upload-file-del-btn" @click="removeEvent(item)">
44
44
  <ml-icon name="close" />
45
45
  </view>
@@ -53,7 +53,7 @@
53
53
  import XEUtils from 'xe-utils'
54
54
  import globalStore from '../../config/store'
55
55
  import { uploadAllFiles, uploadImageFiles } from './file-handle'
56
-
56
+
57
57
  export default {
58
58
  name: 'MlUpload',
59
59
  props: {
@@ -286,6 +286,9 @@ export default {
286
286
  itemList: ['保存图片']
287
287
  }
288
288
  })
289
+ },
290
+ fail (e) {
291
+ console.log(e)
289
292
  }
290
293
  })
291
294
  },
@@ -333,6 +336,9 @@ export default {
333
336
  title: '文件已保存:' + res.savedFilePath, //保存路径
334
337
  duration: 3000,
335
338
  })
339
+ },
340
+ fail (e) {
341
+ console.log(e)
336
342
  }
337
343
  })
338
344
  },
@@ -340,7 +346,7 @@ export default {
340
346
  uni.showModal({
341
347
  content: '下载失败',
342
348
  showCancel: false
343
- });
349
+ })
344
350
  }
345
351
  })
346
352
  },
@@ -351,7 +357,7 @@ export default {
351
357
  }
352
358
  const uploadMethod = this.uploadFile ? this.uploadFile : (globalStore.upload ? globalStore.upload.uploadFile : null)
353
359
  chooseMethod({
354
- count: this.limit
360
+ count: this.limit - this.fileList.length
355
361
  }).then(res => {
356
362
  const { tempFiles } = res
357
363
  Promise.all(
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mali-applet-ui",
3
- "version": "0.2.76",
3
+ "version": "0.2.77",
4
4
  "description": "码里云小程序组件库",
5
5
  "scripts": {
6
6
  "release": "node script/release.js && npm publish"