Commit 66b561695728ce909e7b8327691ff974de35144d
1 parent
67df9b8c
chore: change menu icon
Showing
8 changed files
with
22 additions
and
14 deletions
Too many changes to show.
To preserve performance only 8 of 9 files are displayed.
.github/pull_request_template.md
... | ... | @@ -17,7 +17,7 @@ |
17 | 17 | |
18 | 18 | ### `Checklist` |
19 | 19 | |
20 | -> ℹ️ Check all checkboxes - this will indicate that you have done everything in accordance with the rules in [CONTRIBUTING](https://github.com/vuejs/awesome-vue/blob/master/.github/contributing.md). | |
20 | +> ℹ️ Check all checkboxes - this will indicate that you have done everything in accordance with the rules in [CONTRIBUTING](contributing.md). | |
21 | 21 | |
22 | 22 | > 👉 _Put an `x` in the boxes that apply._ |
23 | 23 | ... | ... |
README.md
src/components/Menu/src/useOpenKeys.ts
... | ... | @@ -29,16 +29,13 @@ export function useOpenKeys( |
29 | 29 | |
30 | 30 | function handleOpenChange(openKeys: string[]) { |
31 | 31 | const rootSubMenuKeys: string[] = []; |
32 | - for (const menu of unref(menus)) { | |
33 | - const { children, path } = menu; | |
32 | + for (const { children, path } of unref(menus)) { | |
34 | 33 | if (children && children.length > 0) { |
35 | 34 | rootSubMenuKeys.push(path); |
36 | 35 | } |
37 | 36 | } |
38 | - | |
39 | 37 | if (!menuStore.getCollapsedState || !unref(isAppMenu)) { |
40 | 38 | const latestOpenKey = openKeys.find((key) => menuState.openKeys.indexOf(key) === -1); |
41 | - | |
42 | 39 | if (rootSubMenuKeys.indexOf(latestOpenKey as string) === -1) { |
43 | 40 | menuState.openKeys = openKeys; |
44 | 41 | } else { | ... | ... |
src/router/routes/modules/demo/comp.ts
src/router/routes/modules/demo/feat.ts
src/router/routes/modules/demo/iframe.ts
src/router/routes/modules/demo/permission.ts
tsconfig.json
... | ... | @@ -14,13 +14,24 @@ |
14 | 14 | "noUnusedLocals": true, |
15 | 15 | "noUnusedParameters": true, |
16 | 16 | "experimentalDecorators": true, |
17 | - "lib": ["dom", "esnext"], | |
17 | + "lib": [ | |
18 | + "dom", | |
19 | + "esnext" | |
20 | + ], | |
18 | 21 | "incremental": true, |
19 | 22 | "skipLibCheck": true, |
20 | 23 | "paths": { |
21 | - "/@/*": ["src/*"], | |
22 | - "/@design/": ["src/design/index.less"] | |
24 | + "/@/*": [ | |
25 | + "src/*" | |
26 | + ], | |
27 | + "/@design/": [ | |
28 | + "src/design/index.less" | |
29 | + ] | |
23 | 30 | } |
24 | 31 | }, |
25 | - "exclude": ["node_modules", "dist"] | |
32 | + "exclude": [ | |
33 | + "node_modules", | |
34 | + "dist", | |
35 | + "**/*.js" | |
36 | + ] | |
26 | 37 | } | ... | ... |