mirror of
https://github.com/vbenjs/vben-admin-thin-next.git
synced 2025-02-03 02:18:40 +08:00
chore: change menu icon
This commit is contained in:
parent
67df9b8c93
commit
66b5616957
2
.github/pull_request_template.md
vendored
2
.github/pull_request_template.md
vendored
@ -17,7 +17,7 @@
|
|||||||
|
|
||||||
### `Checklist`
|
### `Checklist`
|
||||||
|
|
||||||
> ℹ️ 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).
|
> ℹ️ Check all checkboxes - this will indicate that you have done everything in accordance with the rules in [CONTRIBUTING](contributing.md).
|
||||||
|
|
||||||
> 👉 _Put an `x` in the boxes that apply._
|
> 👉 _Put an `x` in the boxes that apply._
|
||||||
|
|
||||||
|
@ -133,7 +133,7 @@ yarn build # 打包
|
|||||||
|
|
||||||
yarn build:no-cache # 打包,执行之前会先删除缓存
|
yarn build:no-cache # 打包,执行之前会先删除缓存
|
||||||
|
|
||||||
yarn report # 生成构建包表表预览
|
yarn report # 生成构建包报表预览
|
||||||
```
|
```
|
||||||
|
|
||||||
### 格式化
|
### 格式化
|
||||||
|
@ -29,16 +29,13 @@ export function useOpenKeys(
|
|||||||
|
|
||||||
function handleOpenChange(openKeys: string[]) {
|
function handleOpenChange(openKeys: string[]) {
|
||||||
const rootSubMenuKeys: string[] = [];
|
const rootSubMenuKeys: string[] = [];
|
||||||
for (const menu of unref(menus)) {
|
for (const { children, path } of unref(menus)) {
|
||||||
const { children, path } = menu;
|
|
||||||
if (children && children.length > 0) {
|
if (children && children.length > 0) {
|
||||||
rootSubMenuKeys.push(path);
|
rootSubMenuKeys.push(path);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!menuStore.getCollapsedState || !unref(isAppMenu)) {
|
if (!menuStore.getCollapsedState || !unref(isAppMenu)) {
|
||||||
const latestOpenKey = openKeys.find((key) => menuState.openKeys.indexOf(key) === -1);
|
const latestOpenKey = openKeys.find((key) => menuState.openKeys.indexOf(key) === -1);
|
||||||
|
|
||||||
if (rootSubMenuKeys.indexOf(latestOpenKey as string) === -1) {
|
if (rootSubMenuKeys.indexOf(latestOpenKey as string) === -1) {
|
||||||
menuState.openKeys = openKeys;
|
menuState.openKeys = openKeys;
|
||||||
} else {
|
} else {
|
||||||
|
@ -9,7 +9,7 @@ export default {
|
|||||||
component: PAGE_LAYOUT_COMPONENT,
|
component: PAGE_LAYOUT_COMPONENT,
|
||||||
redirect: '/comp/basic',
|
redirect: '/comp/basic',
|
||||||
meta: {
|
meta: {
|
||||||
icon: 'ant-design:home-outlined',
|
icon: 'ant-design:table-outlined',
|
||||||
title: '组件',
|
title: '组件',
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
@ -9,7 +9,7 @@ export default {
|
|||||||
component: PAGE_LAYOUT_COMPONENT,
|
component: PAGE_LAYOUT_COMPONENT,
|
||||||
redirect: '/feat/tabs',
|
redirect: '/feat/tabs',
|
||||||
meta: {
|
meta: {
|
||||||
icon: 'ant-design:home-outlined',
|
icon: 'ic:outline-featured-play-list',
|
||||||
title: 'Feat',
|
title: 'Feat',
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
@ -10,7 +10,7 @@ export default {
|
|||||||
component: PAGE_LAYOUT_COMPONENT,
|
component: PAGE_LAYOUT_COMPONENT,
|
||||||
redirect: '/frame/antv',
|
redirect: '/frame/antv',
|
||||||
meta: {
|
meta: {
|
||||||
icon: 'ant-design:home-outlined',
|
icon: 'mdi:page-next-outline',
|
||||||
title: '外部页面',
|
title: '外部页面',
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
@ -10,7 +10,7 @@ export default {
|
|||||||
component: PAGE_LAYOUT_COMPONENT,
|
component: PAGE_LAYOUT_COMPONENT,
|
||||||
redirect: '/permission/front',
|
redirect: '/permission/front',
|
||||||
meta: {
|
meta: {
|
||||||
icon: 'ant-design:home-outlined',
|
icon: 'carbon:user-role',
|
||||||
title: '权限管理',
|
title: '权限管理',
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
@ -14,13 +14,24 @@
|
|||||||
"noUnusedLocals": true,
|
"noUnusedLocals": true,
|
||||||
"noUnusedParameters": true,
|
"noUnusedParameters": true,
|
||||||
"experimentalDecorators": true,
|
"experimentalDecorators": true,
|
||||||
"lib": ["dom", "esnext"],
|
"lib": [
|
||||||
|
"dom",
|
||||||
|
"esnext"
|
||||||
|
],
|
||||||
"incremental": true,
|
"incremental": true,
|
||||||
"skipLibCheck": true,
|
"skipLibCheck": true,
|
||||||
"paths": {
|
"paths": {
|
||||||
"/@/*": ["src/*"],
|
"/@/*": [
|
||||||
"/@design/": ["src/design/index.less"]
|
"src/*"
|
||||||
|
],
|
||||||
|
"/@design/": [
|
||||||
|
"src/design/index.less"
|
||||||
|
]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"exclude": ["node_modules", "dist"]
|
"exclude": [
|
||||||
|
"node_modules",
|
||||||
|
"dist",
|
||||||
|
"**/*.js"
|
||||||
|
]
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user