强调一点,>>>三箭头穿透函数,要在配合scoped一起使用。
![](https://upload-images.jianshu.io/upload_images/18344853-4f8d49ce4d106582.png?imageMogr2/auto-orient/strip|imageView2/2/w/993/format/webp)
image.png
![](https://upload-images.jianshu.io/upload_images/18344853-26213899d6c9e14e.png?imageMogr2/auto-orient/strip|imageView2/2/w/629/format/webp)
image.png
sass样式穿透要使用
/deep/ 使用三箭头无效
.choosetime /deep/ .el-date-editor .el-range-input{
width: 38%;
}
.choosetime /deep/ .el-date-editor--daterange.el-input__inner{
width: 180px;
}