refactor: 图标优化等

This commit is contained in:
meilin.huang
2023-02-20 18:41:45 +08:00
parent edf29976dd
commit c75fe7135a
17 changed files with 44 additions and 53 deletions

View File

@@ -28,7 +28,12 @@
<span v-if="data.type == NodeType.DbInst">
<el-popover placement="right-start" title="数据库实例信息" trigger="hover" :width="210">
<template #reference>
<el-icon>
<img v-if="data.params.type === 'mysql'" src="@/assets/icon/mysql.png"
class="img-icon" />
<img v-if="data.params.type === 'postgres'" src="@/assets/icon/postgres.png"
class="img-icon" />
<el-icon v-else>
<InfoFilled />
</el-icon>
</template>
@@ -64,8 +69,6 @@
<el-icon v-if="data.type == NodeType.SqlMenu || data.type == NodeType.Sql">
<Files color="#f56c6c" />
</el-icon>
</template>
</tag-tree>
</el-col>