tiny-vue icon indicating copy to clipboard operation
tiny-vue copied to clipboard

🐛 [Bug]: button设置native-type为submit,点击后就不会禁用一下,不知道是bug还是本来就是这样设计的?

Open fanbingbing16 opened this issue 1 year ago • 3 comments

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

fanbingbing16 avatar Feb 19 '24 06:02 fanbingbing16

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?

Issues-translate-bot avatar Feb 19 '24 06:02 Issues-translate-bot

API中有个叫native-type的属性,这个属性用于控制按钮原生的 type 属性,当属性值是 'submit' | 'reset' 的时候 reset-time 是不生效的。

Youyou-smiles avatar Mar 05 '24 07:03 Youyou-smiles

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.

Issues-translate-bot avatar Mar 05 '24 07:03 Issues-translate-bot

确实如此设计的。 native-type 为 submit 或 reset时, 不触发禁用。

image

shenjunjian avatar Aug 03 '24 08:08 shenjunjian

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.

image

Issues-translate-bot avatar Aug 03 '24 08:08 Issues-translate-bot