Former-commit-id: 37e93d840946bb320ff6b6ecf88a18e21216f168 [formerly 37e93d840946bb320ff6b6ecf88a18e21216f168 [formerly 37e93d840946bb320ff6b6ecf88a18e21216f168 [formerly 37e93d840946bb320ff6b6ecf88a18e21216f168 [formerly 8a55fc34a0762b6085009ecf444fe4f578918ea8 [formerly 4e0ac1b47f813702e20637a103312cb6e8f773d1]]]]] Former-commit-id: 09fe0461aa2e56198e14067a8e9a576417e72f88 Former-commit-id: 93163183f4083aaefacd3f07ce750d538d0ead74 Former-commit-id: 7b26df4734e261490f7f58dee36dd8b8779451d0 [formerly 170829cb9ee32327b5f0103fb0ca07dc88c92562] Former-commit-id: 6ab804290cf0c72be97e18279945c50faf59c70d Former-commit-id: e55fcc77b2cb36648171346e3d47a223b6e6327d Former-commit-id: 787c3e7b913fb9bb0f15b688415adc88c39dedf1 Former-commit-id: 2165f9da4232880cb55dc93ddac509bae9a8b99a Former-commit-id: 9603c4f33082229ab1727138e82c6c939eccb824
28 lines
601 B
Vue
28 lines
601 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, mapMutations } from 'vuex'
|
|
export default {
|
|
computed: {
|
|
...mapState('d2admin/fullscreen', [
|
|
'active'
|
|
])
|
|
},
|
|
methods: {
|
|
...mapMutations('d2admin/fullscreen', [
|
|
'toggle'
|
|
])
|
|
}
|
|
}
|
|
</script>
|