Skip to content

CharlieLau/v-clip-directive

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

看看源码就行 简单的一批

    <script type="module">
        import Vue from 'https://unpkg.com/[email protected]/dist/vue.esm.browser.min.js';
        import VClip  from '../index.js'
        Vue.use(VClip)

        const APP = Vue.component('APP',{
            template:`
                <div>
                    <div v-clip="()=>console.log(\'copy success!!\')" >hello world</div>
                    <div v-clip="()=>console.log(\'copy success!!\')" >hello world</div>
                    <input v-clip></input>
                </div>
            `
        })
        new Vue({
            render:h=>h(APP)
        }).$mount('#app')
    </script>

Releases

No releases published

Packages

No packages published