• 往element 模块里面渲染数据


    <template>
      <div class="hello">
        <section class="el-container">
          <aside class="el-aside" style=" 200px;">
            <el-card class="box-card">
              <div slot="header" class="clearfix tit">
                <span class="">卡片名称</span>
              </div>
              <div v-for="value in arr1" :key="value" class="text item cardtxt">
                {{value}}
              </div>
            </el-card>
    
            <el-card class="box-card">
              <div slot="header" class="clearfix tit">
                <span class="">卡片名称</span>
              </div>
              <div v-for="value in arr2" :key="value" class="text item">
                {{value}}
              </div>
            </el-card>
          </aside>
        </section>
      </div>
    </template>

    <script> export default { data() { return { arr1:['cool','beautiful','cute'], arr2:['funny','interesting','sad'] } }, name: 'HelloWorld', props: { msg: String } } </script> <!-- Add "scoped" attribute to limit CSS to this component only --> <style scoped lang="stylus"> .hello{ width 100% } .imgs{ height 250px margin-top 25px } .el-carousel__item h3 { color: #475669; font-size: 18px; opacity: 0.75; line-height: 300px; margin: 0; height 300px } .el-card__body{ padding 0 } .cardtxt{ padding 0 } .el-carousel__item:nth-child(2n) { background-color: #99a9bf; } .el-carousel__item:nth-child(2n+1) { background-color: #d3dce6; } .el-container { display: flex; flex-direction: row; flex: 1; flex-basis: auto; box-sizing: border-box; min- 0; background: rgb(189,195,199) height 700px } .box-card{ width 80% margin auto margin-top 20px } .tit{ padding 0 background rgb(46,204,113) } .text{ height 30px } .box-card{ height 300px } .el-main{ width 80% margin 0 auto height 400px overflow hidden } el-aside{ height:600px margin-top 50px } </style>
  • 相关阅读:
    java服务端微信小程序支付
    H5商城,纯前端静态页面
    上海期货交易所CTP行情和交易接入
    iOS12 Network框架 自签名证书认证
    Android 本地播放器
    Spring Boot 集成 GRPC
    pandas DataFrame 索引(iloc 与 loc 的区别)
    编程规范 —— 类的命名
    pandas 操作 excel
    matplotlib 操作子图(subplot,axes)
  • 原文地址:https://www.cnblogs.com/white55k/p/11851934.html
Copyright © 2020-2023  润新知