Skip to content

Commit

Permalink
【feature】vue 升级到 2.7; fix sass 1.77.x warning
Browse files Browse the repository at this point in the history
  • Loading branch information
xiongjiaojiao committed Aug 6, 2024
1 parent 7769083 commit f6ffb14
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 17 deletions.
4 changes: 1 addition & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -216,14 +216,12 @@
"uglifyjs-webpack-plugin": "^2.1.1",
"uppercamelcase": "^3.0.0",
"url-loader": "^1.1.2",
"vue": "2.6.14",
"vue": "^2.7.16",
"vue-class-component": "^7.2.6",
"vue-eslint-parser": "^7.6.0",
"vue-jest": "^3.0.2",
"vue-loader": "^15.5.1",
"vue-server-renderer": "2.6.14",
"vue-style-loader": "^4.1.2",
"vue-template-compiler": "2.6.14",
"vuepress": "^1.0.3",
"webpack": "^4.35.3",
"webpack-bundle-analyzer": "^3.0.3",
Expand Down
2 changes: 1 addition & 1 deletion src/common/_mixin/Card.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import SmCollapseCard from 'vue-iclient/src/common/collapse-card/CollapseCard.vu
export default class CardMixin extends Vue {
@Prop({
default: 'top-left',
validator(value) {
validator(value: string) {
return ['top-left', 'top-right', 'bottom-left', 'bottom-right'].includes(value);
}
})
Expand Down
4 changes: 2 additions & 2 deletions src/common/collapse-card/style/collapse-card.scss
Original file line number Diff line number Diff line change
Expand Up @@ -139,20 +139,20 @@
}
}
@include when(top-left) {
transform-origin: top left;
@include when(icon) {
& > .sm-component-collapse-card__header {
padding-left: 38px;
}
}
transform-origin: top left;
}
@include when(bottom-left) {
transform-origin: top left;
@include when(icon) {
& > .sm-component-collapse-card__header {
padding-left: 38px;
}
}
transform-origin: top left;
}
@include when(not-header) {
@include when(bottom-right) {
Expand Down
2 changes: 1 addition & 1 deletion src/common/video-player/style/video-player.scss
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,7 @@
}
}
.sm-component-video-player-modal {
background: rgba(0, 0, 0, 0.7);
.sm-component-modal-close {
color: #a2a3a5;
right: -5%;
Expand Down Expand Up @@ -257,7 +258,6 @@
}
}
}
background: rgba(0, 0, 0, 0.7);
}
.sm-component-video-full-fill{
video{
Expand Down
2 changes: 1 addition & 1 deletion src/mapboxgl/_mixin/control.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export default class Control extends Vue {

@Prop({
default: 'top-left',
validator(value) {
validator(value: string) {
return ['top-left', 'top-right', 'bottom-left', 'bottom-right'].includes(value);
}
})
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -176,15 +176,6 @@
left: 0;
animation-fill-mode: forwards;
margin: auto;
&:before,
:after {
content: '';
position: absolute;
display: block;
height: inherit;
width: inherit;
border-radius: inherit;
}
width: var(--dots-width);
height: var(--dots-height);
box-shadow: var(--dots-box-shadow-x-negative) 0 0 var(--dots-box-shadow-radius1-negative) var(--light-color),
Expand All @@ -198,6 +189,12 @@
0 0 4px 8px var(--line-color);
&:before,
&:after {
content: '';
position: absolute;
display: block;
height: inherit;
width: inherit;
border-radius: inherit;
box-shadow: var(--dots-box-shadow-x-negative) 0 0 var(--dots-box-shadow-radius1-negative) var(--light-color),
var(--dots-box-shadow-x-negative) 0 4px var(--dots-box-shadow-radius2-negative) var(--color),
var(--dots-box-shadow-x) 0 0 var(--dots-box-shadow-radius1-negative) var(--light-color),
Expand Down

0 comments on commit f6ffb14

Please sign in to comment.