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: generic components #868

Merged
merged 2 commits into from Jan 8, 2023
Merged

refactor: generic components #868

merged 2 commits into from Jan 8, 2023

Conversation

sxzz
Copy link
Member

@sxzz sxzz commented Jan 8, 2023

@sxzz sxzz requested review from patak-dev and antfu January 8, 2023 06:27
@stackblitz
Copy link

stackblitz bot commented Jan 8, 2023

Review PR in StackBlitz Codeflow Run & review this pull request in StackBlitz Codeflow.

@netlify
Copy link

netlify bot commented Jan 8, 2023

Deploy Preview for elk-zone ready!

Name Link
🔨 Latest commit a22c1d7
🔍 Latest deploy log https://app.netlify.com/sites/elk-zone/deploys/63ba74cfb19a020008d43ed8
😎 Deploy Preview https://deploy-preview-868--elk-zone.netlify.app/
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@@ -20,7 +20,7 @@ function close() {
<div>
<slot />
</div>
<button text-xl hover:text-primary bg-hover-overflow w-1.4em h-1.4em @click="close()">
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there a reason to prefer one or the other? Honest question, so I apply what we think is better next time. Also, maybe there should be a linting rule if we want to promote a single way to use these attrs? cc @antfu

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Because I enabled jsxTemplates for Volar. w-1.4em is not a valid JSX syntax (because of . I guess). So I have to change it.

The linting rule is unnecessary since Volar will emit an error for w-1.4em.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's ok to me. I just pushed a feature to UnoCSS to have a common size="" prefix for it: bf434f3f6d1c4d445a82ca0cc97fbbc3e2333b12. We could update it once after next UnoCSS release.

Copy link
Member

@patak-dev patak-dev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Generic components look awesome!

Co-authored-by: Anthony Fu <anthonyfu117@hotmail.com>
@sxzz sxzz merged commit b30ebc1 into main Jan 8, 2023
@sxzz sxzz deleted the feat/generic-component branch January 8, 2023 07:49
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.

None yet

3 participants