修改时输入框的value要trim

This commit is contained in:
bob
2024-11-01 16:24:29 +08:00
parent 8ace8d050f
commit fbfeee217a
3 changed files with 5 additions and 5 deletions

View File

@@ -13,7 +13,7 @@ const onClose = () => {
}
const onComfirm = () => {
emit('confirm', inputValue.value)
emit('confirm', inputValue.value.trim())
}
watch([() => props.isShow, () => props.defaultInput], ([newIsShow, newDefaultInput]) => {