sadais-piui 1.2.7-beta180 → 1.2.7-beta182

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.
@@ -503,7 +503,7 @@ export default {
503
503
  {
504
504
  id: 2,
505
505
  text: '选择微信聊天文件'
506
- }
506
+ },
507
507
  ]
508
508
  },
509
509
  currentSourceType() {
@@ -679,6 +679,7 @@ export default {
679
679
  return ext.toLocaleUpperCase()
680
680
  },
681
681
  isRightType(selectFile) {
682
+ if(this.getExtension.length === 0) return true
682
683
  const isRightType = this.getExtension.some(ext =>
683
684
  selectFile.name.endsWith(ext)
684
685
  )
@@ -1234,8 +1235,10 @@ export default {
1234
1235
  this.compressOption
1235
1236
  )
1236
1237
  filePath = filePaths[0]
1237
- } else {
1238
+ } else if (isVideoFilename(tempFilePath)) {
1238
1239
  filePath = await this.handleCompressVideo(tempFile.tempFilePath)
1240
+ } else {
1241
+ filePath = tempFile.tempFilePath
1239
1242
  }
1240
1243
 
1241
1244
  compressTempFiles.push(filePath)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sadais-piui",
3
- "version": "1.2.7-beta180",
3
+ "version": "1.2.7-beta182",
4
4
  "description": "piui组件库",
5
5
  "main": "index.js",
6
6
  "scripts": {