From 63847a981facad49a1afd33eb0c53d2146b6849e Mon Sep 17 00:00:00 2001 From: LIUCHAO <50739490+Tsong-LC@users.noreply.github.com> Date: Wed, 22 Jun 2022 09:29:27 +0800 Subject: [PATCH] docs(components): [message-box] add customized icon for examples (#8381) --- docs/en-US/component/message-box.md | 10 ++++++++++ docs/examples/message-box/customized-icon.vue | 20 +++++++++++++++++++ 2 files changed, 30 insertions(+) create mode 100644 docs/examples/message-box/customized-icon.vue diff --git a/docs/en-US/component/message-box.md b/docs/en-US/component/message-box.md index b1e31f6d77..795a4481e0 100644 --- a/docs/en-US/component/message-box.md +++ b/docs/en-US/component/message-box.md @@ -95,6 +95,16 @@ message-box/centered-content ::: +## Customized Icon + +The icon can be customized to any Vue component or [render function (JSX)](https://vuejs.org/guide/extras/render-function.html). + +:::demo + +message-box/customized-icon + +::: + ## Draggable MessageBox can be draggable. diff --git a/docs/examples/message-box/customized-icon.vue b/docs/examples/message-box/customized-icon.vue new file mode 100644 index 0000000000..17d095724e --- /dev/null +++ b/docs/examples/message-box/customized-icon.vue @@ -0,0 +1,20 @@ + + +