Former-commit-id: 0bc3afb90e0f6c085a680e39880f975717793b09 [formerly 0bc3afb90e0f6c085a680e39880f975717793b09 [formerly 0bc3afb90e0f6c085a680e39880f975717793b09 [formerly 0bc3afb90e0f6c085a680e39880f975717793b09 [formerly ec04dd1ed71e3ab98007073168daae880ad6bc9a [formerly 27f3e5cbfae961450c4738a9bc7aaa0e87d983bd]]]]] Former-commit-id: fcfaf06a9d9c9422931b9c6d0e58dcf5f2e0e9fe Former-commit-id: 1507dac206b02e590a62c343404760c4a10e1163 Former-commit-id: d32f3aa5207b09bcc61530258da7d285a7aca5e8 [formerly 7b9d2763618e82332e7348268bdbec79fd6b324f] Former-commit-id: 671052ad6a2d10a151f0befa1020be7b21890553 Former-commit-id: 7096b9fa103901dd06b437b5b692cf85ecb35f2f Former-commit-id: f1a6fbab21e2ecdf9752c8c4116b44c43d568bca Former-commit-id: 6fa9f1a3a296b50663854ec2c2089fe78b392f29 Former-commit-id: 99e9372f7be157d28e3977584a5281d991a5264c
28 lines
597 B
Vue
28 lines
597 B
Vue
<template>
|
|
<el-tooltip
|
|
effect="dark"
|
|
:content="active ? '退出全屏' : '全屏'"
|
|
placement="bottom">
|
|
<el-button class="d2-mr btn-text can-hover" type="text" @click="toggle">
|
|
<d2-icon v-if="active" name="compress"/>
|
|
<d2-icon v-else name="arrows-alt" style="font-size: 16px"/>
|
|
</el-button>
|
|
</el-tooltip>
|
|
</template>
|
|
|
|
<script>
|
|
import { mapState, mapActions } from 'vuex'
|
|
export default {
|
|
computed: {
|
|
...mapState('d2admin/fullscreen', [
|
|
'active'
|
|
])
|
|
},
|
|
methods: {
|
|
...mapActions('d2admin/fullscreen', [
|
|
'toggle'
|
|
])
|
|
}
|
|
}
|
|
</script>
|