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,7 +17,7 @@ | ||
17 | 17 | ||
18 | ### `Checklist` | 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 | > 👉 _Put an `x` in the boxes that apply._ | 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,16 +29,13 @@ export function useOpenKeys( | ||
29 | 29 | ||
30 | function handleOpenChange(openKeys: string[]) { | 30 | function handleOpenChange(openKeys: string[]) { |
31 | const rootSubMenuKeys: string[] = []; | 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 | if (children && children.length > 0) { | 33 | if (children && children.length > 0) { |
35 | rootSubMenuKeys.push(path); | 34 | rootSubMenuKeys.push(path); |
36 | } | 35 | } |
37 | } | 36 | } |
38 | - | ||
39 | if (!menuStore.getCollapsedState || !unref(isAppMenu)) { | 37 | if (!menuStore.getCollapsedState || !unref(isAppMenu)) { |
40 | const latestOpenKey = openKeys.find((key) => menuState.openKeys.indexOf(key) === -1); | 38 | const latestOpenKey = openKeys.find((key) => menuState.openKeys.indexOf(key) === -1); |
41 | - | ||
42 | if (rootSubMenuKeys.indexOf(latestOpenKey as string) === -1) { | 39 | if (rootSubMenuKeys.indexOf(latestOpenKey as string) === -1) { |
43 | menuState.openKeys = openKeys; | 40 | menuState.openKeys = openKeys; |
44 | } else { | 41 | } else { |
src/router/routes/modules/demo/comp.ts
@@ -9,7 +9,7 @@ export default { | @@ -9,7 +9,7 @@ export default { | ||
9 | component: PAGE_LAYOUT_COMPONENT, | 9 | component: PAGE_LAYOUT_COMPONENT, |
10 | redirect: '/comp/basic', | 10 | redirect: '/comp/basic', |
11 | meta: { | 11 | meta: { |
12 | - icon: 'ant-design:home-outlined', | 12 | + icon: 'ant-design:table-outlined', |
13 | title: '组件', | 13 | title: '组件', |
14 | }, | 14 | }, |
15 | }, | 15 | }, |
src/router/routes/modules/demo/feat.ts
@@ -9,7 +9,7 @@ export default { | @@ -9,7 +9,7 @@ export default { | ||
9 | component: PAGE_LAYOUT_COMPONENT, | 9 | component: PAGE_LAYOUT_COMPONENT, |
10 | redirect: '/feat/tabs', | 10 | redirect: '/feat/tabs', |
11 | meta: { | 11 | meta: { |
12 | - icon: 'ant-design:home-outlined', | 12 | + icon: 'ic:outline-featured-play-list', |
13 | title: 'Feat', | 13 | title: 'Feat', |
14 | }, | 14 | }, |
15 | }, | 15 | }, |
src/router/routes/modules/demo/iframe.ts
@@ -10,7 +10,7 @@ export default { | @@ -10,7 +10,7 @@ export default { | ||
10 | component: PAGE_LAYOUT_COMPONENT, | 10 | component: PAGE_LAYOUT_COMPONENT, |
11 | redirect: '/frame/antv', | 11 | redirect: '/frame/antv', |
12 | meta: { | 12 | meta: { |
13 | - icon: 'ant-design:home-outlined', | 13 | + icon: 'mdi:page-next-outline', |
14 | title: '外部页面', | 14 | title: '外部页面', |
15 | }, | 15 | }, |
16 | }, | 16 | }, |
src/router/routes/modules/demo/permission.ts
@@ -10,7 +10,7 @@ export default { | @@ -10,7 +10,7 @@ export default { | ||
10 | component: PAGE_LAYOUT_COMPONENT, | 10 | component: PAGE_LAYOUT_COMPONENT, |
11 | redirect: '/permission/front', | 11 | redirect: '/permission/front', |
12 | meta: { | 12 | meta: { |
13 | - icon: 'ant-design:home-outlined', | 13 | + icon: 'carbon:user-role', |
14 | title: '权限管理', | 14 | title: '权限管理', |
15 | }, | 15 | }, |
16 | }, | 16 | }, |
tsconfig.json
@@ -14,13 +14,24 @@ | @@ -14,13 +14,24 @@ | ||
14 | "noUnusedLocals": true, | 14 | "noUnusedLocals": true, |
15 | "noUnusedParameters": true, | 15 | "noUnusedParameters": true, |
16 | "experimentalDecorators": true, | 16 | "experimentalDecorators": true, |
17 | - "lib": ["dom", "esnext"], | 17 | + "lib": [ |
18 | + "dom", | ||
19 | + "esnext" | ||
20 | + ], | ||
18 | "incremental": true, | 21 | "incremental": true, |
19 | "skipLibCheck": true, | 22 | "skipLibCheck": true, |
20 | "paths": { | 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 | } |