index.vue 1.09 KB
<template>
  <div class="panel content_box">
    <el-card class="panel_left">
      <div slot="header" class="clearfix">
        <span>工作箱</span>
      </div>
      <div>
          工作箱内容
      </div>
    </el-card>
    <el-card class="panel_right">
      <div slot="header" class="clearfix">
        <span>快捷入口</span>
      </div>
      <div class="enter_box">
        <div class="box" v-for="(item, index) in list" :key="index" @click="handleSelect">{{ item }}</div>
      </div>
    </el-card>

  </div>
</template>

<script>
export default {
  data() {
    return {
      list: ["创建文章", "创建公告", "预约统计"],
    };
  },
  methods: {
    handleSelect() {},
  }
};
</script>
<style rel="stylesheet/less" lang="less">
.panel {
  @flex();
  width:100%;
  .panel_left {
    width: 30%;
    margin-right: @30px;
  }
  .panel_right {
    width: 50%;
    .enter_box{
      @flex();
      div{
        width: 100px;
        height: 100px;
        @flex-center();
        background-color: @tablebg;
        margin-left:@30px;
        cursor: pointer;
      }
    }
  }
}
</style>