Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v-model #17

Closed
ubugeeei opened this issue Nov 29, 2023 · 8 comments
Closed

v-model #17

ubugeeei opened this issue Nov 29, 2023 · 8 comments

Comments

@ubugeeei
Copy link
Member

ubugeeei commented Nov 29, 2023

br: https://github.com/Ubugeeei/vuejs-core/tree/feat/v-model

@baiwusanyu-c
Copy link
Member

v-show and v-model need to be based on runtime design. Currently, the team needs to discuss the design plan before they can be implemented.

@ubugeeei
Copy link
Member Author

Thank you for sharing!
I’ll play around with it a bit, assuming we’ll redo it once things are decided.

@sxzz sxzz changed the title feat(compiler): v-model v-model Nov 29, 2023
@sxzz sxzz changed the title v-model v-model Nov 29, 2023
@sxzz
Copy link
Member

sxzz commented Nov 29, 2023

Need #19 first

@sxzz
Copy link
Member

sxzz commented Feb 10, 2024

v-model for native is completed, the next step is about components. Let's track #127

@WORMSS
Copy link

WORMSS commented Mar 4, 2024

I am getting The requested module 'vue' does not provide an export named 'useModel' from the vapor-repl playground on netlify

All I am doing is adding const m = defineModel() to the default playground..

I am not sure the vue files hosted there are old, or if v-model and defineModel are more disconnected than I thought and I just need to wait longer?

@sxzz
Copy link
Member

sxzz commented Mar 5, 2024

useModel has not ported from Vue core, and we should wait for a bit longer.

@WORMSS
Copy link

WORMSS commented Mar 5, 2024

That is fine, it explains what I am seeing, and makes sense.. It doesn't seem to be on the roadmap on the README, is there a good issue/pr/thread/newsletter/carrier pigeon I should keep an eye out for?

@sxzz
Copy link
Member

sxzz commented Mar 5, 2024

defineModel/useModel is working with bundlers, but not for SFC playground, due to CDN imports. You can try it with bundler, see template

For CDN import, I created an issue #145 for tracking.

@sxzz sxzz closed this as completed May 3, 2024
@github-actions github-actions bot locked and limited conversation to collaborators Sep 20, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants