jobsys-explore 4.0.4 → 4.0.5

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
+ fixed textInValue
package/CHANGELOG.md CHANGED
@@ -1,5 +1,15 @@
1
1
  # jobsys-explore
2
2
 
3
+ ## 4.0.5
4
+
5
+ ### Patch Changes
6
+
7
+ - address
8
+ - add exPros parameter
9
+ - fixed textInValue
10
+ - add key_cn
11
+ - e
12
+
3
13
  ## 4.0.4
4
14
 
5
15
  ### Patch Changes
@@ -77,7 +77,9 @@ export default defineComponent({
77
77
  if (props.modelValue.length === 0) {
78
78
  return ""
79
79
  }
80
- const optionsTexts = useFindTextsFromPath(options.value, props.modelValue, {
80
+ //反向赋值
81
+ const mValue = props.textInValue ? props.modelValue.map((item) => item[valueKey]) : props.modelValue
82
+ const optionsTexts = useFindTextsFromPath(options.value, mValue, {
81
83
  value: valueKey,
82
84
  children: childrenKey,
83
85
  label: textKey,
@@ -113,7 +113,8 @@ export default defineComponent({
113
113
  if (props.modelValue.length === 0) {
114
114
  return ""
115
115
  }
116
- const optionsTexts = useFindTextsFromPath(options.value, props.modelValue)
116
+ const mValue = props.textInValue ? props.modelValue.map((item) => item.value) : props.modelValue
117
+ const optionsTexts = useFindTextsFromPath(options.value, mValue)
117
118
  return props.displayTextType === "last" ? last(optionsTexts) : optionsTexts.join("/")
118
119
  })
119
120