随笔 - 633,  文章 - 0,  评论 - 13,  阅读 - 48万
< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5

添加代码:

复制代码
        <div style="padding: 10px 0px">
          <!--prefix-icon="el-icon-user",表示加一个搜素图标,设置在头-->
          <!--suffix-icon="el-icon-tickets"",表示加一个搜素图标,设置在尾-->
          <!--placeholder="请输入内容"",表示设置一个默认显示提示文字内容-->
          <el-input style="width: 200px" placeholder="请输入人名" prefix-icon="el-icon-user"></el-input>
          <el-input style="width: 200px" placeholder="请输入标题" suffix-icon="el-icon-tickets" class="ml-5"></el-input>
          <el-input style="width: 200px" placeholder="请输入url"  prefix-icon="el-icon-link " class="ml-5"></el-input>
          <el-button class="ml-5" type="primary">搜索</el-button>
        </div>
复制代码

添加后的el-main的代码

复制代码
      <el-main>
        <div style="padding: 10px 0px">
          <!--prefix-icon="el-icon-user",表示加一个搜素图标,设置在头-->
          <!--suffix-icon="el-icon-tickets"",表示加一个搜素图标,设置在尾-->
          <!--placeholder="请输入内容"",表示设置一个默认显示提示文字内容-->
          <el-input style="width: 200px" placeholder="请输入人名" prefix-icon="el-icon-user"></el-input>
          <el-input style="width: 200px" placeholder="请输入标题" suffix-icon="el-icon-tickets" class="ml-5"></el-input>
          <el-input style="width: 200px" placeholder="请输入url"  prefix-icon="el-icon-link " class="ml-5"></el-input>
          <el-button class="ml-5" type="primary">搜索</el-button>
        </div>
        <el-table :data="tableData">
          <el-table-column prop="date" label="日期" width="140">
          </el-table-column>
          <el-table-column prop="name" label="姓名" width="120">
          </el-table-column>
          <el-table-column prop="address" label="地址">
          </el-table-column>
        </el-table>
        <div style="padding: 10px 0px">    <!--内边距空一些-->
          <el-pagination
                  @size-change="handleSizeChange"
                  @current-change="handleCurrentChange"
                  :current-page="currentPage4"
                  :page-sizes="[5, 10, 15, 20]"
                  :page-size="10"
                  layout="total, sizes, prev, pager, next, jumper"
                  :total="400">
          </el-pagination>
          <!--1.page-sizes一般设置为5,101520-->
          <!--1.page-size一般设置为10,即每页10个-->
        </div>
      </el-main>
复制代码

 

posted on   大话人生  阅读(755)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· TypeScript + Deepseek 打造卜卦网站:技术与玄学的结合
· 阿里巴巴 QwQ-32B真的超越了 DeepSeek R-1吗?
· 【译】Visual Studio 中新的强大生产力特性
· 10年+ .NET Coder 心语 ── 封装的思维:从隐藏、稳定开始理解其本质意义
· 【设计模式】告别冗长if-else语句:使用策略模式优化代码结构
点击右上角即可分享
微信分享提示