Thanks to visit codestin.com
Credit goes to github.com

Skip to content

as3long/san-tap

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

san-tap

Support tap event in your san project.


Install

npm install san-tap

Usage

const san = require('san');
const sanTap = require('san-tap');

const MyApp = san.defineComponent({
    template: `
    <div>
        <san-tap on-tap="tapHandler">
            <button>tap事件</button>
        </san-tap>
    </div>`,
    components: {
        'san-tap': sanTap,
    },
    initData() {
        return {
        };
    },
    tapHandler() {
        console.log('tap事件触发');
    }
});

const myApp = new MyApp();
myApp.attach(document.body);

License

This content is released under the MIT License.

About

Support tap event in your san project.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published