vue3+tsx+ioc+quasar. No ref/reactive, no ref.value #17201
zhennann
started this conversation in
Show and Tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello! 🖖
I'd like to introduce to the community the vue3 quasar framework with ioc container:
Zova
. With the support of ioc container, defining reactive states no longer needsref/reactive
, norref.value
If you want to play with it and give comments or suggestions, please visit: https://github.com/cabloy/zova/tree/main/zova-ui-quasar
Gif demonstration
Demonstration: no
ref/reactive
, noref.value
1. Define reactive state
Define a reactive variable
count
in the component and add two methods to modify its value2. Use reactive state
Use
count
in render classDemonstration: dependency injection
1. Logic Reuse
Create a
Counter
Bean to implement the logic ofcount
2. Inject and use in a component
Beta Was this translation helpful? Give feedback.
All reactions