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

refactor(toggle): use useModel and delete defaultPressed & modelValue #205

Closed
wants to merge 1 commit into from

Conversation

YeSuX
Copy link
Collaborator

@YeSuX YeSuX commented Jul 14, 2023

Description

Linked Issues

Additional context

@productdevbook productdevbook marked this pull request as draft July 14, 2023 16:57
@productdevbook
Copy link
Member

Let's keep this pr and discuss. @dammy001

@dammy001
Copy link
Contributor

Let's keep this pr and discuss. @dammy001

Okay.

@YeSuX
Copy link
Collaborator Author

YeSuX commented Jul 15, 2023

I think this is a problem of component design standards, not just limited to headless component libraries. The best solution is that we can refer to several well-known vue component libraries. Let's take a look at them:
1. Whether there is a defaultValue attribute
2. Whether it can be controlled by modelValue and pressed to control the state of the component
After understanding, we can discuss and then formulate a standard.

@productdevbook
Copy link
Member

#295

With this pr, this structure has been dissolved.

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 this pull request may close these issues.

3 participants