vueuse / gesture

🕹 Vue Composables making your app interactive
https://gesture.vueuse.org
MIT License
362 stars 18 forks source link

Missing documentation for directive usage #8

Open slurmulon opened 3 years ago

slurmulon commented 3 years ago

The Gesture Options page says that the options must be structured differently when using directives.

However, the link for the directive documentation results in a 404.

It seems that none of the options provided via :drag-options have any effect, so without this documentation it's a challenge to determine how to configure options at all.

bendwarn commented 2 years ago

directive dose not support options currently. I'm curious why not use argument to receive options. would you mind if I fire a pull request to complete this?

Tahul commented 2 years ago

Hello @bendwarn ;

I would love to get a PR for this!

Please go ahead. 😄

bendwarn commented 2 years ago

I realize recently argument is served as string and it seems to be abuse if passing object. Maybe the only decent way is putting handler and option in value together.