@ddwl/ddwl-ui 1.0.26 → 1.0.27
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
|
@@ -181,10 +181,7 @@ export default {
|
|
|
181
181
|
}
|
|
182
182
|
this.config.onChange(value, data)
|
|
183
183
|
})
|
|
184
|
-
}
|
|
185
|
-
|
|
186
|
-
// 处理下拉选择器
|
|
187
|
-
if (this.config.component === 'el-select') {
|
|
184
|
+
} else if (this.config.component === 'el-select') { // 处理下拉选择器
|
|
188
185
|
data = this.config.options
|
|
189
186
|
if (Array.isArray(value)) {
|
|
190
187
|
data = data.filter(i => value.includes(i.value)) || []
|
|
@@ -192,6 +189,8 @@ export default {
|
|
|
192
189
|
data = data.find(i => value === i.value) || {}
|
|
193
190
|
}
|
|
194
191
|
this.config.onChange(value, data)
|
|
192
|
+
} else {
|
|
193
|
+
this.config.onChange(value)
|
|
195
194
|
}
|
|
196
195
|
}
|
|
197
196
|
}
|