Commit 66b561695728ce909e7b8327691ff974de35144d

Authored by nebv
1 parent 67df9b8c

chore: change menu icon

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
... ... @@ -133,7 +133,7 @@ yarn build # 打包
133 133  
134 134 yarn build:no-cache # 打包,执行之前会先删除缓存
135 135  
136   -yarn report # 生成构建包表预览
  136 +yarn report # 生成构建包表预览
137 137 ```
138 138  
139 139 ### 格式化
... ...
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
... ... @@ -9,7 +9,7 @@ export default {
9 9 component: PAGE_LAYOUT_COMPONENT,
10 10 redirect: '/comp/basic',
11 11 meta: {
12   - icon: 'ant-design:home-outlined',
  12 + icon: 'ant-design:table-outlined',
13 13 title: '组件',
14 14 },
15 15 },
... ...
src/router/routes/modules/demo/feat.ts
... ... @@ -9,7 +9,7 @@ export default {
9 9 component: PAGE_LAYOUT_COMPONENT,
10 10 redirect: '/feat/tabs',
11 11 meta: {
12   - icon: 'ant-design:home-outlined',
  12 + icon: 'ic:outline-featured-play-list',
13 13 title: 'Feat',
14 14 },
15 15 },
... ...
src/router/routes/modules/demo/iframe.ts
... ... @@ -10,7 +10,7 @@ export default {
10 10 component: PAGE_LAYOUT_COMPONENT,
11 11 redirect: '/frame/antv',
12 12 meta: {
13   - icon: 'ant-design:home-outlined',
  13 + icon: 'mdi:page-next-outline',
14 14 title: '外部页面',
15 15 },
16 16 },
... ...
src/router/routes/modules/demo/permission.ts
... ... @@ -10,7 +10,7 @@ export default {
10 10 component: PAGE_LAYOUT_COMPONENT,
11 11 redirect: '/permission/front',
12 12 meta: {
13   - icon: 'ant-design:home-outlined',
  13 + icon: 'carbon:user-role',
14 14 title: '权限管理',
15 15 },
16 16 },
... ...
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 }
... ...