🐛 [Bug]: button设置native-type为submit,点击后就不会禁用一下,不知道是bug还是本来就是这样设计的?
Version
latest
Vue Version
latest
Link to minimal reproduction
https://www.opentiny.design/tiny-vue/zh-CN/os-theme/components/button
Step to reproduce
点击其他按钮都有防止多次点击,只有基本用法第一行的主要按钮点击不会禁用1000毫秒 不知道这是bug还是这样设计的
What is expected
No response
What is actually happening
No response
Any additional comments (optional)
No response
Bot detected the issue body's language is not English, translate it automatically.
Title: 🐛 [Bug]: The button sets the native-type to submit, and it will not be disabled after clicking. Is it a bug or is it originally designed this way?
API中有个叫native-type的属性,这个属性用于控制按钮原生的 type 属性,当属性值是 'submit' | 'reset' 的时候 reset-time 是不生效的。
Bot detected the issue body's language is not English, translate it automatically.
There is an attribute called native-type in the API. This attribute is used to control the native type attribute of the button. When the attribute value is 'submit' | 'reset', reset-time does not take effect.
确实如此设计的。 native-type 为 submit 或 reset时, 不触发禁用。
Bot detected the issue body's language is not English, translate it automatically.
It is indeed designed this way. When native-type is submit or reset, disabling is not triggered.