mirror of
https://github.com/PanJiaChen/vue-element-admin.git
synced 2025-08-10 12:01:57 +08:00
add log lock icon (#824)
Co-authored-by: elsiosanchez <elsiossanches@gmail.com>
This commit is contained in:
parent
73d0bc7946
commit
141e3de1e1
@ -28,6 +28,17 @@
|
|||||||
:disabled="Boolean(key > 0 && isCreateNew)"
|
:disabled="Boolean(key > 0 && isCreateNew)"
|
||||||
:style="tabParentStyle"
|
:style="tabParentStyle"
|
||||||
>
|
>
|
||||||
|
<span v-if="key === 0" slot="label">
|
||||||
|
<el-tooltip v-if="key === 0" :content="lock ? $t('data.lockRecord') : $t('data.unlockRecord')" placement="top">
|
||||||
|
<el-button type="text" @click="lock = !lock">
|
||||||
|
<i :class="lock ? 'el-icon-unlock' : 'el-icon-lock'" style="font-size: 15px;color: black;" />
|
||||||
|
</el-button>
|
||||||
|
</el-tooltip>
|
||||||
|
{{ tabAttributes.name }}
|
||||||
|
</span>
|
||||||
|
<span v-else slot="label">
|
||||||
|
{{ tabAttributes.name }}
|
||||||
|
</span>
|
||||||
<main-panel
|
<main-panel
|
||||||
:parent-uuid="windowUuid"
|
:parent-uuid="windowUuid"
|
||||||
:container-uuid="tabAttributes.uuid"
|
:container-uuid="tabAttributes.uuid"
|
||||||
@ -54,7 +65,8 @@ export default {
|
|||||||
mixins: [tabMixin],
|
mixins: [tabMixin],
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
currentTab: this.$route.query.tabParent
|
currentTab: this.$route.query.tabParent,
|
||||||
|
lock: false
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user