Skip to content

Commit

Permalink
chore: 处理tools类型和scss breaking change
Browse files Browse the repository at this point in the history
  • Loading branch information
ZvonimirSun committed Jul 19, 2024
1 parent 5070392 commit f1d69da
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 10 deletions.
7 changes: 6 additions & 1 deletion src/tools.js → src/tools.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
export default [
import type { ToolMenu } from '@/types/tool'
import type { Optional } from '@/types/common'

const tools: Optional<ToolMenu, 'id'>[] = [
{
type: '编辑器',
icon: 'i-icon-park-outline-editor',
Expand Down Expand Up @@ -310,3 +313,5 @@ export default [
],
},
]

export default tools
24 changes: 15 additions & 9 deletions src/tools/2048/2048.vue
Original file line number Diff line number Diff line change
Expand Up @@ -312,8 +312,10 @@ export default {
}
}
@include animation(fade-in 800ms ease $transition-speed * 12);
@include animation-fill-mode(both);
& {
@include animation(fade-in 800ms ease $transition-speed * 12);
@include animation-fill-mode(both);
}
&.game-won {
background: rgba($tile-gold-color, .5);
Expand Down Expand Up @@ -393,11 +395,13 @@ export default {
font-size: 5.5rem;
}
// Movement transition
@include transition($transition-speed ease-in-out);
-webkit-transition-property: -webkit-transform;
-moz-transition-property: -moz-transform;
transition-property: transform;
& {
// Movement transition
@include transition($transition-speed ease-in-out);
-webkit-transition-property: -webkit-transform;
-moz-transition-property: -moz-transform;
transition-property: transform;
}
$base: 2;
$exponent: 1;
Expand Down Expand Up @@ -643,8 +647,10 @@ export default {
}
}
@include animation(fade-in 800ms ease $transition-speed * 12);
@include animation-fill-mode(both);
& {
@include animation(fade-in 800ms ease $transition-speed * 12);
@include animation-fill-mode(both);
}
&.game-won {
background: rgba($tile-gold-color, .5);
Expand Down

0 comments on commit f1d69da

Please sign in to comment.