<template>
       <!-- 左边的部分 -->
   <el-space wrap class="left">
    <el-aside width="200px">
      <el-affix :offset="1">
        <Left></Left>
      </el-affix>
    </el-aside>
  </el-space>
  <div class="common-layout">
    <el-container>
      <el-header class="head">
        <div class="icon"></div>
        <div style="margin-top: 10px; margin-left: 15px;width: 400px;">操作指引</div>
        <el-row>
          <el-col :span="9">
            <div class="grid-content ep-bg-purple" />
            <div class="blue-circle">
              <span class="mouth-icon"></span>
            </div>
            <div style="margin-top: 30px; margin-left: 105px;"> 创建应用 <span
                style="color: cornflowerblue;">—————————————</span><br>
              <span style="font-size: small; color: grey;">创建应用,获取密钥</span>
            </div>
          </el-col>
          <el-col :span="9">
            <div class="grid-content ep-bg-purple-light" />
            <div class="blue-circle">
              <span class="mouth-icon"></span>
            </div>
            <div style="margin-top: 30px; margin-left: 105px;"> 调用服务 <span
                style="color: cornflowerblue;">—————————————</span><br>
              <span style="font-size: small; color: grey;">查看请求示例,调用服务</span>
            </div>
          </el-col>
          <el-col :span="6">
            <div class="grid-content ep-bg-purple" />
            <div class="blue-circle">
              <span class="mouth-icon"></span>
            </div>
            <div style="margin-top: 30px; margin-left: 105px;"> 发布使用 <span style="color: cornflowerblue;"></span><br>
              <span style="font-size: small; color: grey;">发布后可以通过浏览器访问</span>
            </div>
          </el-col>
        </el-row>
<pre><code>  &lt;/el-header&gt;
  &lt;el-main class=&quot;foot&quot;&gt;
    &lt;div class=&quot;icon&quot;&gt;&lt;/div&gt;
    &lt;div style=&quot;margin-top: 10px; margin-left: 15px;width: 400px;&quot;&gt;统计信息&lt;/div&gt;
    &lt;div class=&quot;foothead&quot;&gt; &lt;span style=&quot;font-weight: bold; font-size: 15px;&quot;&gt;免费用户&lt;/span&gt;
      &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;font-size: 15px;&quot;&gt;剩余时长&lt;/span&gt;
      &amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;font-size: 15px;&quot;&gt;20天&lt;/span&gt;&lt;/div&gt;
    &lt;div class=&quot;foothead&quot;&gt;&lt;span style=&quot;font-weight: bold;font-size: 15px;&quot;&gt;我的应用&lt;/span&gt;
      &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
      &lt;el-link href=&quot;https://element-plus.org&quot; type=&quot;primary&quot;&gt;1个&lt;/el-link&gt;
    &lt;/div&gt;
    &lt;el-row style=&quot;margin-top: 20PX;&quot;&gt;
      &lt;el-col :span=&quot;12&quot;&gt;
        &lt;div class=&quot;grid-content ep-bg-purple&quot; /&gt;&lt;span
          style=&quot;font-weight: bold;font-size: 15px;   margin-left: 25px;&quot;&gt;接口统计&lt;/span&gt;
      &lt;/el-col&gt;
      &lt;el-col :span=&quot;12&quot;&gt;
        &lt;div class=&quot;grid-content ep-bg-purple-light&quot; /&gt;
        &lt;div class=&quot;block&quot;&gt;
          &lt;el-date-picker v-model=&quot;value1&quot; type=&quot;datetimerange&quot; range-separator=&quot;——&quot; start-placeholder=&quot;Start date&quot;
            end-placeholder=&quot;End date&quot; /&gt;
        &lt;/div&gt;
      &lt;/el-col&gt;
    &lt;/el-row&gt;
    &lt;div class=&quot;foothead&quot;&gt;

      &lt;div style=&quot;height: 50px;width: auto; margin-top: 40px; margin-left: 80px;&quot;&gt; &lt;el-row&gt;
          &lt;el-col :span=&quot;8&quot;&gt;
            &lt;div class=&quot;grid-content ep-bg-purple&quot; /&gt;总调用量:0个
          &lt;/el-col&gt;
          &lt;el-col :span=&quot;8&quot;&gt;
            &lt;div class=&quot;grid-content ep-bg-purple-light&quot; /&gt;总调成功数:0个
          &lt;/el-col&gt;
          &lt;el-col :span=&quot;8&quot;&gt;
            &lt;div class=&quot;grid-content ep-bg-purple&quot; /&gt;总调失败数:&lt;el-link href=&quot;https://element-plus.org&quot;
              type=&quot;primary&quot;&gt;0个&lt;/el-link&gt;
          &lt;/el-col&gt;
        &lt;/el-row&gt;&lt;/div&gt;
    &lt;/div&gt;

    &lt;div class=&quot;foothead&quot;&gt;&lt;span style=&quot;font-size:15px; margin-top: 10px;&quot;&gt;FTP统计&lt;/span&gt;
      &lt;div style=&quot;height: 50px;width: auto; margin-top: 40px; margin-left: 80px;&quot;&gt;
        &lt;el-row&gt;
          &lt;el-col :span=&quot;8&quot;&gt;
            &lt;div class=&quot;grid-content ep-bg-purple&quot; /&gt;总获取量:0个
          &lt;/el-col&gt;
          &lt;el-col :span=&quot;8&quot;&gt;
            &lt;div class=&quot;grid-content ep-bg-purple-light&quot; /&gt;解析成功数:0个
          &lt;/el-col&gt;
          &lt;el-col :span=&quot;8&quot;&gt;
            &lt;div class=&quot;grid-content ep-bg-purple&quot; /&gt;解析失败数:&lt;el-link href=&quot;https://element-plus.org&quot;
              type=&quot;primary&quot;&gt;0个&lt;/el-link&gt;
          &lt;/el-col&gt;
        &lt;/el-row&gt;
      &lt;/div&gt;
    &lt;/div&gt;

    &lt;div class=&quot;foothead&quot;&gt;&lt;span style=&quot;font-size:15px; margin-top: 10px;&quot;&gt;MQ统计&lt;/span&gt;
      &lt;div style=&quot;height: 50px;width: auto; margin-top: 40px; margin-left: 80px;&quot;&gt;
        &lt;el-row&gt;
          &lt;el-col :span=&quot;8&quot;&gt;
            &lt;div class=&quot;grid-content ep-bg-purple&quot; /&gt;总接收量:0个
          &lt;/el-col&gt;
          &lt;el-col :span=&quot;8&quot;&gt;
            &lt;div class=&quot;grid-content ep-bg-purple-light&quot; /&gt;成功消费数:0个
          &lt;/el-col&gt;
          &lt;el-col :span=&quot;8&quot;&gt;
            &lt;div class=&quot;grid-content ep-bg-purple&quot; /&gt;消防失败数:&lt;el-link href=&quot;https://element-plus.org&quot;
              type=&quot;primary&quot;&gt;0个&lt;/el-link&gt;
          &lt;/el-col&gt;
        &lt;/el-row&gt;
      &lt;/div&gt;
    &lt;/div&gt;
  &lt;/el-main&gt;
