mirror of
https://github.com/Tencent/tmagic-editor.git
synced 2025-09-25 18:02:09 +08:00
fix(editor): icon 图片模式样式修改
This commit is contained in:
parent
66d013f510
commit
23617a63e9
@ -1,6 +1,6 @@
|
||||
<template>
|
||||
<el-icon v-if="!icon"><edit></edit></el-icon>
|
||||
<img v-else-if="typeof icon === 'string' && icon.startsWith('http')" :src="icon" />
|
||||
<el-icon v-else-if="typeof icon === 'string' && icon.startsWith('http')"><img :src="icon" /></el-icon>
|
||||
<i v-else-if="typeof icon === 'string'" :class="icon"></i>
|
||||
<el-icon v-else><component :is="toRaw(icon)"></component></el-icon>
|
||||
</template>
|
||||
|
@ -86,6 +86,11 @@
|
||||
}
|
||||
}
|
||||
|
||||
img {
|
||||
max-width: 100%;
|
||||
max-height: 100%;
|
||||
}
|
||||
|
||||
span {
|
||||
font-size: 12px;
|
||||
text-align: center;
|
||||
|
Loading…
x
Reference in New Issue
Block a user