diff --git a/src/components/toast/toast.vue b/src/components/toast/toast.vue index 8914cc0e4dad778a5f44badf96205d52e7849738..922ade2000c9639075d5ee2f36e369213a1ff8b1 100644 --- a/src/components/toast/toast.vue +++ b/src/components/toast/toast.vue @@ -25,6 +25,10 @@ type: String, default: 'loading' }, + icon: { + type: String, + default: '' + }, mask: { type: Boolean, default: false @@ -46,6 +50,9 @@ computed: { iconClass() { const iconClass = {} + if (this.icon) { + iconClass[this.icon] = true + } const classMap = { correct: 'cubeic-right', error: 'cubeic-wrong',