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: {
iType() {
switch (this.action.type) {
case 'switch':
return 'Switcher'
case 'switcher':
return 'Switcher'
default:

View File

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