element-ui 首页布局

效果

 代码

<template>
  <div class="app-container home">
    <el-row>
      <el-col :span="5">
        <el-card shadow="hover" style="height:280px;">
          <div class="text item">
            {{'列表内容 ' + o }}
          </div>
        </el-card>

         <el-card shadow="hover" style="height:300px;margin-top:10px;">
          <div class="text item">
            {{'列表内容 ' + o }}
          </div>
        </el-card>

        <el-card shadow="hover" style="height:146px;margin-top:10px;">
          <div class="text item">
            {{'列表内容 ' + o }}
          </div>
        </el-card>
      </el-col>
      <el-col :span="14" style="padding-left:10px;">
        <el-row :gutter="10">
          <el-col :span="8">
            <el-card shadow="hover">
              鼠标悬浮时显示
            </el-card>
          </el-col>
          <el-col :span="8">
            <el-card shadow="hover">
              鼠标悬浮时显示
            </el-card>
          </el-col>
          <el-col :span="8">
            <el-card shadow="hover">
              鼠标悬浮时显示
            </el-card>
          </el-col>
        </el-row>
        <el-row style="margin-top:10px;" :gutter="10">
          <el-col :span="8">
            <el-card shadow="hover">
              鼠标悬浮时显示
            </el-card>
          </el-col>
          <el-col :span="8">
            <el-card shadow="hover">
              鼠标悬浮时显示
            </el-card>
          </el-col>
          <el-col :span="8">
            <el-card shadow="hover">
              鼠标悬浮时显示
            </el-card>
          </el-col>
        </el-row>

        <el-card shadow="hover" style="height:300px;margin-top:10px;">
          <div class="text item">
            {{'列表内容 ' + o }}
          </div>
        </el-card>
        <el-card shadow="hover" style="height:300px;margin-top:10px;">
          <div class="text item">
            {{'列表内容 ' + o }}
          </div>
        </el-card>
      </el-col>
      <el-col :span="5" style="padding-left:10px;">
        <el-card shadow="hover" style="height:180px;">
          <div class="text item">
            {{'列表内容 ' + o }}
          </div>
        </el-card>

        <el-card shadow="hover" style="height:300px;margin-top:10px;">
          <div class="text item">
            {{'列表内容 ' + o }}
          </div>
        </el-card>

        <el-card shadow="hover" style="height:245px;margin-top:10px;">
          <div class="text item">
            {{'列表内容 ' + o }}
          </div>
        </el-card>
      </el-col>
    </el-row>
  </div>
</template>

<script>
export default {
  name: "index",
  data() {
    return {
      // 版本号
      version: "3.3.0",
    };
  },
  methods: {
    goTarget(href) {
      window.open(href, "_blank");
    },
  },
};
</script>

<style scoped lang="scss">
.home {
  overflow-y: auto;
  height: calc(100vh - 36px);
  background-color: #f6f9f9;
  padding-bottom: 10px;
  padding-right: 10px;
}
</style>

文章来源地址https://uudwc.com/A/P5YB8

原文地址:https://blog.csdn.net/qq873113580/article/details/124641314

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处: 如若内容造成侵权/违法违规/事实不符,请联系站长进行投诉反馈,一经查实,立即删除!

h
上一篇 2023年06月27日 16:31
下一篇 2023年06月27日 16:31