feat(components): [switch] add active & inactive slots (#22429)

* feat(components): [switch] add active & inactive slots

* chore: docs & tests & refact

* style: icon center

* style: items-center

Co-authored-by: Zhong <cszhjh@gmail.com>

* Update docs/en-US/component/switch.md

Co-authored-by: btea <2356281422@qq.com>

* Update docs/en-US/component/switch.md

Co-authored-by: btea <2356281422@qq.com>

---------

Co-authored-by: Zhong <cszhjh@gmail.com>
Co-authored-by: btea <2356281422@qq.com>
This commit is contained in:
Noblet Ouways
2025-12-13 21:40:23 +01:00
committed by GitHub
parent 974ba4d3bf
commit 198db2a870
4 changed files with 91 additions and 30 deletions

View File

@@ -134,10 +134,12 @@ switch/custom-action-slot
### Switch Slots
| Name | Description |
| ------------------------ | ------------------------- |
| active-action ^(2.4.4) | customize active action |
| inactive-action ^(2.4.4) | customize inactive action |
| Name | Description |
| ------------------------ | -------------------------- |
| active-action ^(2.4.4) | customize active action |
| inactive-action ^(2.4.4) | customize inactive action |
| active ^(2.13.0) | customize active content |
| inactive ^(2.13.0) | customize inactive content |
### Exposes