mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
* Type definitions for vue2-hammer 2.1 * Removed unused files (LICENSE & README.md) * Added vue2-hammer-tests.ts * Added vue2-hammer-tests.ts also to tsconfig.json * Removed vue2-hammer as dependency from package.json * Removed trailing whitespace in vue2-hammer-tests.ts
24 lines
505 B
TypeScript
24 lines
505 B
TypeScript
import Vue from 'vue';
|
|
import { VueHammer } from 'vue2-hammer';
|
|
|
|
VueHammer.config = {
|
|
pinch: {
|
|
enable: true,
|
|
},
|
|
};
|
|
Vue.use(VueHammer);
|
|
|
|
new Vue({
|
|
el: '#app',
|
|
template: `
|
|
<img
|
|
src="https://gist.githubusercontent.com/ptandler/5b676312b58242c801ac1cdabce07902/raw/cb9b8e2cd01f39836023c10c682028c153be4651/Enneagram.svg"
|
|
v-hammer:pinchstart="console.log('onPinchStart')"
|
|
v-hammer:pinch="console.log('onPinch')"
|
|
/>
|
|
`,
|
|
data() {
|
|
return {};
|
|
},
|
|
});
|