Skip to content

Add a switch button #282

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

Closed
btea opened this issue Sep 8, 2024 · 3 comments · Fixed by #283
Closed

Add a switch button #282

btea opened this issue Sep 8, 2024 · 3 comments · Fixed by #283

Comments

@btea
Copy link
Contributor

btea commented Sep 8, 2024

Currently, autoSave is reactive, can we add a toggle button like Show Error?

image

@sxzz
Copy link
Member

sxzz commented Sep 8, 2024

Good idea

@btea
Copy link
Contributor Author

btea commented Sep 8, 2024

I tried it briefly, and found that autoSave and Show Error are not the same. autoSave is passed in through props, and it seems that it cannot be modified directly. What do you think is a better way to deal with it? 🤔

@sxzz
Copy link
Member

sxzz commented Sep 8, 2024

We can let autoSave be a model - use defineModel instead.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants