Skip to content

Commit d2b09f3

Browse files
authored
chore: upgrade packages
2 parents 9d0994f + 2e0cf36 commit d2b09f3

File tree

6 files changed

+379
-374
lines changed

6 files changed

+379
-374
lines changed

azure-pipelines.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ pool:
1212
steps:
1313
- task: NodeTool@0
1414
inputs:
15-
versionSpec: '12.x'
15+
versionSpec: '14.x'
1616
displayName: 'Install Node.js'
1717

1818
- script: |

package.json

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -46,34 +46,34 @@
4646
},
4747
"devDependencies": {
4848
"@rollup/plugin-beep": "^0.2.0",
49-
"@rollup/plugin-node-resolve": "^13.2.0",
50-
"@rollup/plugin-sucrase": "^4.0.3",
49+
"@rollup/plugin-node-resolve": "^13.3.0",
50+
"@rollup/plugin-sucrase": "^4.0.4",
5151
"@rollup/plugin-typescript": "^8.3.2",
52-
"@typescript-eslint/eslint-plugin": "^5.19.0",
53-
"@typescript-eslint/parser": "^5.19.0",
54-
"@vitejs/plugin-vue": "^2.3.1",
55-
"@vue/compiler-sfc": "^3.2.32",
56-
"eslint": "^8.13.0",
57-
"eslint-plugin-vue": "^8.6.0",
58-
"husky": "^7.0.4",
59-
"lint-staged": "^12.3.7",
60-
"postcss": "^8.4.12",
61-
"postcss-html": "^1.3.1",
62-
"postcss-scss": "^4.0.3",
63-
"rollup": "^2.70.1",
52+
"@typescript-eslint/eslint-plugin": "^5.26.0",
53+
"@typescript-eslint/parser": "^5.26.0",
54+
"@vitejs/plugin-vue": "^2.3.3",
55+
"@vue/compiler-sfc": "^3.2.36",
56+
"eslint": "^8.16.0",
57+
"eslint-plugin-vue": "^9.0.1",
58+
"husky": "^8.0.1",
59+
"lint-staged": "^12.4.2",
60+
"postcss": "^8.4.14",
61+
"postcss-html": "^1.4.1",
62+
"postcss-scss": "^4.0.4",
63+
"rollup": "^2.75.3",
6464
"rollup-plugin-buble": "^0.19.8",
6565
"rollup-plugin-commonjs": "^10.1.0",
6666
"rollup-plugin-postcss": "^4.0.2",
6767
"rollup-plugin-scss": "^3.0.0",
6868
"rollup-plugin-terser": "^7.0.2",
6969
"rollup-plugin-vue": "^6.0.0",
70-
"sass": "^1.50.0",
71-
"stylelint": "^14.6.1",
72-
"stylelint-config-standard": "^23.0.0",
73-
"tslib": "^2.3.1",
74-
"typescript": "^4.6.3",
75-
"vite": "^2.9.4",
76-
"vue": "^3.2.32",
70+
"sass": "^1.52.1",
71+
"stylelint": "^14.8.5",
72+
"stylelint-config-standard": "^25.0.0",
73+
"tslib": "^2.4.0",
74+
"typescript": "^4.7.2",
75+
"vite": "^2.9.9",
76+
"vue": "^3.2.36",
7777
"vue-float-menu": "^1.9.1"
7878
},
7979
"peerDependencies": {

src/components/Menu.scss

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
}
4343

4444
&.disabled {
45-
opacity: 45%;
45+
opacity: 0.45;
4646
}
4747
}
4848

@@ -149,7 +149,7 @@
149149
}
150150

151151
&.selected {
152-
background-color: transparentize(#cccc, 0.5);
152+
background-color: rgba(#cccc, 0.5);
153153
}
154154

155155
&.highlight {
@@ -196,10 +196,10 @@
196196

197197
@keyframes show {
198198
0% {
199-
opacity: 0%;
199+
opacity: 0;
200200
}
201201

202202
100% {
203-
opacity: 100%;
203+
opacity: 1;
204204
}
205205
}

src/components/index.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,12 +72,12 @@ $cubic: cubic-bezier(0.25, 0.46, 0.45, 0.94);
7272

7373
@keyframes show {
7474
0% {
75-
opacity: 0%;
75+
opacity: 0;
7676
transform: scale(0.95);
7777
}
7878

7979
100% {
80-
opacity: 100%;
80+
opacity: 1;
8181
transform: scale(1);
8282
}
8383
}

src/components/index.vue

Lines changed: 18 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
>
4141
<XIcon />
4242
</span>
43-
<Menu
43+
<MenuComponent
4444
v-if="menuActive"
4545
:data="menuData"
4646
:flip="flipMenu"
@@ -49,30 +49,31 @@
4949
:on-close="handleMenuClose"
5050
:menu-style="computedMenuStyle"
5151
>
52-
<template v-for="slot in Object.keys($slots)" #[slot]="scope">
53-
<slot :name="slot" v-bind="scope" />
52+
<template
53+
v-for="slot in Object.keys($slots)"
54+
#[slot]="scope"
55+
>
56+
<slot
57+
:name="slot"
58+
v-bind="scope"
59+
/>
5460
</template>
55-
</Menu>
61+
</MenuComponent>
5662
</div>
5763
</div>
5864
</template>
5965

6066
<script lang="ts">
67+
import "focus-visible";
6168
import {
62-
defineComponent,
63-
onMounted,
64-
ref,
65-
unref,
66-
computed,
67-
nextTick,
68-
onUnmounted,
69+
computed, defineComponent, nextTick, onMounted, onUnmounted, ref,
70+
unref
6971
} from "vue";
70-
import Menu from "./Menu.vue";
71-
import XIcon from "./icons/XIcon.vue";
72-
import MenuIcon from "./icons/MenuIcon.vue";
7372
import utils from "../utils";
73+
import MenuIcon from "./icons/MenuIcon.vue";
74+
import XIcon from "./icons/XIcon.vue";
75+
import MenuComponent from "./Menu.vue";
7476
import Props from "./props";
75-
import "focus-visible";
7677
7778
interface Position {
7879
left: number;
@@ -81,9 +82,9 @@ interface Position {
8182
export default defineComponent({
8283
name: "FloatMenu",
8384
components: {
84-
Menu,
85-
XIcon,
8685
MenuIcon,
86+
MenuComponent,
87+
XIcon,
8788
},
8889
props: Props,
8990
setup(props, { slots }) {

0 commit comments

Comments
 (0)