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

scoped css #12

Merged
merged 8 commits into from
Mar 14, 2021
Merged

scoped css #12

merged 8 commits into from
Mar 14, 2021

Conversation

yisar
Copy link
Contributor

@yisar yisar commented Mar 14, 2021

实现 class 级别 scoped css,主要是使用 vue 的方案,但有所不同

https://github.com/vuejs/vue-next/blob/master/packages/compiler-sfc/src/stylePluginScoped.ts

  1. 暂时只处理 class 情况
  2. teamplate/slot 不需要 scoped,自定义组件需要 scoped

@yisar yisar marked this pull request as ready for review March 14, 2021 08:57
@yisar yisar merged commit 20dcfb8 into master Mar 14, 2021
@yisar yisar mentioned this pull request Mar 14, 2021
@yisar yisar deleted the scoped-css branch May 20, 2021 07:32
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

1 participant