euvl / v-clipboard

Simple and powerful clipboard plugin for Vue.js 2 and 3
MIT License
522 stars 39 forks source link

Vetur throwing error when used in method #14

Open gutisalex opened 4 years ago

gutisalex commented 4 years ago

Hey,

I use your code example to copy smth into clipboard via a method. It actually works but I still get an error by Vetur...

private handleClickRow(val: any) { this.$clipboard(val); }

Error-Message: Property '$clipboard' does not exist on type 'Table'. Vetur(2339)

I think its just a types thing... But you got typescript support added in a cpl months ago so IDK

chelobarik commented 4 years ago

I used (this as any).$clipboard(val);