mirror of
https://github.com/jumpserver/lina.git
synced 2025-08-18 14:57:26 +00:00
pref: 修改 switch icon
This commit is contained in:
parent
2ac9b885c9
commit
7f28629748
@ -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:
|
||||||
|
@ -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>
|
||||||
|
Loading…
Reference in New Issue
Block a user