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

vue 使用 style CSS variable injection ,驼峰式变量名被解析导致无法生效 #8736

Closed
unforesndprson opened this issue Feb 24, 2021 · 1 comment
Labels
F-vue3 Framework - Vue 3 T-weapp Target - 编译到微信小程序 V-3 Version - 3.x
Milestone

Comments

@unforesndprson
Copy link

相关平台

微信小程序

复现仓库

https://github.com/unforesndprson/Taro3-issues-code.git
小程序基础库: 2.15.0
使用框架: Vue 3

复现步骤

1.运行小程序
2.两个容器背景色,上面失效,下面生效。

期望结果

驼峰式变量名不会被解析

实际结果

驼峰式变量名被解析,导致样式失效

环境信息


  Taro CLI 3.0.26 environment info:
    System:
      OS: macOS 10.15.7
      Shell: 5.7.1 - /bin/zsh
    Binaries:
      Node: 12.19.0 - /usr/local/bin/node
      Yarn: 1.22.5 - /usr/local/bin/yarn
      npm: 6.14.8 - /usr/local/bin/npm
    npmPackages:
      @tarojs/components: 3.0.26 => 3.0.26 
      @tarojs/mini-runner: 3.0.26 => 3.0.26 
      @tarojs/runtime: 3.0.26 => 3.0.26 
      @tarojs/taro: 3.0.26 => 3.0.26 
      @tarojs/webpack-runner: 3.0.26 => 3.0.26 
      babel-preset-taro: 3.0.26 => 3.0.26 
      eslint-config-taro: 3.0.26 => 3.0.26 

补充信息

vuejs/rfcs#231 (comment)
在使用组合式api,也会遇到上面评论的报错,望大佬能顺手指导下哈。具体写法如下评论
vuejs/rfcs#231 (comment)

@taro-bot2 taro-bot2 bot added F-vue3 Framework - Vue 3 T-weapp Target - 编译到微信小程序 V-3 Version - 3.x labels Feb 24, 2021
@Chen-jj Chen-jj added this to the 3.1.1 milestone Feb 25, 2021
@Chen-jj
Copy link
Contributor

Chen-jj commented Feb 25, 2021

补充信息

vuejs/rfcs#231 (comment)
在使用组合式api,也会遇到上面评论的报错,望大佬能顺手指导下哈。具体写法如下评论
vuejs/rfcs#231 (comment)

感觉要等 Vue 社区回复了

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
F-vue3 Framework - Vue 3 T-weapp Target - 编译到微信小程序 V-3 Version - 3.x
Projects
None yet
Development

No branches or pull requests

2 participants