refactor: 将深度选择器语法更新为v-deep

-在多个Vue和SCSS文件中用::v-deep替换弃用的/deep/选择器,以便更好地与Vue的范围样式兼容。
This commit is contained in:
Yer11214
2025-10-21 10:33:59 +08:00
parent 3219f6d576
commit 1fcc016ccd
44 changed files with 83 additions and 81 deletions

1
.gitignore vendored
View File

@@ -11,3 +11,4 @@ node_modules/
.hbuilderx/launch.json
.project.config.json
.project.private.config.json

View File

@@ -437,7 +437,7 @@ export default {
box-shadow: 0 2px 6px 0 rgba(255, 65, 66, 0.2);
}
/deep/.u-icon-plus,
::v-deep.u-icon-plus,
.u-icon-minus,
.u-icon-disabled {
height: 30rpx !important;
@@ -457,7 +457,7 @@ export default {
}
}
/deep/ .uni-scroll-view {
::v-deep .uni-scroll-view {
overflow: hidden !important;
}
@@ -546,7 +546,7 @@ export default {
color: #999;
margin-left: 10rpx;
/deep/ span {
::v-deep span {
font-size: 30rpx;
}
}

View File

@@ -268,7 +268,7 @@ export default {
color: $main-color;
font-weight: bold;
/deep/ span:nth-of-type(1) {
::v-deep span:nth-of-type(1) {
font-size: 38rpx;
}
}

View File

@@ -331,7 +331,7 @@
color: $main-color;
font-weight: bold;
/deep/ span:nth-of-type(1) {
::v-deep span:nth-of-type(1) {
font-size: 38rpx;
}
}

View File

@@ -162,7 +162,7 @@
color: $main-color;
font-weight: bold;
/deep/ span:nth-of-type(1) {
::v-deep span:nth-of-type(1) {
font-size: 48rpx;
}
}

View File

@@ -164,7 +164,7 @@ export default {
width: 100%;
//border-bottom: 1px #f5f5f5 solid; //HM修改 去掉边框
box-sizing: border-box;
font-size: $uni-font-size-base;
font-size: 24rpx;
.left-box {
display: flex;

View File

@@ -367,7 +367,8 @@
}, {
"path": "point/myPoint",
"style": {
"navigationBarTitleText": "我的积分"
"navigationBarTitleText": "",
"navigationStyle": "custom"
}
},
{

View File

@@ -447,7 +447,7 @@
width: 100%;
}
/deep/ .u-row {
::v-deep .u-row {
width: 100% !important;
display: flex;
justify-content: space-between !important;

View File

@@ -292,7 +292,7 @@ export default {
</script>
<style scoped lang="scss">
.detailAddress {
/deep/ .u-form-item--left {
::v-deep .u-form-item--left {
display: flex;
align-items: flex-start;
}
@@ -332,7 +332,7 @@ export default {
width: 100%;
padding-top: 3%;
/deep/ .u-form-item {
::v-deep .u-form-item {
background-color: #fff;
padding: 24rpx 30rpx;
}
@@ -341,7 +341,7 @@ export default {
background-color: $main-color;
}
/deep/.u-checkbox {
::v-deep.u-checkbox {
margin: 30rpx 30rpx 0 30rpx;
.u-label-class.u-checkbox__label {
@@ -350,7 +350,7 @@ export default {
}
}
}
/deep/ .u-checkbox__label {
::v-deep .u-checkbox__label {
font-size: 28rpx;
}
</style>

View File

@@ -1,9 +1,9 @@
/deep/ .u-input__input,
::v-deep .u-input__input,
.u-input {
font-size: 80rpx !important;
height: 102rpx !important;
}
/deep/ .u-input__input {
::v-deep .u-input__input {
height: 100%;
font-size: 80rpx;
}

View File

@@ -82,13 +82,13 @@ export default {
};
</script>
<style lang="scss" scoped>
/deep/ .u-input__input,
::v-deep .u-input__input,
.u-input {
font-size: 80rpx !important;
height: 102rpx !important;
}
/deep/ .u-input__input{
::v-deep .u-input__input{
height: 100%;
font-size: 80rpx;
}

View File

@@ -86,7 +86,7 @@
background: #f9f9f9;
}
/deep/ .u-col-2 {
::v-deep .u-col-2 {
height: 60px;
line-height: 60px;
text-align: center !important;

View File

@@ -300,7 +300,7 @@
width: 100%;
}
/deep/ .u-swipe-content {
::v-deep .u-swipe-content {
overflow: hidden;
}

View File

@@ -151,10 +151,10 @@ export default {
border-radius: 0 0 20rpx 20rpx;
margin: 0 20rpx;
font-size: 26rpx;
/deep/ .u-col {
::v-deep .u-col {
text-align: center !important;
}
/deep/ .u-col:first-child {
::v-deep .u-col:first-child {
border-right: 1px solid $border-color-light;
}
.pcolor {

View File

@@ -143,7 +143,7 @@ export default {
padding: 32rpx;
margin-bottom: 40rpx;
}
/deep/ .u-input__textarea {
::v-deep .u-input__textarea {
padding: 12px;
}
.feedBack-box:nth-of-type(1) {

View File

@@ -236,7 +236,7 @@ page{
border-radius: 50%;
}
}
/deep/ .u-form {
::v-deep .u-form {
background-color: #ffffff;
padding: 0;
margin-top: 30rpx;

View File

@@ -187,12 +187,12 @@ import uuid from "@/utils/uuid.modified.js";
<style lang="scss" scoped>
@import url("@/pages/passport/login.scss");
/deep/ .u-form-item {
::v-deep .u-form-item {
margin: 40rpx 0;
}
.sendCode {
/deep/ .u-form-item--right__content__slot {
::v-deep .u-form-item--right__content__slot {
display: flex;
}
}

View File

@@ -120,12 +120,12 @@
<style lang="scss" scoped>
@import url("@/pages/passport/login.scss");
/deep/ .u-form-item {
::v-deep .u-form-item {
margin: 40rpx 0;
}
.sendCode {
/deep/ .u-form-item--right__content__slot {
::v-deep .u-form-item--right__content__slot {
display: flex;
}
}

View File

@@ -241,12 +241,12 @@
<style lang="scss" scoped>
@import url("@/pages/passport/login.scss");
/deep/ .u-form-item {
::v-deep .u-form-item {
margin: 40rpx 0;
}
.sendCode {
/deep/ .u-form-item--right__content__slot {
::v-deep .u-form-item--right__content__slot {
display: flex;
}
}

View File

@@ -202,11 +202,11 @@ export default {
color: #333333;
}
/deep/ .u-cell__value {
::v-deep .u-cell__value {
color: #cccccc !important;
}
/deep/ .u-cell__right-icon-wrap {
::v-deep .u-cell__right-icon-wrap {
color: #cccccc !important;
}
</style>

View File

@@ -86,7 +86,7 @@ page {
line-height: 70rpx;
font-size: 24rpx;
}
/deep/ .uni-input-input {
::v-deep .uni-input-input {
font-size: 24rpx;
}
}
@@ -441,7 +441,7 @@ view {
padding-top: 300rpx;
color: #999999;
text-align: center;
/deep/ .u-image {
::v-deep .u-image {
width: 346rpx;
height: 304rpx;
}

View File

@@ -217,7 +217,7 @@ export default {
}
}
/deep/ .u-input__textarea {
::v-deep .u-input__textarea {
padding: 0;
}
.cell-title {

View File

@@ -162,7 +162,7 @@ export default {
font-size: 24rpx;
color: #999;
}
/deep/ .seller-name {
::v-deep .seller-name {
width: auto !important;
}
.complain-btn {

View File

@@ -881,7 +881,7 @@ page {
}
.uinput {
/deep/ input {
::v-deep input {
text-align: right;
}
}
@@ -976,7 +976,7 @@ page {
text-align: left;
}
/deep/ .u-col-3 {
::v-deep .u-col-3 {
text-align: right;
}
@@ -1011,7 +1011,7 @@ page {
}
}
/deep/ .u-notice-bar-wrap {
::v-deep .u-notice-bar-wrap {
width: 100% !important;
}
@@ -1128,11 +1128,11 @@ page {
color: #333333;
}
/deep/ .u-col {
::v-deep .u-col {
padding: 36rpx 0 !important;
}
/deep/ .u-col-3,
::v-deep .u-col-3,
.tipsColor {
color: #333;
}

View File

@@ -11,7 +11,7 @@
position: relative;
}
/deep/ .u-form-item--right__content__slot {
::v-deep .u-form-item--right__content__slot {
width: 100%;
display: block;
}

View File

@@ -121,7 +121,7 @@ export default {
padding: 32rpx;
}
/deep/ .u-col {
::v-deep .u-col {
text-align: center;
padding: 16rpx 0 !important;
}

View File

@@ -120,18 +120,18 @@ export default {
.empty {
margin: 40rpx 0;
}
.goods-detail /deep/ .vhtml {
.goods-detail ::v-deep .vhtml {
overflow: hidden;
width: 100%;
}
.vhtml {
/deep/ img {
::v-deep img {
display: block !important;
}
}
/deep/ img {
::v-deep img {
width: 100%;
}
.goods-detail-box {

View File

@@ -104,7 +104,7 @@ export default {
}
}
/deep/ .image-wrapper image {
::v-deep .image-wrapper image {
opacity: 1 !important;
}

View File

@@ -125,7 +125,7 @@ export default {
display: block;
}
/deep/ .u-mode-light-error {
::v-deep .u-mode-light-error {
border: none;
}

View File

@@ -126,7 +126,7 @@ export default {
color: #333333;
margin-left: 20rpx;
}
/deep/ .u-mode-light-error {
::v-deep .u-mode-light-error {
border: none;
}
.coupon{

View File

@@ -35,7 +35,7 @@
background: #ffe7e6 !important;
text-align: center !important;
}
/deep/ .u-mode-light-error {
::v-deep .u-mode-light-error {
border: none;
}

View File

@@ -87,14 +87,14 @@ export default {
overflow: hidden;
border-radius: 12rpx;
/deep/ .u-image__image {
::v-deep .u-image__image {
height: 218rpx;
border-radius: 12rpx !important;
}
}
.recommend-item-img {
/deep/ .u-image__image {
::v-deep .u-image__image {
width: 100% !important;
}
}
@@ -190,7 +190,7 @@ export default {
flex-wrap: wrap;
justify-content: space-between;
/deep/ .u-row {
::v-deep .u-row {
width: 100%;
}

View File

@@ -101,7 +101,7 @@ page {
color: $price-color;
font-size: 32rpx;
line-height: 1;
/deep/ .price {
::v-deep .price {
font-size: 60rpx;
}
}
@@ -124,7 +124,7 @@ page {
overflow: hidden;
border-radius: 12rpx;
/deep/ .u-image__image {
::v-deep .u-image__image {
// width: 228rpx;
height: 228rpx;
border-radius: 12rpx !important;
@@ -200,7 +200,7 @@ page {
font-size: 30rpx;
transition: all 0.5s;
}
/deep/ .u-navbar {
::v-deep .u-navbar {
padding-left: 10rpx;
}
.nav-item {
@@ -356,7 +356,7 @@ page {
z-index: 8;
width: 100%;
/deep/ .u-row {
::v-deep .u-row {
width: 100%;
}
}
@@ -368,7 +368,7 @@ page {
color: #fff;
padding: 0 20rpx;
/deep/ .price {
::v-deep .price {
font-size: 36rpx;
font-weight: 400;
text-align: left;

View File

@@ -290,7 +290,7 @@ page {
}
.index-item-img {
/deep/ .u-image {
::v-deep .u-image {
width: 346rpx !important;
height: 320rpx !important;
border-radius: 10rpx !important;

View File

@@ -26,7 +26,7 @@
color: #999999;
margin: 0 20rpx;
/deep/ view {
::v-deep view {
line-height: 1.75;
}
}
@@ -121,7 +121,7 @@
text-align: center;
padding: 6rpx 16rpx;
}
/deep/ .empty {
::v-deep .empty {
position: relative;
padding-top: 20%;
> .empty-content {

View File

@@ -570,7 +570,7 @@ page {
font-weight: bold;
display: flex;
align-items: center;
/deep/ .tips {
::v-deep .tips {
margin: 0 8rpx 0 0;
background: $main-color;
border-radius: 100px;
@@ -604,14 +604,14 @@ page {
}
/* 空白页 */
/deep/ .u-number-input {
::v-deep .u-number-input {
background: #fff !important;
border: 1px solid #ededed;
margin: 0 !important;
}
/deep/ .u-icon-minus,
/deep/ .u-icon-plus {
::v-deep .u-icon-minus,
::v-deep .u-icon-plus {
background: #ffffff !important;
border: 1px solid #ededed;
color: #333 !important;
@@ -665,7 +665,7 @@ page {
display: flex;
align-items: center;
/deep/ .number {
::v-deep .number {
line-height: 1;
font-size: 30rpx;
> span {
@@ -691,7 +691,7 @@ page {
height: 100%;
}
/deep/ .u-col {
::v-deep .u-col {
padding: 24rpx 0 !important;
}
@@ -735,7 +735,7 @@ page {
.goods-config {
display: flex;
align-items: center;
/deep/ .invalid {
::v-deep .invalid {
display: block;
width: 80rpx !important;
}
@@ -765,7 +765,7 @@ page {
height: 40rpx;
border-left: 1px solid #eeeeee;
/deep/ span {
::v-deep span {
margin-left: 20rpx;
}
}
@@ -814,10 +814,10 @@ page {
display: flex;
justify-content: space-between;
> .sp-price {
/deep/ span:nth-of-type(1) {
::v-deep span:nth-of-type(1) {
font-size: 38rpx;
}
/deep/ span:nth-of-type(2) {
::v-deep span:nth-of-type(2) {
font-size: 24rpx;
}
}

View File

@@ -211,7 +211,7 @@ uni-scroll-view .uni-scroll-view::-webkit-scrollbar {
border-radius: 8px;
margin-bottom: 20rpx;
}
/deep/ .u-image {
::v-deep .u-image {
width: 140rpx !important;
height: 140rpx !important;
border-radius: 8px !important;

View File

@@ -45,7 +45,7 @@ export default {
<style lang="scss" scoped>
.web-view {
/deep/ .web-view {
::v-deep .web-view {
padding: 0;
margin: 0;
}

View File

@@ -219,7 +219,7 @@ body {
line-height: 1;
}
/deep/ .u-icon,
::v-deep .u-icon,
.u-icon {
margin-top: 106rpx;
}

View File

@@ -65,7 +65,7 @@ $font-weight: 400;
}
.bg-light-color {
background-color: $light-color !important;
/deep/ * {
::v-deep * {
background-color: $light-color !important;
}
}

View File

@@ -232,7 +232,7 @@ export default {
> text {
margin-right: 10rpx;
}
/deep/ {
::v-deep {
.uicon {
position: relative;
top: -2rpx;

View File

@@ -88,7 +88,7 @@
}
/* #ifdef MP */
.u-table /deep/ t-tr {
.u-table ::v-deep t-tr {
display: flex;
}
/* #endif */

View File

@@ -393,7 +393,7 @@
/* #ifdef H5 */
// 通过样式穿透隐藏H5下scroll-view下的滚动条
scroll-view /deep/ ::-webkit-scrollbar {
scroll-view ::v-deep ::-webkit-scrollbar {
display: none;
width: 0 !important;
height: 0 !important;

View File

@@ -312,7 +312,7 @@
/* #ifdef H5 */
// 通过样式穿透隐藏H5下scroll-view下的滚动条
scroll-view /deep/ ::-webkit-scrollbar {
scroll-view ::v-deep ::-webkit-scrollbar {
display: none;
width: 0 !important;
height: 0 !important;