Skip to content

Commit

Permalink
fix(baInput):修复远程下拉点击清空按钮后的值无法保存的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
build-admin committed Jun 10, 2024
1 parent 5652fa7 commit 12b829f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions web/src/components/baInput/components/remoteSelect.vue
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,9 @@ const emits = defineEmits<{
}>()
const onChangeSelect = (val: valueTypes) => {
if (!val) {
state.value = val = props.multiple ? [] : ''
}
emits('update:modelValue', val)
if (typeof instance?.vnode.props?.onRow == 'function') {
if (typeof val == 'number' || typeof val == 'string') {
Expand Down

0 comments on commit 12b829f

Please sign in to comment.