mirror of
https://github.com/jumpserver/lina.git
synced 2025-08-02 07:27:01 +00:00
pref: 修改 switch icon
This commit is contained in:
parent
2ac9b885c9
commit
7f28629748
@ -47,6 +47,8 @@ export default {
|
||||
computed: {
|
||||
iType() {
|
||||
switch (this.action.type) {
|
||||
case 'switch':
|
||||
return 'Switcher'
|
||||
case 'switcher':
|
||||
return 'Switcher'
|
||||
default:
|
||||
|
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user