mirror of
https://github.com/element-plus/element-plus.git
synced 2025-03-13 15:57:11 +08:00
fix(message): fixed message iconClass not working (#2695)
"fix #2692" Co-authored-by: tujin_li <tujin.li@gshopper.com>
This commit is contained in:
parent
3f4e0f6f33
commit
52b474525d
@ -63,7 +63,7 @@ export default defineComponent({
|
||||
emits: ['destroy'],
|
||||
setup(props) {
|
||||
const typeClass = computed(() => {
|
||||
const type = props.type
|
||||
const type = !props.iconClass && props.type
|
||||
return type && TypeMap[type]
|
||||
? `el-message__icon el-icon-${TypeMap[type]}`
|
||||
: ''
|
||||
|
Loading…
Reference in New Issue
Block a user