mirror of
https://github.com/element-plus/element-plus.git
synced 2026-03-13 07:51:17 +08:00
fix(docs): [alert] (#10460)
* Replace jsx like tags in markdown table. Co-authored-by: JeremyWuuuuu <15975785+JeremyWuuuuu@users.noreply.github.com>
This commit is contained in:
@@ -77,28 +77,28 @@ alert/icon-description
|
||||
|
||||
## Alert API
|
||||
|
||||
### Alert Attributes
|
||||
### Attributes
|
||||
|
||||
| Name | Description | Type | Default | Required |
|
||||
| ------------- | ---------------------------------------- | -------------------------------------------------------------- | --------- | -------- |
|
||||
| `title` | alert title. | `string` | — | No |
|
||||
| `type` | alert type. | <EnumType :values="['success', 'warning', 'info', 'error']" /> | `info` | No |
|
||||
| `description` | descriptive text. | `string` | — | No |
|
||||
| `closable` | whether alert can be dismissed. | `boolean` | `true` | No |
|
||||
| `center` | whether content is placed in the center. | `boolean` | `false` | No |
|
||||
| `close-text` | customized close button text. | `string` | — | No |
|
||||
| `show-icon` | whether a type icon is displayed. | `boolean` | `false` | No |
|
||||
| `effect` | theme style. | <EnumType :values="['light', 'dark']" /> | `'light'` | No |
|
||||
| Name | Description | Type | Default | Required |
|
||||
| ----------- | ---------------------------------------- | ----------------------------------------------------- | --------- | -------- |
|
||||
| title | alert title. | ^[string] | — | No |
|
||||
| type | alert type. | ^[enum]`'success' \| 'warning' \| 'info' \| 'error' ` | `info` | No |
|
||||
| description | descriptive text. | ^[string] | — | No |
|
||||
| closable | whether alert can be dismissed. | ^[boolean] | `true` | No |
|
||||
| center | whether content is placed in the center. | ^[boolean] | `false` | No |
|
||||
| close-text | customized close button text. | ^[string] | — | No |
|
||||
| show-icon | whether a type icon is displayed. | ^[boolean] | `false` | No |
|
||||
| effect | theme style. | ^[enum]`'light' \| 'dark'` | `'light'` | No |
|
||||
|
||||
### Alert Events
|
||||
### Events
|
||||
|
||||
| Name | Description | Type |
|
||||
| ------- | ----------------------------- | -------------------------------------------------- |
|
||||
| `close` | trigger when alert is closed. | <FunctionType :params="[['evt', 'MouseEvent']]" /> |
|
||||
| Name | Description | Type |
|
||||
| ----- | ----------------------------- | ---------------------------------------- |
|
||||
| close | trigger when alert is closed. | ^[Function]`(event: MouseEvent) => void` |
|
||||
|
||||
### Alert Slots
|
||||
### Slots
|
||||
|
||||
| Name | Description |
|
||||
| --------- | --------------------------------- |
|
||||
| `default` | content of the alert description. |
|
||||
| `title` | content of the alert title. |
|
||||
| Name | Description |
|
||||
| ------- | --------------------------------- |
|
||||
| default | content of the alert description. |
|
||||
| title | content of the alert title. |
|
||||
|
||||
Reference in New Issue
Block a user