@awes-io/ui 2.115.0 → 2.116.0

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/CHANGELOG.md CHANGED
@@ -3,6 +3,22 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [2.116.0](https://github.com/awes-io/client/compare/@awes-io/ui@2.115.0...@awes-io/ui@2.116.0) (2024-11-21)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * fix props name in uploader ([d219631](https://github.com/awes-io/client/commit/d21963105f821ce97f935851d2b4e1337020005d))
12
+
13
+
14
+ ### Features
15
+
16
+ * add file type in aw uploader ([b037bd9](https://github.com/awes-io/client/commit/b037bd977e2f76d21be4adf3041073e4ca6e5e58))
17
+
18
+
19
+
20
+
21
+
6
22
  # [2.115.0](https://github.com/awes-io/client/compare/@awes-io/ui@2.114.2...@awes-io/ui@2.115.0) (2024-11-14)
7
23
 
8
24
 
@@ -215,6 +215,11 @@ export default {
215
215
  uploadedFilesNumber: {
216
216
  type: Number,
217
217
  default: null
218
+ },
219
+
220
+ fieldName: {
221
+ type: String,
222
+ default: 'file'
218
223
  }
219
224
  },
220
225
 
@@ -342,7 +347,7 @@ export default {
342
347
  const id = uploader.id
343
348
  const data = new FormData()
344
349
 
345
- data.append('file', file)
350
+ data.append(this.fieldName, file)
346
351
 
347
352
  if (isType('Function', this.processData)) {
348
353
  this.processData(data)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@awes-io/ui",
3
- "version": "2.115.0",
3
+ "version": "2.116.0",
4
4
  "description": "User Interface (UI) components",
5
5
  "keywords": [
6
6
  "ui",
@@ -114,5 +114,5 @@
114
114
  "rollup-plugin-visualizer": "^2.6.0",
115
115
  "rollup-plugin-vue": "^5.0.1"
116
116
  },
117
- "gitHead": "e142d5ccc5bc0bc6769dcecfd4e8a6fc129e766b"
117
+ "gitHead": "c37e1f68dd38d3bcf6671cb97b069777ad63134c"
118
118
  }