Skip to content

子父组件中同名选择器的疑问 #9048

Discussion options

You must be logged in to vote

playground 1
如下图,确实会有这个问题

再包一层就不会有这个问题
playground 2

建议父子组件的根样式名称还是不要一样为好

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@LiarAndQuan
Comment options

@likui628
Comment options

@LiarAndQuan
Comment options

Answer selected by LiarAndQuan
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants