mirror of
https://gitee.com/element-plus/element-plus.git
synced 2024-12-04 12:17:37 +08:00
parent
4885f1c826
commit
04e17d533d
@ -127,25 +127,25 @@ button/custom
|
||||
|
||||
### Button Attributes
|
||||
|
||||
| Name | Description | Type | Default |
|
||||
| ---------------------------------- | ----------------------------------------------------------------------- | --------------------------------------------------------------------------------- | ------- |
|
||||
| size | button size | ^[string]`'large'\| 'default'\| 'small'` | — |
|
||||
| type | button type | ^[string]`'primary'\| 'success'\| 'warning'\| 'danger'\| 'info'\| 'text'(delete)` | — |
|
||||
| plain | determine whether it's a plain button | ^[boolean] | false |
|
||||
| text<VersionTag version="2.2.0" /> | determine whether it's a text button | ^[boolean] | false |
|
||||
| bg<VersionTag version="2.2.0" /> | determine whether the text button background color is always on | ^[boolean] | false |
|
||||
| link<VersionTag version="2.2.1" /> | determine whether it's a link button | ^[boolean] | false |
|
||||
| round | determine whether it's a round button | ^[boolean] | false |
|
||||
| circle | determine whether it's a circle button | ^[boolean] | false |
|
||||
| loading | determine whether it's loading | ^[boolean] | false |
|
||||
| loading-icon | customize loading icon component | ^[string] / ^[Component] | Loading |
|
||||
| disabled | disable the button | ^[boolean] | false |
|
||||
| icon | icon component | ^[string] / ^[Component] | — |
|
||||
| autofocus | same as native button's `autofocus` | ^[boolean] | false |
|
||||
| native-type | same as native button's `type` | ^[string]`'button'\| 'submit'\| 'reset'` | button |
|
||||
| auto-insert-space | automatically insert a space between two chinese characters | ^[boolean] | — |
|
||||
| color | custom button color, automatically calculate `hover` and `active` color | ^[string] | — |
|
||||
| dark | dark mode, which automatically converts `color` to dark mode colors | ^[boolean] | false |
|
||||
| Name | Description | Type | Default |
|
||||
| ---------------------------------- | ----------------------------------------------------------------------- | ------------------------------------------------------------------------------- | ------- |
|
||||
| size | button size | ^[enum]`'large'\| 'default'\| 'small'` | — |
|
||||
| type | button type | ^[enum]`'primary'\| 'success'\| 'warning'\| 'danger'\| 'info'\| 'text'(delete)` | — |
|
||||
| plain | determine whether it's a plain button | ^[boolean] | false |
|
||||
| text<VersionTag version="2.2.0" /> | determine whether it's a text button | ^[boolean] | false |
|
||||
| bg<VersionTag version="2.2.0" /> | determine whether the text button background color is always on | ^[boolean] | false |
|
||||
| link<VersionTag version="2.2.1" /> | determine whether it's a link button | ^[boolean] | false |
|
||||
| round | determine whether it's a round button | ^[boolean] | false |
|
||||
| circle | determine whether it's a circle button | ^[boolean] | false |
|
||||
| loading | determine whether it's loading | ^[boolean] | false |
|
||||
| loading-icon | customize loading icon component | ^[string] / ^[Component] | Loading |
|
||||
| disabled | disable the button | ^[boolean] | false |
|
||||
| icon | icon component | ^[string] / ^[Component] | — |
|
||||
| autofocus | same as native button's `autofocus` | ^[boolean] | false |
|
||||
| native-type | same as native button's `type` | ^[enum]`'button'\| 'submit'\| 'reset'` | button |
|
||||
| auto-insert-space | automatically insert a space between two chinese characters | ^[boolean] | — |
|
||||
| color | custom button color, automatically calculate `hover` and `active` color | ^[string] | — |
|
||||
| dark | dark mode, which automatically converts `color` to dark mode colors | ^[boolean] | false |
|
||||
|
||||
### Button Slots
|
||||
|
||||
@ -169,10 +169,10 @@ button/custom
|
||||
|
||||
### ButtonGroup Attributes
|
||||
|
||||
| Name | Description | Type | Default |
|
||||
| ---- | ------------------------------------------------ | ---------------------------------------------------------------- | ------- |
|
||||
| size | control the size of buttons in this button-group | ^[string]`'large'\| 'default'\| 'small'` | — |
|
||||
| type | control the type of buttons in this button-group | ^[string]`'primary'\| 'success'\| 'warning'\| 'danger'\| 'info'` | — |
|
||||
| Name | Description | Type | Default |
|
||||
| ---- | ------------------------------------------------ | -------------------------------------------------------------- | ------- |
|
||||
| size | control the size of buttons in this button-group | ^[enum]`'large'\| 'default'\| 'small'` | — |
|
||||
| type | control the type of buttons in this button-group | ^[enum]`'primary'\| 'success'\| 'warning'\| 'danger'\| 'info'` | — |
|
||||
|
||||
### ButtonGroup Slots
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user