jobsys-explore 1.0.21 → 1.0.22

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.
@@ -0,0 +1,5 @@
1
+ ---
2
+ "jobsys-explore": patch
3
+ ---
4
+
5
+ Drop the unused property
package/CHANGELOG.md CHANGED
@@ -1,5 +1,21 @@
1
1
  # jobsys-explore
2
2
 
3
+ ## 1.0.22
4
+
5
+ ### Patch Changes
6
+
7
+ - Build
8
+ - Drop the unused property
9
+ - Fix clear error in ExSearch
10
+ - Add init and beforeSubmit
11
+ - Add disabled and readonly for ex form
12
+ - Fix exupload
13
+ - Add ex-decorator
14
+ - Upgrade useFormFormat
15
+ - Add useFindParentValues
16
+ - Fix upload file
17
+ - Fix beforeSubmit
18
+
3
19
  ## 1.0.21
4
20
 
5
21
  ### Patch Changes
@@ -99,7 +99,7 @@ export default defineComponent({
99
99
  const defaultUploadUrl = uploaderProvider.uploadUrl || ""
100
100
  const defaultFileItem = uploaderProvider.defaultFileItem || {}
101
101
 
102
- const { url: urlKey, path: pathKey } = defaultFileItem
102
+ const { url: urlKey, path: pathKey, name: nameKey } = defaultFileItem
103
103
 
104
104
  const state = reactive({
105
105
  fileList: [],
@@ -147,9 +147,16 @@ export default defineComponent({
147
147
  }
148
148
 
149
149
  const getModelValue = () => {
150
- const fileList = state.fileList.filter((item) => item.status === "done")
150
+ const fileList = state.fileList
151
+ .filter((item) => item.status === "done" || !!item[nameKey] || !!item[pathKey])
152
+ .map((item) => pick(item, Object.keys(defaultFileItem)))
151
153
  if (isSingle.value) {
152
- return fileList[0] || {}
154
+ return (
155
+ fileList[0] || {
156
+ [pathKey]: "",
157
+ [urlKey]: "",
158
+ }
159
+ )
153
160
  }
154
161
 
155
162
  return fileList || []