vue3中对于/deep/和::v-deep的警告信息处理
目前发现两处警告信息:
::v-deep usage as a combinator has been deprecated. Use :deep() instead.
the >>> and /deep/ combinators have been deprecated. Use :deep() instead.
实际上这是因为原来的深度选择器的写法在未来有极大的可能被废弃掉,所以不推荐大家再使用原来的写法,如:
::v-deep .el-icon{
height: inherit;
}
/deep/ .el-icon{
height: inherit;
}
正确的写法:
::v-deep(.el-icon){
height: inherit;
}
或
:deep(.el-icon){
height: inherit;
}
posted on 2023-02-20 15:41 zyp_java_net 阅读(1142) 评论(0) 编辑 收藏 举报