mirror of
https://gitee.com/wot-design-uni/wot-design-uni.git
synced 2025-12-07 09:38:44 +08:00
fix: 🐛 修复InputNumber的change事件无法取到当前绑定值的更新的问题
修改@change逻辑,应该先传值,再触发change,这样新的值可以被@change事件取到
This commit is contained in:
parent
0456596975
commit
45980c526a
@ -169,8 +169,8 @@ function handleBlur() {
|
||||
|
||||
function dispatchChangeEvent(value: string | number, change: boolean = true) {
|
||||
inputValue.value = value
|
||||
change && emit('change', { value })
|
||||
change && emit('update:modelValue', inputValue.value)
|
||||
change && emit('change', { value })
|
||||
}
|
||||
|
||||
function formatValue(value: string | number) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user