<template>
  <el-container style="height: 100%">
    <el-aside width="200px" style="overflow-x: hidden">
      <el-menu>
        <el-submenu index="1">
          <template #title
            ><i class="el-icon-message"> </i><span> 大分类A</span></template
          >
          <el-menu-item index="1-1">A.小分类a</el-menu-item>
          <el-menu-item index="1-2">A.小分类b</el-menu-item>
        </el-submenu>
      </el-menu>
    </el-aside>
    <el-aside
      style="
        width: 200px;
        height: 100%;
        border: 1px solid #eee;
        background-color: #ffe;
        text-align: center;
        vertical-align: middle;
      "
    >
      模型列表 图片+名称
    </el-aside>

    <el-container>
      <el-header style="text-align: center; font-size: 40px">
        <el-button
          @click="drawer = true"
          type="primary"
          style="margin-left: 16px"
        >
          可以添加属性,可以添加到项目,可以添加到打包集合
        </el-button>
      </el-header>

      <el-main> hello </el-main>
    </el-container>
  </el-container>

  <el-drawer v-model="drawer" size="70%" @opened="aa" :with-header="false">
    <LoadFBX ref="myfbx" fbxfilepath="a.fbx"> </LoadFBX>
  </el-drawer>
</template>

<script>
import LoadFBX from "@/components/LoadFBX.vue";

export default {
  name: "Home",
  components: {
    LoadFBX,
  },
  methods: {
    aa() {
      console.log("aa");
      this.$refs.myfbx.hello();
    },
  },
  data() {
    return {
      drawer: false,
    };
  },
};
</script>

<style lang="scss" scoped>
.el-main {
  padding: 0px;
}
</style>