如果::v-deep后面時(shí)一個(gè)object, 該如何替換為:deep() ?
比如在vue2 中:
::v-deep {
.sortable-ghost {
opacity: .8;
color: #fff !important;
}
.el-tag {
cursor: pointer;
}
}
vue2.x和vue3.0在scss樣式中使用深度選擇器的區(qū)別在vue 2.x中,使用scss時(shí),深度選擇器是::v-deep, 在vue3.0中,由于::v-deep已被棄用,采用一種新的語法。如果在vue3.0中使用::v-deep...