提交 7e6cfd19 编写于 作者: richard_1015's avatar richard_1015

fix(input): change event data update delay

上级 9529735a
......@@ -147,8 +147,8 @@ export default create({
if (props.type === 'number') {
val = formatNumber(val, false);
}
emit('change', val, event);
emit('update:modelValue', val, event);
emit('change', val, event);
};
const valueFocus = (event: Event) => {
......
......@@ -113,8 +113,8 @@ export default create({
if (props.maxLength && val.length > Number(props.maxLength)) {
val = val.slice(0, Number(props.maxLength));
}
emit('change', val, event);
emit('update:modelValue', val, event);
emit('change', val, event);
};
const valueFocus = (event: Event) => {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册