提交 e6f72e1c 编写于 作者: D dolymood

feat(Toast): support usr icon

上级 29521c6e
......@@ -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',
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册