@lambo-design/upload-file 1.0.0-beta.17 → 1.0.0-beta.19

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.
package/index.js CHANGED
@@ -1,2 +1,3 @@
1
1
  import LamboUploadFile from './src/index.vue'
2
2
  export default LamboUploadFile
3
+ export { LamboUploadFile }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lambo-design/upload-file",
3
- "version": "1.0.0-beta.17",
3
+ "version": "1.0.0-beta.19",
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/shared": "^1.0.0-beta.183",
16
- "@lambo-design/core": "^4.7.1-beta.139"
15
+ "@lambo-design/core": "^4.7.1-beta.139",
16
+ "@lambo-design/shared": "^1.0.0-beta.200"
17
17
  },
18
18
  "scripts": {
19
19
  "release": "pnpm release-beta && git push --follow-tags && pnpm re-publish",
package/src/index.vue CHANGED
@@ -159,7 +159,7 @@ export default {
159
159
  },
160
160
  methods: {
161
161
  UploadFile: function () {
162
- if (this.limitFileNum !== 0 && this.resultList.length > this.limitFileNum) {
162
+ if (this.limitFileNum !== 0 && this.resultList.length >= this.limitFileNum) {
163
163
  alert('最多只能上传' + this.limitFileNum + '个文件');
164
164
  } else {
165
165
  this.$refs.uploadInput.click();
@@ -203,7 +203,7 @@ export default {
203
203
  let resultList = [];
204
204
  const uploadUrl = self.ossServerContext + self.ossFilePutUrl;
205
205
  const downloadUrl = self.ossServerContext + self.ossFileGetUrl;
206
- ajax.post(uploadUrl, formData, { payload: true }).then(response => {
206
+ ajax.post(uploadUrl, formData, {payload: true}).then(response => {
207
207
  if (response.data.code === 1) {
208
208
  const result = response.data.data;
209
209
  self.loading = false;
@@ -310,6 +310,7 @@ export default {
310
310
  handler: function (value) {
311
311
  this.resultList = this.fileList
312
312
  },
313
+ immediate:true,
313
314
  deep: true
314
315
  },
315
316
  fileIdList: {
package/.versionrc DELETED
@@ -1,23 +0,0 @@
1
- {
2
- "tagPrefix": "@lambo-design/upload-file@",
3
- "releaseCommitMessageFormat": "chore(release): @lambo-design/upload-file@{{currentTag}}",
4
- "path": ".",
5
- "header": "# Changelog",
6
- "types": [
7
- {"type": "chore", "section":"🎫 Chores | 其他更新", "hidden": false},
8
- {"type": "revert", "section":"⏪ Reverts | 回退", "hidden": false},
9
- {"type": "feat", "section": "✨ Features | 新功能", "hidden": false},
10
- {"type": "fix", "section": "🐛 Bug Fixes | Bug 修复", "hidden": false},
11
- {"type": "improvement", "section": "Feature Improvements", "hidden": false},
12
- {"type": "docs", "section":"📝 Documentation | 文档", "hidden": false},
13
- {"type": "style", "section":"💄 Styles | 风格", "hidden": false},
14
- {"type": "refactor", "section":"💄 Styles | 风格", "hidden": false},
15
- {"type": "perf", "section":"⚡ Performance Improvements | 性能优化", "hidden": false},
16
- {"type": "test", "section":"✅ Tests | 测试", "hidden": false},
17
- {"type": "build", "section":"👷‍ Build System | 构建", "hidden": false},
18
- {"type": "ci", "section":"🔧 Continuous Integration | CI 配置", "hidden":false}
19
- ],
20
- "commitUrlFormat": "http://git.inspur.com/ecbh/lambo-design/lambo-design/-/commit/{{hash}}",
21
- "compareUrlFormat": "http://git.inspur.com/ecbh/lambo-design/lambo-design/-/compare/{{previousTag}}...{{currentTag}}",
22
- "issueUrlFormat": "http://git.inspur.com/ecbh/lambo-design/lambo-design/-/issues/{{id}}"
23
- }
package/CHANGELOG.md DELETED
@@ -1,27 +0,0 @@
1
- # Changelog
2
- ## [1.0.0-beta.17](http://git.inspur.com/ecbh/lambo-design/lambo-design/-/compare/@lambo-design/upload-file@1.0.0-beta.16...@lambo-design/upload-file@1.0.0-beta.17) (2024-06-04)
3
-
4
-
5
- ### ✨ Features | 新功能
6
-
7
- * **upload-file:** 增加文件编码列表fileIdList、限制文件上传数量limitFileNum属性 ([9c0b631](http://git.inspur.com/ecbh/lambo-design/lambo-design/-/commit/9c0b6310b797503c574a7f32e90768e9912a5c4e))
8
-
9
- ## [1.0.0-beta.16](http://git.inspur.com/ecbh/lambo-design/lambo-design/-/compare/@lambo-design/upload-file@1.0.0-beta.15...@lambo-design/upload-file@1.0.0-beta.16) (2024-05-31)
10
-
11
-
12
- ### ✨ Features | 新功能
13
-
14
- * **upload-file:** 上传文件优化 ([0b71962](http://git.inspur.com/ecbh/lambo-design/lambo-design/-/commit/0b71962bba818f01c573f19eed57bd81e758e1ac))
15
-
16
- ## [1.0.0-beta.15](http://git.inspur.com/ecbh/lambo-design/lambo-design/-/compare/@lambo-design/upload-file@1.0.0-beta.14...@lambo-design/upload-file@1.0.0-beta.15) (2024-04-18)
17
-
18
-
19
- ### ✨ Features | 新功能
20
-
21
- * **@lambo-design/upload-file:** 修改工具类方法引用路径 ([d48b381](http://git.inspur.com/ecbh/lambo-design/lambo-design/-/commit/d48b38109bbdb96b0e21128bf93e5ba85b8248bb))
22
-
23
- ## [1.0.0-beta.14](http://git.inspur.com/ecbh/lambo-design/lambo-design/-/compare/@lambo-design/upload-file@1.0.0-beta.13...@lambo-design/upload-file@1.0.0-beta.14) (2024-04-13)
24
-
25
- ## [1.0.0-beta.13](http://git.inspur.com/ecbh/lambo-design/lambo-design/-/compare/@lambo-design/upload-file@1.0.0-beta.12...@lambo-design/upload-file@1.0.0-beta.13) (2024-04-12)
26
-
27
- ## 1.0.0-beta.12 (2024-04-12)