Summary
Add a loadgo-vue package providing an idiomatic Vue API over the existing vanilla JS core via a composable.
Motivation
The vanilla JS implementation works in Vue via onMounted/onUnmounted, but users have to manually handle init/destroy lifecycle. A composable removes that boilerplate.
Proposed API
// Composable
const { setprogress, getprogress, resetprogress, loop, stop } = useLoadgo(ref, options)
Notes
Summary
Add a
loadgo-vuepackage providing an idiomatic Vue API over the existing vanilla JS core via a composable.Motivation
The vanilla JS implementation works in Vue via
onMounted/onUnmounted, but users have to manually handleinit/destroylifecycle. A composable removes that boilerplate.Proposed API
Notes
loadgo-vanilla.js— no reimplementation of core logicvueandloadgo(vanilla) as peer dependenciesloadgo-vuenpm package