fix(message): fixed message iconClass not working (#2695)

"fix #2692"

Co-authored-by: tujin_li <tujin.li@gshopper.com>
This commit is contained in:
mistery-li 2021-07-27 09:08:46 +08:00 committed by GitHub
parent 3f4e0f6f33
commit 52b474525d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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]}`
: ''