UI Utilities > Scroll


vue-stickto 0.18


A vue directive that support multiple DOM Node stick to top automatically (一个支持多DOM元素自动吸顶的vue指令)
    last commit 7 years ago
    53
    Stargazers

    Watchers
    53
    Open issues
    2
    700
    Downloads

    Last 30 days
    46
    Releases
    5
    33
    Final Score

    Quality
    42
    Popularity
    8
    Maintenance
    50

    vue-stickto

    简体中文

    A vue directive that support multiple DOM Node stick to top automatically (一个支持多DOM元素自动吸顶的vue指令)

    Online Demo Here

    Install

    npm install vue-stickto
    

    use

    1. import
    import Vue from 'vue'
    import VueStickto from 'vue-stickto'
    Vue.use(VueStickto)
    
    1. simply add the directive into a tag
    <div v-stickto>
        
    </div>
    
    1. see the result

    If you're using script tag to import

    copy the dist/VueStickto.js to the place wherever you want and <script src="[path]Vuestickto.js"/>