✨: 升级 vite 2.9.8
This commit is contained in:
parent
65f36a0a61
commit
6aebb174b5
@ -55,7 +55,7 @@
|
||||
"rimraf": "^3.0.2",
|
||||
"rollup": "^2.70.1",
|
||||
"typescript": "^4.6.3",
|
||||
"vite": "2.9.2"
|
||||
"vite": "2.9.8"
|
||||
},
|
||||
"files": [
|
||||
"lib",
|
||||
|
@ -5,7 +5,15 @@ export default {
|
||||
</script>
|
||||
|
||||
<script setup lang="ts">
|
||||
import { computed, ComputedRef, provide, Ref, ref, watch, WritableComputedRef } from "vue";
|
||||
import {
|
||||
computed,
|
||||
ComputedRef,
|
||||
provide,
|
||||
Ref,
|
||||
ref,
|
||||
watch,
|
||||
WritableComputedRef,
|
||||
} from "vue";
|
||||
import "./index.less";
|
||||
|
||||
export interface LayMenuProps {
|
||||
@ -41,7 +49,9 @@ const props = withDefaults(defineProps<LayMenuProps>(), {
|
||||
|
||||
const isTree: ComputedRef = computed(() => props.tree);
|
||||
const isCollapse: ComputedRef = computed(() => props.collapse);
|
||||
const isCollapseTransition: ComputedRef = computed(() => props.collapseTransition);
|
||||
const isCollapseTransition: ComputedRef = computed(
|
||||
() => props.collapseTransition
|
||||
);
|
||||
const oldOpenKeys: Ref = ref<string[]>(props.openKeys);
|
||||
|
||||
const openKeys = computed({
|
||||
|
@ -50,7 +50,7 @@ const openHandle = function () {
|
||||
if (!isCollapse.value) {
|
||||
let newOpenKeys = [...openKeys.value];
|
||||
if (openKeys.value.includes(props.id)) {
|
||||
newOpenKeys.splice(newOpenKeys.indexOf(props.id), 1)
|
||||
newOpenKeys.splice(newOpenKeys.indexOf(props.id), 1);
|
||||
} else {
|
||||
newOpenKeys.push(props.id);
|
||||
}
|
||||
|
@ -35,7 +35,7 @@
|
||||
"rimraf": "^3.0.2",
|
||||
"rollup": "^2.70.1",
|
||||
"typescript": "^4.6.3",
|
||||
"vite": "2.9.2",
|
||||
"vite": "2.9.8",
|
||||
"vite-plugin-md": "^0.12.4"
|
||||
},
|
||||
"files": [
|
||||
|
@ -14,7 +14,7 @@
|
||||
<ul>
|
||||
<a name="1-0-7"></a>
|
||||
<li>
|
||||
<h3>1.0.7 <span class="layui-badge-rim">2022-05-03</span></h3>
|
||||
<h3>1.0.7 <span class="layui-badge-rim">2022-05-09</span></h3>
|
||||
<ul>
|
||||
<li>[新增] menu 组件 changeOpenKeys 事件。</li>
|
||||
<li>[新增] menu 组件 changeSelectedKey 事件。</li>
|
||||
|
@ -39,7 +39,7 @@
|
||||
"rimraf": "^3.0.2",
|
||||
"rollup": "^2.70.1",
|
||||
"typescript": "^4.6.3",
|
||||
"vite": "2.9.2"
|
||||
"vite": "2.9.8"
|
||||
},
|
||||
"files": [
|
||||
"lib",
|
||||
|
@ -36,7 +36,7 @@
|
||||
"rimraf": "^3.0.2",
|
||||
"rollup": "^2.70.1",
|
||||
"typescript": "^4.6.3",
|
||||
"vite": "2.9.2"
|
||||
"vite": "2.9.8"
|
||||
},
|
||||
"files": [
|
||||
"lib",
|
||||
|
@ -67,7 +67,7 @@ importers:
|
||||
rollup: ^2.70.1
|
||||
typescript: ^4.6.3
|
||||
uuid: ^8.3.2
|
||||
vite: 2.9.2
|
||||
vite: 2.9.8
|
||||
vue-i18n: ^9.1.9
|
||||
dependencies:
|
||||
'@layui/icons-vue': link:../icons
|
||||
@ -87,14 +87,14 @@ importers:
|
||||
'@babel/preset-typescript': 7.16.7_@babel+core@7.17.9
|
||||
'@rollup/plugin-babel': 5.3.1_@babel+core@7.17.9+rollup@2.70.1
|
||||
'@types/node': 16.11.26
|
||||
'@vitejs/plugin-vue': 2.3.1_vite@2.9.2+vue@3.2.33
|
||||
'@vitejs/plugin-vue': 2.3.1_vite@2.9.8+vue@3.2.33
|
||||
'@vue/compiler-sfc': 3.2.33
|
||||
'@vue/server-renderer': 3.2.33_vue@3.2.33
|
||||
less: 4.1.2
|
||||
rimraf: 3.0.2
|
||||
rollup: 2.70.1
|
||||
typescript: 4.6.3
|
||||
vite: 2.9.2_less@4.1.2
|
||||
vite: 2.9.8_less@4.1.2
|
||||
|
||||
package/document:
|
||||
specifiers:
|
||||
@ -119,7 +119,7 @@ importers:
|
||||
rimraf: ^3.0.2
|
||||
rollup: ^2.70.1
|
||||
typescript: ^4.6.3
|
||||
vite: 2.9.2
|
||||
vite: 2.9.8
|
||||
vite-plugin-md: ^0.12.4
|
||||
vue-i18n: ^9.2.0-beta.34
|
||||
vue-router: ^4.0.12
|
||||
@ -138,7 +138,7 @@ importers:
|
||||
'@types/markdown-it-container': 2.0.5
|
||||
'@types/node': 16.11.26
|
||||
'@types/prettier': registry.npmmirror.com/@types/prettier/2.6.0
|
||||
'@vitejs/plugin-vue': 2.3.1_vite@2.9.2+vue@3.2.33
|
||||
'@vitejs/plugin-vue': 2.3.1_vite@2.9.8+vue@3.2.33
|
||||
'@vue/compiler-sfc': 3.2.33
|
||||
'@vue/server-renderer': 3.2.33_vue@3.2.33
|
||||
escape-html: 1.0.3
|
||||
@ -148,8 +148,8 @@ importers:
|
||||
rimraf: 3.0.2
|
||||
rollup: 2.70.1
|
||||
typescript: 4.6.3
|
||||
vite: 2.9.2_less@4.1.2
|
||||
vite-plugin-md: 0.12.4_vite@2.9.2
|
||||
vite: 2.9.8_less@4.1.2
|
||||
vite-plugin-md: 0.12.4_vite@2.9.8
|
||||
|
||||
package/icons:
|
||||
specifiers:
|
||||
@ -165,21 +165,21 @@ importers:
|
||||
rimraf: ^3.0.2
|
||||
rollup: ^2.70.1
|
||||
typescript: ^4.6.3
|
||||
vite: 2.9.2
|
||||
vite: 2.9.8
|
||||
devDependencies:
|
||||
'@babel/core': 7.17.8
|
||||
'@babel/preset-env': 7.16.11_@babel+core@7.17.8
|
||||
'@babel/preset-typescript': 7.16.7_@babel+core@7.17.8
|
||||
'@rollup/plugin-babel': 5.3.1_@babel+core@7.17.8+rollup@2.70.1
|
||||
'@types/node': 16.11.26
|
||||
'@vitejs/plugin-vue': 2.3.1_vite@2.9.2+vue@3.2.33
|
||||
'@vitejs/plugin-vue': 2.3.1_vite@2.9.8+vue@3.2.33
|
||||
'@vue/compiler-sfc': 3.2.33
|
||||
'@vue/server-renderer': 3.2.33_vue@3.2.33
|
||||
less: 4.1.2
|
||||
rimraf: 3.0.2
|
||||
rollup: 2.70.1
|
||||
typescript: 4.6.3
|
||||
vite: 2.9.2_less@4.1.2
|
||||
vite: 2.9.8_less@4.1.2
|
||||
|
||||
package/layer:
|
||||
specifiers:
|
||||
@ -195,21 +195,21 @@ importers:
|
||||
rimraf: ^3.0.2
|
||||
rollup: ^2.70.1
|
||||
typescript: ^4.6.3
|
||||
vite: 2.9.2
|
||||
vite: 2.9.8
|
||||
devDependencies:
|
||||
'@babel/core': 7.17.8
|
||||
'@babel/preset-env': 7.16.11_@babel+core@7.17.8
|
||||
'@babel/preset-typescript': 7.16.7_@babel+core@7.17.8
|
||||
'@rollup/plugin-babel': 5.3.1_@babel+core@7.17.8+rollup@2.70.1
|
||||
'@types/node': 16.11.26
|
||||
'@vitejs/plugin-vue': 2.3.1_vite@2.9.2+vue@3.2.33
|
||||
'@vitejs/plugin-vue': 2.3.1_vite@2.9.8+vue@3.2.33
|
||||
'@vue/compiler-sfc': 3.2.33
|
||||
'@vue/server-renderer': 3.2.33_vue@3.2.33
|
||||
less: 4.1.2
|
||||
rimraf: 3.0.2
|
||||
rollup: 2.70.1
|
||||
typescript: 4.6.3
|
||||
vite: 2.9.2_less@4.1.2
|
||||
vite: 2.9.8_less@4.1.2
|
||||
|
||||
packages:
|
||||
|
||||
@ -2922,14 +2922,14 @@ packages:
|
||||
eslint-visitor-keys: 3.3.0
|
||||
dev: true
|
||||
|
||||
/@vitejs/plugin-vue/2.3.1_vite@2.9.2+vue@3.2.33:
|
||||
/@vitejs/plugin-vue/2.3.1_vite@2.9.8+vue@3.2.33:
|
||||
resolution: {integrity: sha512-YNzBt8+jt6bSwpt7LP890U1UcTOIZZxfpE5WOJ638PNxSEKOqAi0+FSKS0nVeukfdZ0Ai/H7AFd6k3hayfGZqQ==}
|
||||
engines: {node: '>=12.0.0'}
|
||||
peerDependencies:
|
||||
vite: ^2.5.10
|
||||
vue: ^3.2.25
|
||||
dependencies:
|
||||
vite: 2.9.2_less@4.1.2
|
||||
vite: 2.9.8_less@4.1.2
|
||||
vue: 3.2.33
|
||||
dev: true
|
||||
|
||||
@ -4974,6 +4974,12 @@ packages:
|
||||
engines: {node: ^10 || ^12 || ^13.7 || ^14 || >=15.0.1}
|
||||
hasBin: true
|
||||
|
||||
/nanoid/3.3.4:
|
||||
resolution: {integrity: sha512-MqBkQh/OHTS2egovRtLk45wEyNXwF+cokD+1YPf9u5VfJiRdAiRwB2froX5Co9Rh20xs4siNPm8naNotSD6RBw==}
|
||||
engines: {node: ^10 || ^12 || ^13.7 || ^14 || >=15.0.1}
|
||||
hasBin: true
|
||||
dev: true
|
||||
|
||||
/natural-compare/1.4.0:
|
||||
resolution: {integrity: sha1-Sr6/7tdUHywnrPspvbvRXI1bpPc=}
|
||||
dev: true
|
||||
@ -5216,6 +5222,15 @@ packages:
|
||||
picocolors: 1.0.0
|
||||
source-map-js: 1.0.2
|
||||
|
||||
/postcss/8.4.13:
|
||||
resolution: {integrity: sha512-jtL6eTBrza5MPzy8oJLFuUscHDXTV5KcLlqAWHl5q5WYRfnNRGSmOZmOZ1T6Gy7A99mOZfqungmZMpMmCVJ8ZA==}
|
||||
engines: {node: ^10 || ^12 || >=14}
|
||||
dependencies:
|
||||
nanoid: 3.3.4
|
||||
picocolors: 1.0.0
|
||||
source-map-js: 1.0.2
|
||||
dev: true
|
||||
|
||||
/prelude-ls/1.2.1:
|
||||
resolution: {integrity: sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==}
|
||||
engines: {node: '>= 0.8.0'}
|
||||
@ -5858,7 +5873,7 @@ packages:
|
||||
spdx-expression-parse: 3.0.1
|
||||
dev: true
|
||||
|
||||
/vite-plugin-md/0.12.4_vite@2.9.2:
|
||||
/vite-plugin-md/0.12.4_vite@2.9.8:
|
||||
resolution: {integrity: sha512-qtkzpHAvdp/Zo/2ntmCpfph2JD4F0+tOl1vK3QVAZztpWyoO7Yi8Y2Dqu7Urrnh/fPH7PnIWlrrQy1XV/D92Pg==}
|
||||
peerDependencies:
|
||||
vite: ^2.0.0
|
||||
@ -5869,11 +5884,11 @@ packages:
|
||||
'@vue/runtime-core': 3.2.31
|
||||
gray-matter: 4.0.3
|
||||
markdown-it: 12.3.2
|
||||
vite: 2.9.2_less@4.1.2
|
||||
vite: 2.9.8_less@4.1.2
|
||||
dev: true
|
||||
|
||||
/vite/2.9.2_less@4.1.2:
|
||||
resolution: {integrity: sha512-ScbfYsiG1N/xE2TnZWYWJ8aOFBQovEl4VLU+0dktxqXvqdAvcTOEUM5YqwaBkmNHSHUGHLPd92tuXFQ35wDkVw==}
|
||||
/vite/2.9.8_less@4.1.2:
|
||||
resolution: {integrity: sha512-zsBGwn5UT3YS0NLSJ7hnR54+vUKfgzMUh/Z9CxF1YKEBVIe213+63jrFLmZphgGI5zXwQCSmqIdbPuE8NJywPw==}
|
||||
engines: {node: '>=12.2.0'}
|
||||
hasBin: true
|
||||
peerDependencies:
|
||||
@ -5890,7 +5905,7 @@ packages:
|
||||
dependencies:
|
||||
esbuild: 0.14.31
|
||||
less: 4.1.2
|
||||
postcss: 8.4.12
|
||||
postcss: 8.4.13
|
||||
resolve: 1.22.0
|
||||
rollup: 2.70.1
|
||||
optionalDependencies:
|
||||
|
Loading…
Reference in New Issue
Block a user