Procházet zdrojové kódy

chore: update deps

Vben před 4 roky
rodič
revize
f79cae63d9
3 změnil soubory, kde provedl 6 přidání a 6 odebrání
  1. 1 1
      package.json
  2. 1 1
      src/components/Tree/src/useTree.ts
  3. 4 4
      yarn.lock

+ 1 - 1
package.json

@@ -101,7 +101,7 @@
     "stylelint-order": "^4.1.0",
     "ts-node": "^9.1.1",
     "typescript": "4.2.2",
-    "vite": "^2.0.4",
+    "vite": "^2.0.5",
     "vite-plugin-compression": "^0.2.3",
     "vite-plugin-html": "^2.0.3",
     "vite-plugin-imagemin": "^0.2.9",

+ 1 - 1
src/components/Tree/src/useTree.ts

@@ -39,7 +39,7 @@ export function useTree(
     const res: (string | number)[] = [];
     const data = list || unref(treeDataRef) || [];
     for (let index = 0; index < data.length; index++) {
-      const item = data[index] as any;
+      const item = data[index];
 
       const { key: keyField, children: childrenField } = unref(getReplaceFields);
       const key = keyField ? item[keyField] : '';

+ 4 - 4
yarn.lock

@@ -8965,10 +8965,10 @@ vite-plugin-windicss@0.6.2:
     "@windicss/plugin-utils" "0.6.2"
     windicss "^2.2.0"
 
-vite@^2.0.4:
-  version "2.0.4"
-  resolved "https://registry.npmjs.org/vite/-/vite-2.0.4.tgz#063532a4139b59a067297d8ebb5960d450907a09"
-  integrity sha512-+PP89D7AKXFE4gps8c5+4eP5yXTh5qCogjdYX7iSsIxbLZAa26JoGSq6OLk0qdb/fqDh7gtJqGiLbG2V6NvkKQ==
+vite@^2.0.5:
+  version "2.0.5"
+  resolved "https://registry.npmjs.org/vite/-/vite-2.0.5.tgz#ac46857a3fa8686d077921e61bd48a986931df1d"
+  integrity sha512-QTgEDbq1WsTtr6j+++ewjhBFEk6c8v0xz4fb/OWJQKNYU8ZZtphOshwOqAlnarSstPBtWCBR0tsugXx6ajfoUg==
   dependencies:
     esbuild "^0.8.52"
     postcss "^8.2.1"