如果::v-deep后面时一个object, 该如何替换为:deep() ?
比如在vue2 中:
::v-deep {
.sortable-ghost {
opacity: .8;
color: #fff !important;
}
.el-tag {
cursor: pointer;
}
}
vue2.x和vue3.0在scss样式中使用深度选择器的区别在vue 2.x中,使用scss时,深度选择器是::v-deep, 在vue3.0中,由于::v-deep已被弃用,采用一种新的语法。如果在vue3.0中使用::v-deep...