diff --git a/docs/en-US/component/alert.md b/docs/en-US/component/alert.md index ffab02dd5f..19a642a2fb 100644 --- a/docs/en-US/component/alert.md +++ b/docs/en-US/component/alert.md @@ -41,7 +41,7 @@ alert/close-button Displaying an icon improves readability. -:::demo Setting the `show-icon` attribute displays an icon that corresponds with the current Alert type. +:::demo Setting the `show-icon` attribute displays an icon that corresponds with the current Alert type. Or use the `icon` slot to customize icon. alert/icon @@ -98,7 +98,8 @@ alert/icon-description ### 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. | +| icon ^(2.9.7) | content of the alert icon. | diff --git a/docs/examples/alert/icon.vue b/docs/examples/alert/icon.vue index 2aefef4493..eac5b58750 100644 --- a/docs/examples/alert/icon.vue +++ b/docs/examples/alert/icon.vue @@ -4,9 +4,18 @@ + + + + +