-
-
Notifications
You must be signed in to change notification settings - Fork 6.3k
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
how to use <style vars> ? #578
Comments
Install vue lasted versions and use |
when I use the script setup It works <script setup>
export const color = 'red';
</script>
<style vars="{ color }" scoped>
.text {
color: var(--color);
}
</style> use the options api data return it still doesn't work |
underfin
added a commit
to underfin/vue-next
that referenced
this issue
Jul 20, 2020
yyx990803
pushed a commit
to vuejs/core
that referenced
this issue
Jul 20, 2020
Close via vuejs/core#1658 (pending release) |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I use the style vars as the document example
but it does not work
Uncaught SyntaxError: The requested module '/@modules/vue.js' does not provide an export named 'useCSSVars'
The text was updated successfully, but these errors were encountered: