ant-design/components/button/demo
George H 14f8279aea
feat: Support iconPosition with button icon (#47791)
* feat: button support iconPosition

* fix: iconPosition compatible LoadingIcon

* docs(Button): update Button with iconPosition demo

* fix: delete debug type

* fix: iconPosition for InnerLoadingIcon with not existIcon

* chore: update button snapshots

* fix: fixed loading-icon-end style

* chore: refactor buttonContent with genButtonContent

* fix: iconPosition compatible with rtl

* docs(Button): update button with iconPosition demo

* chore: update test

* fix: iconPosition compatible with rtl

* docs(Buttob): add icon-position demo

* restore icon demo

* update snapshots

* docs: update icon button demo

* docs: update iconPosition button demo

* Update components/button/index.zh-CN.md

Co-authored-by: kiner-tang <1127031143@qq.com>
Signed-off-by: George H <default_hyn@163.com>

* Update components/button/index.zh-CN.md

Co-authored-by: kiner-tang <1127031143@qq.com>
Signed-off-by: George H <default_hyn@163.com>

* Update components/button/demo/icon-position.md

Co-authored-by: afc163 <afc163@gmail.com>
Signed-off-by: George H <default_hyn@163.com>

* Update components/button/index.en-US.md

Co-authored-by: afc163 <afc163@gmail.com>
Signed-off-by: George H <default_hyn@163.com>

* Update components/button/index.en-US.md

Co-authored-by: afc163 <afc163@gmail.com>
Signed-off-by: George H <default_hyn@163.com>

---------

Signed-off-by: George H <default_hyn@163.com>
Co-authored-by: kiner-tang <1127031143@qq.com>
Co-authored-by: afc163 <afc163@gmail.com>
2024-04-07 22:42:20 +08:00
..
_semantic.tsx site: code optimization (#47456) 2024-02-16 20:50:31 +08:00
basic.md docs: v5 site upgrade (#38328) 2022-11-09 12:28:04 +08:00
basic.tsx demo: update Button demo layout to Flex Component (#45566) 2023-10-29 02:11:17 +08:00
block.md docs: v5 site upgrade (#38328) 2022-11-09 12:28:04 +08:00
block.tsx demo: update Button demo layout to Flex Component (#45566) 2023-10-29 02:11:17 +08:00
chinese-chars-loading.md docs: v5 site upgrade (#38328) 2022-11-09 12:28:04 +08:00
chinese-chars-loading.tsx test: support react 16 lint (#46963) 2024-01-14 17:15:39 +08:00
component-token.md feat: button component token (#44090) 2023-08-08 14:03:31 +08:00
component-token.tsx fix: Button padding token should follow contentFontSize (#46901) 2024-01-11 11:18:21 +08:00
danger.md docs: v5 site upgrade (#38328) 2022-11-09 12:28:04 +08:00
danger.tsx demo: update Button demo layout to Flex Component (#45566) 2023-10-29 02:11:17 +08:00
debug-block.md fix: Button block prop not work (#39992) 2023-01-06 09:46:00 +08:00
debug-block.tsx chore: enable cssVar in imageTest (#45985) 2023-11-22 20:53:48 +08:00
debug-icon.md docs: improve component demo style (#38598) 2022-11-17 13:20:58 +08:00
debug-icon.tsx chore: Add type util (#46923) 2024-01-11 15:55:58 +08:00
disabled.md docs: improve component demo style (#38598) 2022-11-17 13:20:58 +08:00
disabled.tsx demo: update Button demo layout to Flex Component (#45566) 2023-10-29 02:11:17 +08:00
ghost.md docs: improve component demo style (#38598) 2022-11-17 13:20:58 +08:00
ghost.tsx demo: update Button demo layout to Flex Component (#45566) 2023-10-29 02:11:17 +08:00
icon-position.md feat: Support iconPosition with button icon (#47791) 2024-04-07 22:42:20 +08:00
icon-position.tsx feat: Support iconPosition with button icon (#47791) 2024-04-07 22:42:20 +08:00
icon.md feat: Support iconPosition with button icon (#47791) 2024-04-07 22:42:20 +08:00
icon.tsx demo: update Button demo layout to Flex Component (#45566) 2023-10-29 02:11:17 +08:00
legacy-group.md docs: v5 site upgrade (#38328) 2022-11-09 12:28:04 +08:00
legacy-group.tsx chore: Add type util (#46923) 2024-01-11 15:55:58 +08:00
linear-gradient.md style: Button support gradient background (#46192) 2023-12-01 23:25:46 +08:00
linear-gradient.tsx style: Button support gradient background (#46192) 2023-12-01 23:25:46 +08:00
loading.md docs: corrected a mistake of a demo description. (#43499) 2023-07-12 11:59:47 +08:00
loading.tsx demo: update Button demo layout to Flex Component (#45566) 2023-10-29 02:11:17 +08:00
multiple.md docs: v5 site upgrade (#38328) 2022-11-09 12:28:04 +08:00
multiple.tsx demo: update Button demo layout to Flex Component (#45566) 2023-10-29 02:11:17 +08:00
size.md docs: text optimize (#48012) 2024-03-22 11:57:58 +08:00
size.tsx chore: Add type util (#46923) 2024-01-11 15:55:58 +08:00