Skip to content

Commit

Permalink
perf(projects): perf page manage_menu style
Browse files Browse the repository at this point in the history
  • Loading branch information
honghuangdc committed Jan 28, 2024
1 parent 87d65d3 commit 0aa75c0
Showing 1 changed file with 12 additions and 5 deletions.
17 changes: 12 additions & 5 deletions src/views/manage/menu/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ const { columns, filteredColumns, data, loading, pagination, getData } = useTabl
{
key: 'index',
title: $t('common.index'),
width: 120,
render: (_, index) => {
return <span>{getIndex(index)}</span>;
},
Expand All @@ -48,7 +49,7 @@ const { columns, filteredColumns, data, loading, pagination, getData } = useTabl
key: 'menuType',
title: $t('page.manage.menu.menuType'),
align: 'center',
width: 100,
width: 120,
render: row => {
const tagMap: Record<Api.Common.EnableStatus, NaiveUI.ThemeColor> = {
1: 'default',
Expand All @@ -63,6 +64,8 @@ const { columns, filteredColumns, data, loading, pagination, getData } = useTabl
{
key: 'menuName',
title: $t('page.manage.menu.menuName'),
align: 'center',
minWidth: 120,
render: row => {
const { i18nKey, menuName } = row;
Expand Down Expand Up @@ -90,17 +93,21 @@ const { columns, filteredColumns, data, loading, pagination, getData } = useTabl
},
{
key: 'routeName',
title: $t('page.manage.menu.routeName')
title: $t('page.manage.menu.routeName'),
align: 'center',
minWidth: 120
},
{
key: 'routePath',
title: $t('page.manage.menu.routePath')
title: $t('page.manage.menu.routePath'),
align: 'center',
minWidth: 120
},
{
key: 'status',
title: $t('page.manage.menu.menuStatus'),
align: 'center',
width: 100,
width: 120,
render: row => {
if (row.status === null) {
return null;
Expand Down Expand Up @@ -138,7 +145,7 @@ const { columns, filteredColumns, data, loading, pagination, getData } = useTabl
key: 'order',
title: $t('page.manage.menu.order'),
align: 'center',
width: 64
width: 80
},
{
key: 'operate',
Expand Down

1 comment on commit 0aa75c0

@vercel
Copy link

@vercel vercel bot commented on 0aa75c0 Jan 28, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

soybean-admin – ./

soybean-admin-soybeanjs.vercel.app
soybean-admin-eta.vercel.app
soybean-admin-git-main-soybeanjs.vercel.app

Please sign in to comment.