@lambo-design/upload-file 1.0.0-beta.25 → 1.0.0-beta.27

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.
Files changed (2) hide show
  1. package/package.json +3 -3
  2. package/src/index.vue +4 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lambo-design/upload-file",
3
- "version": "1.0.0-beta.25",
3
+ "version": "1.0.0-beta.27",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "author": "lambo",
@@ -12,8 +12,8 @@
12
12
  "devDependencies": {
13
13
  "axios": "^0.24.0",
14
14
  "axios-cache-plugin": "^0.1.0",
15
- "@lambo-design/core": "^4.7.1-beta.149",
16
- "@lambo-design/shared": "^1.0.0-beta.240"
15
+ "@lambo-design/shared": "^1.0.0-beta.247",
16
+ "@lambo-design/core": "^4.7.1-beta.156"
17
17
  },
18
18
  "scripts": {
19
19
  "release-upload-file": "pnpm release-beta && git push --follow-tags && pnpm re-publish",
package/src/index.vue CHANGED
@@ -48,12 +48,12 @@ export default {
48
48
  accept: {//txt,word,excel
49
49
  type: String,
50
50
  required: false,
51
- default: ".pdf,text/plain,application/msword,application/vnd.ms-excel,application/vnd.openxmlformats-officedocument.wordprocessingml.document,application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"
51
+ default: "application/pdf,text/plain,application/msword,application/vnd.ms-excel,application/vnd.openxmlformats-officedocument.wordprocessingml.document,application/vnd.openxmlformats-officedocument.spreadsheetml.sheet,image/png,image/jpeg,image/gif,application/zip,.rar"
52
52
  },
53
53
  fileSuffix: {
54
54
  type: String,
55
55
  required: false,
56
- default: "pdf|doc|docx|txt|xls|xlsx|jpg|jpeg|png|gif"
56
+ default: "pdf|doc|docx|txt|xls|xlsx|jpg|jpeg|png|gif|zip|rar"
57
57
  },
58
58
  //标题
59
59
  title: {
@@ -327,6 +327,8 @@ export default {
327
327
  handler: function (newValue, oldValue) {
328
328
  if (newValue.length > 0 && !this.arraysEqual(newValue, oldValue)) {
329
329
  this.initFileList(newValue)
330
+ } else if (newValue.length === 0) {
331
+ this.resultList = []
330
332
  }
331
333
  },
332
334
  deep: true