Releases: shunnNet/vue-use-x
Releases · shunnNet/vue-use-x
v1.0.1
vue-use-x
is an unofficial, reusable Vue 3 utility library. It provides modules such as modal
, query
, and common
to help simplify development.
Documentation
See Documentation
🚀 New Features
Modal
Provides a composable to toggle modals and pass data.
- useModal: Targeting modal that open by props like
v-modal
- useRefModal: Targeting modal that open by component exposed method.
Common
Provides general-purpose composables to simplify repetitive tasks during development
-
createContext
: A utility to conveniently create a context for provide and inject values. -
ensureInjection
: Useful when the key that needs to be injected must be provided. -
withToggleRefAsync
: Run an (async/sync) function while toggling a boolean ref object. It can be used in scenarios such as toggling a loading state.