<template>
  <d2-container type="card" class="page-demo-playground-fullscreen">
    <template slot="header">全屏</template>
    <el-button type="primary" @click="fullScreenToggle">
      fullScreenToggle 切换全屏
    </el-button>
  </d2-container>
</template>

<script>
import { mapState, mapMutations } from 'vuex'
export default {
  computed: {
    ...mapState('d2admin', [
      'isFullScreen'
    ])
  },
  methods: {
    ...mapMutations('d2admin', [
      'fullScreenToggle'
    ])
  }
}
</script>
