zoukankan      html  css  js  c++  java
  • 显示内容和隐藏v-show(以及图标的动态展示)

     页面。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。

       <h3 style="color: #2eabff;margin-top: 0.7%;margin-bottom: -0.3%;font-size: 14px">
                  <a-icon id="icon" type="caret-down" @click="xian" />收货单子表明细
                </h3>
                <div v-show="bool" style="margin-top: 30px;">
                  <j-editable-table-kt
                    size="small"
                    ref="table1"
                    :loading="loading"
                    :columns="columnn"
                    :dataSource="dataSourcee"
                    :maxHeight="300"
                    :rowNumber="true"
                  />
                </div>
    。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。

    return {

          angle: 0,
     bool: true,
     }
     
    方法。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。
      xian() {
          this.angle += 180
          var ico = document.getElementById('icon')
          ico.style.transform = 'rotate(' + this.angle + 'deg)'
          this.bool = !this.bool
        },
  • 相关阅读:
    解决uc浏览器不支持vw单位的方法
    调整网页适应移动端设备
    鼠标滚轮事件
    Sublime Text 3 快捷键总结(拿走)
    HTML+CSS图文排版
    焦点轮播图(一)
    前端各种库的在线引入地址
    HTML表格的基本操作
    23 服务的绑定启动Demo3
    23 服务的启动Demo2
  • 原文地址:https://www.cnblogs.com/lvqiupingboke-2019/p/13517356.html
Copyright © 2011-2022 走看看