jobsys-explore 2.0.0 → 4.0.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/.changeset/cold-seas-tap.md +5 -0
- package/.changeset/slow-icons-agree.md +5 -0
- package/CHANGELOG.md +23 -0
- package/components/form/ExCascader.jsx +13 -4
- package/components/uploader/ExUploader.jsx +3 -1
- package/dist/jobsys-explore.cjs +6 -6
- package/dist/jobsys-explore.cjs.map +1 -1
- package/dist/jobsys-explore.js +269 -261
- package/dist/jobsys-explore.js.map +1 -1
- package/package.json +1 -1
- package/playground/App.vue +5 -1
- package/playground/TestCascader.vue +2441 -0
- package/playground/TestForm.vue +5 -0
- package/playground/TestUploader.vue +9 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,28 @@
|
|
|
1
1
|
# jobsys-explore
|
|
2
2
|
|
|
3
|
+
## 4.0.0
|
|
4
|
+
|
|
5
|
+
### Major Changes
|
|
6
|
+
|
|
7
|
+
- pagination search fixed layout
|
|
8
|
+
- watch cascader options
|
|
9
|
+
|
|
10
|
+
### Patch Changes
|
|
11
|
+
|
|
12
|
+
- uploader keys
|
|
13
|
+
- fixed pagination loading
|
|
14
|
+
|
|
15
|
+
## 3.0.0
|
|
16
|
+
|
|
17
|
+
### Major Changes
|
|
18
|
+
|
|
19
|
+
- pagination search fixed layout
|
|
20
|
+
|
|
21
|
+
### Patch Changes
|
|
22
|
+
|
|
23
|
+
- uploader keys
|
|
24
|
+
- fixed pagination loading
|
|
25
|
+
|
|
3
26
|
## 2.0.0
|
|
4
27
|
|
|
5
28
|
### Major Changes
|
|
@@ -28,13 +28,13 @@ export default defineComponent({
|
|
|
28
28
|
},
|
|
29
29
|
emits: ["update:modelValue", "change"],
|
|
30
30
|
setup(props, { emit, slots, expose }) {
|
|
31
|
-
const defaultValue = props.modelValue?.[
|
|
31
|
+
const defaultValue = props.modelValue?.[props.modelValue.length - 1] || ""
|
|
32
32
|
|
|
33
33
|
const componentValue = ref(defaultValue)
|
|
34
34
|
|
|
35
35
|
watch(
|
|
36
36
|
() => props.modelValue,
|
|
37
|
-
() => (componentValue.value = props.modelValue?.[
|
|
37
|
+
() => (componentValue.value = props.modelValue?.[props.modelValue.length - 1] || ""),
|
|
38
38
|
)
|
|
39
39
|
|
|
40
40
|
const pickerRef = ref(null)
|
|
@@ -45,9 +45,18 @@ export default defineComponent({
|
|
|
45
45
|
const keyword = ref("")
|
|
46
46
|
|
|
47
47
|
//先处理好 options
|
|
48
|
-
|
|
48
|
+
const dealOptions = () => {
|
|
49
|
+
useOptionTrait(options, props)
|
|
50
|
+
shownOptions.value = options.value
|
|
51
|
+
}
|
|
52
|
+
dealOptions()
|
|
49
53
|
|
|
50
|
-
|
|
54
|
+
watch(
|
|
55
|
+
() => props.options,
|
|
56
|
+
() => {
|
|
57
|
+
dealOptions()
|
|
58
|
+
},
|
|
59
|
+
)
|
|
51
60
|
|
|
52
61
|
watch(
|
|
53
62
|
() => keyword.value,
|
|
@@ -149,7 +149,7 @@ export default defineComponent({
|
|
|
149
149
|
const getModelValue = () => {
|
|
150
150
|
const fileList = state.fileList
|
|
151
151
|
.filter((item) => item.status === "done" || !!item[nameKey] || !!item[pathKey])
|
|
152
|
-
.map((item) => pick(item, Object.
|
|
152
|
+
.map((item) => pick(item, Object.values(defaultFileItem)))
|
|
153
153
|
if (isSingle.value) {
|
|
154
154
|
return (
|
|
155
155
|
fileList[0] || {
|
|
@@ -166,6 +166,7 @@ export default defineComponent({
|
|
|
166
166
|
file.status = "done"
|
|
167
167
|
file.message = "上传成功"
|
|
168
168
|
file = { ...file, ...pick(result, Object.values(defaultFileItem)) }
|
|
169
|
+
file.url = file[urlKey]
|
|
169
170
|
|
|
170
171
|
const fileIndex = findIndex(state.fileList, { uid: file.uid })
|
|
171
172
|
|
|
@@ -215,6 +216,7 @@ export default defineComponent({
|
|
|
215
216
|
|
|
216
217
|
if (res.status !== STATUS.STATE_CODE_SUCCESS) {
|
|
217
218
|
onError(file, result)
|
|
219
|
+
return
|
|
218
220
|
}
|
|
219
221
|
|
|
220
222
|
if (props.afterUpload && isFunction(props.afterUpload)) {
|