resolver-egretimp-plus 0.1.145 → 0.1.146
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/package.json
CHANGED
|
@@ -81,11 +81,11 @@ const styleObj = computed(() => {
|
|
|
81
81
|
})
|
|
82
82
|
const lang = inject('lang')
|
|
83
83
|
const modelValue = defineModel()
|
|
84
|
-
watch(modelValue, () => {
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
})
|
|
84
|
+
// watch(modelValue, () => {
|
|
85
|
+
// nextTick(() => {
|
|
86
|
+
// elFormItem?.validate?.('blur').catch()
|
|
87
|
+
// })
|
|
88
|
+
// })
|
|
89
89
|
const initSelEmployee = async () => {
|
|
90
90
|
let feiShuTokens = ''
|
|
91
91
|
const { getToken, loadStyle, loadScript, initSelUser } = useSelEmployeeJs()
|
|
@@ -94,7 +94,7 @@ const initSelEmployee = async () => {
|
|
|
94
94
|
feiShuTokens = ret[0]
|
|
95
95
|
if (!feiShuTokens) return
|
|
96
96
|
}
|
|
97
|
-
|
|
97
|
+
let isFirstAssign = true
|
|
98
98
|
const unWatch = watch(() => {
|
|
99
99
|
return dataLoad.value
|
|
100
100
|
}, async (val) => {
|
|
@@ -122,6 +122,10 @@ const initSelEmployee = async () => {
|
|
|
122
122
|
console.log('onSelectedChange===:', data, arr)
|
|
123
123
|
emit('change', data, arr, props)
|
|
124
124
|
modelValue.value = data?.join(separator.value) || ''
|
|
125
|
+
if (!isFirstAssign) {
|
|
126
|
+
elFormItem?.validate?.('blur').catch()
|
|
127
|
+
}
|
|
128
|
+
isFirstAssign = false
|
|
125
129
|
},
|
|
126
130
|
}
|
|
127
131
|
if (props.positionType) {
|