diff --git a/src/toast/Toast.js b/src/toast/Toast.js
index fbd31541b..e26e7ed59 100644
--- a/src/toast/Toast.js
+++ b/src/toast/Toast.js
@@ -81,15 +81,12 @@ export default createComponent({
onAfterLeave() {
this.$emit('closed');
- }
- },
+ },
- render() {
- const { type, icon, message, iconPrefix, loadingType } = this;
+ genIcon() {
+ const { icon, type, iconPrefix, loadingType } = this;
+ const hasIcon = icon || (type === 'success' || type === 'fail');
- const hasIcon = icon || (type === 'success' || type === 'fail');
-
- function ToastIcon() {
if (hasIcon) {
return