&lt;/el-container&gt;
</code></pre>
  </div>
</template>
<script lang="ts" setup>
// 引入侧边栏
// eslint-disable-next-line @typescript-eslint/quotes
import Left from '../console/Left.vue'
<p>import { ref } from 'vue'
const value1 = ref&lt;[Date, Date]&gt;([
new Date(2018, 5, 10, 10),
new Date(2018, 6, 11, 10)
])
</script></p>
<style scoped>
.common-layout {
  height: 800px;
  background-color: gainsboro;
  max-width: 100%; /* 添加这行代码 */
  display: flex;
  flex-wrap: wrap; /* 添加这行代码 */
}

.head {
  background-color: white;
  margin-top: 15px;
  margin-left: 10px;
  height: 180px;
}

.foot {
  background-color: white;
  margin-top: 15px;
  margin-left: 10px;
  height: 600px;
}

.icon {
  height: 20px;
  width: 5px;
  margin-top: 12px;
  background-color: #60a5fa;
  float: left;
}

.blue-circle {
  width: 48px;
  height: 48px;
  border: 2px solid #60a5fa;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 24px;
  margin-left: 40px;
  margin-top: 20px;
  float: left;
}

.mouth-icon {
  width: 10px;
  height: 10px;
  border: 1px solid #60a5fa;
}

.foothead {
  margin-top: 20px;
  margin-left: 25px;
}

.el-link {
  text-decoration: underline !important;
}

.block {
  margin-right: 100px;

  border-right: solid 1px var(--el-border-color);
  flex: 1;
}

.block:last-child {
  border-right: none;
}

.block .demonstration {
  display: block;
  color: var(--el-text-color-secondary);
  font-size: 14px;
  margin-bottom: 20px;

}
</style> 怎么让他变成流动布局 页面放大同比例放大
<p>内容:要将页面布局变成流动布局,可以使用CSS中的<code>flex</code>属性。在样式中,找到<code>.common-layout</code>的样式,并添加以下代码:</p>
<pre><code class="language-css">.common-layout {
  ...
  display: flex;
  flex-wrap: wrap;
}
</code></pre>
<p>这样设置后,当页面放大时,元素会根据可用空间自动换行,实现流动布局效果。</p>
Vue Element Plus 流动布局页面设计指南

原文地址: https://www.cveoy.top/t/topic/pbI3 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录