从完整版转移

Former-commit-id: d164dbcc7f4a728304b1683d763d45fdebca8170
This commit is contained in:
liyang
2018-10-30 19:53:02 +08:00
parent e24098b148
commit 08b63fa6b9
633 changed files with 63788 additions and 0 deletions
@@ -0,0 +1,27 @@
<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>