@lambo-design/upload-file 1.0.0-beta.26 → 1.0.0-beta.28

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 +11 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lambo-design/upload-file",
3
- "version": "1.0.0-beta.26",
3
+ "version": "1.0.0-beta.28",
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.156",
16
- "@lambo-design/shared": "^1.0.0-beta.247"
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
@@ -11,6 +11,9 @@
11
11
  <Icon type="md-add"></Icon>
12
12
  上传附件
13
13
  </a>
14
+ <span style="margin-left: 10px; color: #ed4014">
15
+ {{ descInfo }}
16
+ </span>
14
17
  </slot>
15
18
  </div>
16
19
  <input type="file" :disabled="false" ref="uploadInput" style="position:absolute; clip:rect(0 0 0 0);display: none"
@@ -48,12 +51,18 @@ export default {
48
51
  accept: {//txt,word,excel
49
52
  type: String,
50
53
  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"
54
+ 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
55
  },
53
56
  fileSuffix: {
54
57
  type: String,
55
58
  required: false,
56
- default: "pdf|doc|docx|txt|xls|xlsx|jpg|jpeg|png|gif"
59
+ default: "pdf|doc|docx|txt|xls|xlsx|jpg|jpeg|png|gif|zip|rar"
60
+ },
61
+ //描述信息
62
+ descInfo: {
63
+ type: String,
64
+ required: false,
65
+ default: ""
57
66
  },
58
67
  //标题
59
68
  title: {