<template>
  <div class="container">
    <div class="contain">
      <Container></Container>
    </div>
  </div>
</template>

<script>
import Container from "./component/Container";

import { getCurrentInstance } from "vue";
import mitt from "mitt";
export default {
  data() {
    return {}
  },
    
  beforeCreate() {
    const ins = getCurrentInstance();
    ins.appContext.config.globalProperties.$bus = mitt();
  },
  // mounted() {
  //   this.$bus.on("changeDefaultZIndex", this.changeDefaultZIndex);
  // },
  // methods: {
  //   // 改变公共zIndex
  //   changeDefaultZIndex(zIndex) {
  //     if (this.defaultZIndex > 999999990) {
  //       this.defaultZIndex = 999999990;
  //     }
  //     this.defaultZIndex = zIndex;
  //   },
  // },
  // watch: {
  //   defaultZIndex() {
  //     console.log(
  //       this.fixWindowData,
  //       this.appViewData,
  //       this.userSettingData,
  //     );
  //     let appViewIndex =  this.appViewData.findIndex(item=>{
  //       return item.zIndex >= this.defaultZIndex && item.display === 'block'
  //     })
  //     console.log(appViewIndex)
  //     if(appViewIndex !== -1){
  //       this.appViewData[appViewIndex].cls = 'active-win'
  //     }else if(this.fixWindowData.zIndex >= this.defaultZIndex && this.fixWindowData.display === 'block'){
  //       this.fixWindowData.cls = 'active-win'
  //       this.userSettingData.cls = 'deactive-win'
  //       this.appViewData.forEach(item=>{
  //         if(item.cls === 'active-win'){
  //           item.cls = 'deactive-win'
  //         }
  //       })
  //     }else if(this.userSettingData.zIndex >= this.defaultZIndex && this.userSettingData.display === 'block'){
  //       this.userSettingData.cls = 'active-win'
  //       this.fixWindowData.cls = 'deactive-win'
  //       this.appViewData.forEach(item=>{
  //         if(item.cls === 'active-win'){
  //           item.cls = 'deactive-win'
  //         }
  //       })
  //     }
  components: {
    // Header,
    // Desktop,
    // DesktopAppView,
    Container
  },
};
</script>

<style lang="">
</style>
