san-tap

1.0.3 • Public • Published

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.

Readme

Keywords

Package Sidebar

Install

npm i san-tap

Weekly Downloads

0

Version

1.0.3

License

MIT

Unpacked Size

3.03 kB

Total Files

4

Last publish

Collaborators

  • as3long