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

vite vue3项目如何修改子组件样式? #3063

Closed
Iongtao opened this issue Dec 9, 2021 · 2 comments
Closed

vite vue3项目如何修改子组件样式? #3063

Iongtao opened this issue Dec 9, 2021 · 2 comments

Comments

@Iongtao
Copy link

Iongtao commented Dec 9, 2021

问题描述
vite vue3项目如何修改子组件样式?
style使用scss预处理

使用 /deep/ 无效 编译错误 大概vue3不支持?
image
image

使用:deep() 编译成功 但无效果
image

复现步骤
使用vite+vue3+scss
在父组件中修改子组件样式 无效
style使用了scoped关键字

预期结果
修改子组件样式成功

实际结果
修改失败
image
image

系统信息:

  • 发行平台: 微信小程序
  • 操作系统 微信小程序模拟器
  • HBuilderX版本 cli
  • uni-app版本 无
  • 设备信息 模拟iphone6

补充信息

@fxy060608
Copy link
Collaborator

小程序默认只能页面穿透到组件,不能组件穿透到组件

@Iongtao
Copy link
Author

Iongtao commented Dec 9, 2021

小程序默认只能页面穿透到组件,不能组件穿透到组件

哦对 谢谢

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

No branches or pull requests

2 participants