1.0.3 • Published 6 years ago

san-tap v1.0.3

Weekly downloads
2
License
MIT
Repository
-
Last release
6 years ago

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.

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago