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