美文网首页
Vue学习笔记

Vue学习笔记

作者: Rio2017110 | 来源:发表于2017-02-20 13:50 被阅读0次

vue.js过渡效果

在选择使用过度效果来设置元素的出入时,要注意的问题

  • el元素绑定的标签必须包含其他的受控内容,例如:

      <div id="example-3">
      <button @click="show = !show">Toggle render</button>
      <transition name="custom-classes-transition"  enter-active-class="animated tada"  leave-active-class="animated bounceOutRight">
      <p v-if="show">hello</p>
      </transition>
      </div>
    

*需要注意的是,v-ifv-show两个标签必须在transition

VUX在组件上绑定时间要使用v-on:click.native="todo"

相关文章

网友评论

      本文标题:Vue学习笔记

      本文链接:https://www.haomeiwen.com/subject/vrfewttx.html