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.58k stars 254 forks source link

🐛 [Bug]: The button's autofocus function doesn't seem to work #523

Closed Binks123 closed 1 year ago

Binks123 commented 1 year ago

Version

latest

Vue Version

Vue3

Link to minimal reproduction

What does the autofocus feature of the button mean? It doesn't seem to show the effect. https://opentiny.design/tiny-vue/zh-CN/os-theme/components/button#autofocus

Step to reproduce

https://github.com/opentiny/tiny-vue/assets/103343025/a4aef1ac-4ee8-4c3e-9957-b6c4834cd757

What is expected

No response

What is actually happening

No response

Any additional comments (optional)

No response

kagol commented 1 year ago

@Binks123 After setting autofocus, the button will automatically be in focus, and you can press Enter directly to start the click event of the button. And the button in the focus state will show a blue border and a blue font color.