zoukankan      html  css  js  c++  java
  • vue808

    自定义键盘信息:
        Vue.directive('on').keyCodes.ctrl=17;
        Vue.directive('on').keyCodes.myenter=13;

    数据深度监听

    vm.$watch('a',function () {
    alert('a变了')
    },{deep:true});



    npm info (包名) 包的版本信息
    npm install (包名)@版本号
    clear 清屏

    vue动画
    <transition name="fade">
    <div id="div1" v-show="sign"></div>
    </transition>



    css:
    .fade-enter-active,.fade-leave-active {
    transition: all 1s ease
    }
    .fade-enter{
    opacity:0;
    }
    .fade-leave-active{
    opacity:0;
    }
     
    animate.css动画:
    Bounce
    
    bounce
    bounceDown
    bounceLeft
    bounceRight
    bounceUp
    Fade
    
    fade
    fadeDown
    fadeDownBig
    fadeLeft
    fadeLeftBig
    fadeRight
    fadeRightBig
    fadeUp
    fadeUpBig
    
    
    rotate
    rotateDownLeft
    rotateDownRight
    rotateUpLeft
    rotateUpRight
    Slide
    
    slideDown
    slideLeft
    slideRight
    slideUp
    Zoom
    
    zoom
    zoomDown
    zoomLeft
    zoomRight
    zoomUp

    结合animate.css
    <div id="box">
    <input type="button" value="press" @click="toggle">
    <transition name="bounce" enter-active-class="zoomInLeft" leave-active-class="zoomOutRight">
    <div id="div1" v-show="sign" class="animated" ></div>
    </transition>

    <transition-group enter-active-class="zoomInLeft" leave-active-class="zoomOutRight">
    <p v-show="sign" class="animated" :key="1"></p>
    <p v-show="sign" class="animated" :key="2"></p>
    </transition-group>
    </div>
     
    原创笔记
  • 相关阅读:
    Linux异步IO
    基本数据类型总结--
    总结
    字典魔法二
    字典及其魔法
    元祖的魔法
    列表的特点
    运算符
    while ……else……和while……continue……和 while…………break…………
    作业---写一个程序,用户名 、密码输入错误3次 错误
  • 原文地址:https://www.cnblogs.com/minty/p/7305918.html
Copyright © 2011-2022 走看看