From bed03276dd43a6d58c94aed32c38b22262bb6d3a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=99=93=E6=9C=88=E6=B8=85=E5=B2=9A?= <1518014096@qq.com> Date: Thu, 12 Sep 2024 20:28:08 +0800 Subject: [PATCH] feat(button): support autofocus property --- packages/web-vue/components/button/README.en-US.md | 1 + packages/web-vue/components/button/README.zh-CN.md | 1 + packages/web-vue/components/button/button.vue | 9 +++++++++ packages/web-vue/components/button/interface.ts | 1 + 4 files changed, 12 insertions(+) diff --git a/packages/web-vue/components/button/README.en-US.md b/packages/web-vue/components/button/README.en-US.md index 9010d250f..ec4fa48bb 100644 --- a/packages/web-vue/components/button/README.en-US.md +++ b/packages/web-vue/components/button/README.en-US.md @@ -41,6 +41,7 @@ description: Button is a command component that can initiate an instant operatio |loading|Whether the button is in the loading state|`boolean`|`false`| |disabled|Whether the button is disabled|`boolean`|`false`| |html-type|Set the native `type` attribute of `button`, optional values refer to [HTML](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button#attr-type "_blank")|`string`|`'button'`| +|autofocus|Set the native `autofocus` attribute of `button`, optional values refer to [HTML](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button#attr-type "_blank")|`boolean`|`false`| |href|Set up a jump link. When this property is set, the button is rendered as ``|`string`|`-`| ### `