Closed AcWrong02 closed 3 months ago
Bot detected the issue body's language is not English, translate it automatically.
Title: 🐛 [Bug]: Numeric component min attribute, when modelValue<min, the initial value displayed is modelValue. The same is true for the max attribute
我来试着修复一下
Bot detected the issue body's language is not English, translate it automatically.
Let me try to fix it
此问题已修复了,可见官网最值与数值循环的demo
Bot detected the issue body's language is not English, translate it automatically.
This problem has been fixed. You can see the demo of the best value and numerical cycle on the official website.
Version
latest
Vue Version
latest
Link to minimal reproduction
https://opentiny.design/vue-playground?mode=pc&theme=default#3.11|eyJzcmMvQXBwLnZ1ZSI6IjxzY3JpcHQgbGFuZz1cInRzeFwiPlxyXG4vLyDlvJXlhaUgQG9wZW50aW55L3Z1ZSDnu4Tku7ZcclxuaW1wb3J0IHsgQnV0dG9uLCBMaW5rIH0gZnJvbSAnQG9wZW50aW55L3Z1ZSdcclxuXHJcbmV4cG9ydCBkZWZhdWx0IHtcclxuICBjb21wb25lbnRzOiB7XHJcbiAgICBUaW55QnV0dG9uOiBCdXR0b24sXHJcbiAgICBUaW55TGluazogTGlua1xyXG4gIH0sXHJcbiAgZGF0YSgpIHtcclxuICAgIHJldHVybiB7XHJcbiAgICAgIG1zZzogJ2hlbGxvIHdvcmxkISdcclxuICAgIH1cclxuICB9XHJcbn1cclxuPC9zY3JpcHQ+XHJcblxyXG48dGVtcGxhdGU+XHJcbiAgPFRpbnlCdXR0b24+56Gu5a6aPC9UaW55QnV0dG9uPlxyXG4gIDxoMT57eyBtc2cgfX08L2gxPlxyXG4gIDxkaXYgY2xhc3M9XCJ0aW55dnVlXCI+XHJcbiAgICA8ZGl2IGNsYXNzPVwidGlueXZ1ZS1wYWdlXCI+XHJcbiAgICAgIHRpbnl2dWVcclxuICAgICAgPHRpbnktbGluayB0eXBlPVwic3VjY2Vzc1wiIGhyZWY9J2h0dHBzOi8vZ2l0aHViLmNvbS9vcGVudGlueS90aW55LXZ1ZSc+XHJcbiAgICAgICAgdGlueXZ1ZVxyXG4gICAgICA8L3RpbnktbGluaz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gIFwidGFyZ2V0XCI6IFwiRVNOZXh0XCIsXHJcbiAgICBcIm1vZHVsZVwiOiBcIkVTTmV4dFwiLFxyXG4gICAgXCJtb2R1bGVSZXNvbHV0aW9uXCI6IFwiQnVuZGxlclwiLFxyXG4gICAgXCJhbGxvd0ltcG9ydGluZ1RzRXh0ZW5zaW9uc1wiOiB0cnVlXHJcbiAgfSxcclxuICBcInZ1ZUNvbXBpbGVyT3B0aW9uc1wiOiB7XHJcbiAgICBcInRhcmdldFwiOiAzLjNcclxuICB9XHJcbn1cclxuIiwiYmFzaWMtdXNhZ2UudnVlIjoiPHRlbXBsYXRlPlxuICA8dGlueS1udW1lcmljIHYtbW9kZWw9XCJudW0xXCIgOm1pbj1cIjNcIj48L3RpbnktbnVtZXJpYz5cbiAgPHRpbnktbnVtZXJpYyB2LW1vZGVsPVwibnVtMlwiIDptYXg9XCI1XCI+PC90aW55LW51bWVyaWM+XG48L3RlbXBsYXRlPlxuXG48c2NyaXB0IHNldHVwIGxhbmc9XCJqc3hcIj5cbmltcG9ydCB7IHJlZiB9IGZyb20gJ3Z1ZSdcbmltcG9ydCB7IE51bWVyaWMgYXMgVGlueU51bWVyaWMgfSBmcm9tICdAb3BlbnRpbnkvdnVlJ1xuXG5jb25zdCBudW0xID0gcmVmKDEpXG5jb25zdCBudW0yID0gcmVmKDYpXG48L3NjcmlwdD5cbiIsIl9vIjp7fX0=
Step to reproduce
打开playground
What is expected
在初始的时候,如果modelValue<min,那显示的值应该是min 在初始的时候,如果modelValue>max,那显示的值应该是max
What is actually happening
在初始的时候,如果modelValue<min,显示的值变成了modelValue,这是不对的 在初始的时候,如果modelValue>max,显示的值是modelValue,这是不对的
Any additional comments (optional)
No response