soixantecircuits / idle-vue

Vue component wrapper for idle-js
MIT License
125 stars 40 forks source link

Vue 3 usage Added #59

Open pratik227 opened 1 year ago

pratik227 commented 1 year ago

I have added documentation for Vue 3.

Please also publish the package for the same so doc will also available in npm site.

Thanks, Pratilk Patel

gabrielstuff commented 1 year ago

Thanks a lot for your submission. Will need to look at it before publishing.

pratik227 commented 1 year ago

Yah I have added codesandbox link aswell you can check that. Same code is there in codesandbox.

pratik227 commented 1 year ago

@gabrielstuff Any update on this ?

LoseTheQuit commented 11 months ago

Hey, adding this:

eventEmitter: { $on: (...args) => emitter.on(...args), $once: (...args) => emitter.once(...args), $off: (...args) => emitter.off(...args), $emit: (...args) => emitter.emit(...args) }, works in Vue 3! Thanks @pratik227

pratik227 commented 11 months ago

Hey, adding this:

eventEmitter: { $on: (...args) => emitter.on(...args), $once: (...args) => emitter.once(...args), $off: (...args) => emitter.off(...args), $emit: (...args) => emitter.emit(...args) }, works in Vue 3! Thanks @pratik227

🚀 👍

vineet-2020 commented 11 months ago

Any updates on this?

brock-rb2t commented 6 months ago

+1 on this PR. Can we please get a merge?

pratik227 commented 6 months ago

+1 on this PR. Can we please get a merge?

🚀