[@vue/compiler-sfc] :deep usage as a combinator has been deprecated. Use :deep(<inner-selector>) instead of :deep <inner-selector>. #13446
cchangwen
started this conversation in
General Discussions
Replies: 1 comment
-
:deep(div) {
&:hover span { color: red; }
} |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
而 :deep 能与
scss
的&
语法兼容,显然更灵活,重要的是它符合直觉、容易理解:
只需要把 :deep 理解成决定 [data-v-] 位置 css 伪类
Beta Was this translation helpful? Give feedback.
All reactions