jobsys-explore 3.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.
@@ -0,0 +1,5 @@
1
+ ---
2
+ "jobsys-explore": major
3
+ ---
4
+
5
+ watch cascader options
package/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
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
+
3
15
  ## 3.0.0
4
16
 
5
17
  ### 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?.[0] || ""
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?.[0] || ""),
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
- useOptionTrait(options, props)
48
+ const dealOptions = () => {
49
+ useOptionTrait(options, props)
50
+ shownOptions.value = options.value
51
+ }
52
+ dealOptions()
49
53
 
50
- shownOptions.value = options.value
54
+ watch(
55
+ () => props.options,
56
+ () => {
57
+ dealOptions()
58
+ },
59
+ )
51
60
 
52
61
  watch(
53
62
  () => keyword.value,