opentiny / tiny-vue

TinyVue is an enterprise-class UI component library of OpenTiny community, support both Vue.js 2 and Vue.js 3, as well as PC and mobile.
https://opentiny.design/tiny-vue
MIT License
1.68k stars 266 forks source link

🐛 [numeric] The modelValue update from the component input action is inconsistent with the native behavior #962

Open AcWrong02 opened 12 months ago

AcWrong02 commented 12 months ago

Version

latest

Vue Version

latest

Link to minimal reproduction

https://opentiny.design/vue-playground?mode=pc&theme=default#3.11|eyJzcmMvQXBwLnZ1ZSI6IjxzY3JpcHQgbGFuZz1cInRzeFwiPlxuLy8g5byV5YWlIEBvcGVudGlueS92dWUg57uE5Lu2XG5pbXBvcnQgeyBCdXR0b24sIExpbmsgfSBmcm9tICdAb3BlbnRpbnkvdnVlJ1xuXG5leHBvcnQgZGVmYXVsdCB7XG4gIGNvbXBvbmVudHM6IHtcbiAgICBUaW55QnV0dG9uOiBCdXR0b24sXG4gICAgVGlueUxpbms6IExpbmtcbiAgfSxcbiAgZGF0YSgpIHtcbiAgICByZXR1cm4ge1xuICAgICAgbXNnOiAnaGVsbG8gd29ybGQhJ1xuICAgIH1cbiAgfVxufVxuPC9zY3JpcHQ+XG5cbjx0ZW1wbGF0ZT5cbiAgPFRpbnlCdXR0b24+56Gu5a6aPC9UaW55QnV0dG9uPlxuICA8aDE+e3sgbXNnIH19PC9oMT5cbiAgPGRpdiBjbGFzcz1cInRpbnl2dWVcIj5cbiAgICA8ZGl2IGNsYXNzPVwidGlueXZ1ZS1wYWdlXCI+XG4gICAgICB0aW55dnVlXG4gICAgICA8dGlueS1saW5rIHR5cGU9XCJzdWNjZXNzXCIgaHJlZj0naHR0cHM6Ly9naXRodWIuY29tL29wZW50aW55L3RpbnktdnVlJz5cbiAgICAgICAgdGlueXZ1ZVxuICAgICAgPC90aW55LWxpbms+XG4gICAgPC9kaXY+XG4gIDwvZGl2PlxuPC90ZW1wbGF0ZT5cblxuPHN0eWxlIGxhbmc9XCJsZXNzXCIgc2NvcGVkPlxuICBoMXtcbiAgICBjb2xvc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eHRlbnNpb25zXCI6IHRydWVcclxuICB9LFxyXG4gIFwidnVlQ29tcGlsZXJPcHRpb25zXCI6IHtcclxuICAgIFwidGFyZ2V0XCI6IDMuM1xyXG4gIH1cclxufVxyXG4iLCJiYXNpYy11c2FnZS52dWUiOiI8dGVtcGxhdGU+XG4gIDx0aW55LW51bWVyaWMgdi1tb2RlbD1cIm51bTFcIiA+PC90aW55LW51bWVyaWM+XG4gIDxpbnB1dCB2LW1vZGVsPVwibnVtMVwiIHR5cGU9XCJudW1iZXJcIi8+XG5cdHt7bnVtMX19XG48L3RlbXBsYXRlPlxuXG48c2NyaXB0IHNldHVwIGxhbmc9XCJqc3hcIj5cbmltcG9ydCB7IHJlZiB9IGZyb20gJ3Z1ZSdcbmltcG9ydCB7IE51bWVyaWMgYXMgVGlueU51bWVyaWMgfSBmcm9tICdAb3BlbnRpbnkvdnVlJ1xuXG5jb25zdCBudW0xID0gcmVmKDIpXG48L3NjcmlwdD5cbiIsIl9vIjp7fX0=

Step to reproduce

Open the link and enter any number in the two input boxes respectively

What is expected

Both input boxes can update modelValue when entering numbers

What is actually happening

The component input box does not update the modelValue when inputting, and updates after losing focus, while the native input box updates the modelValue when entering numbers

Any additional comments (optional)

No response

Huangyilin19 commented 11 months ago

问题已收到,我们尽快出方案解决.

Issues-translate-bot commented 11 months ago

Bot detected the issue body's language is not English, translate it automatically.


The problem has been received and we will provide a solution as soon as possible.