pref: 修改 switch icon

This commit is contained in:
ibuler 2022-11-02 14:47:52 +08:00
parent 2ac9b885c9
commit 7f28629748
2 changed files with 15 additions and 10 deletions

View File

@ -47,6 +47,8 @@ export default {
computed: { computed: {
iType() { iType() {
switch (this.action.type) { switch (this.action.type) {
case 'switch':
return 'Switcher'
case 'switcher': case 'switcher':
return 'Switcher' return 'Switcher'
default: default:

View File

@ -1,13 +1,15 @@
<template> <template>
<div>
<img v-if="icon" :src="icon" alt="icon" class="icon">
<el-link <el-link
class="detail" class="detail"
:disabled="disabled" :disabled="disabled"
:type="col.type || 'info'" :type="col.type || 'info'"
@click="goDetail" @click="goDetail"
> >
<img v-if="icon" :src="icon" alt="icon" class="icon"> {{ iTitle }}
<span class="title">{{ iTitle }}</span>
</el-link> </el-link>
</div>
</template> </template>
<script> <script>
@ -115,7 +117,8 @@ export default {
} }
.icon { .icon {
width: 25px; width: 28px;
height: 25px; height: 28px;
vertical-align: middle;
} }
</style> </style>