feat: add default icon
This commit is contained in:
parent
3571f357cd
commit
5bb0d9f336
@ -49,7 +49,7 @@ const data = {
|
|||||||
title: '仪表盘',
|
title: '仪表盘',
|
||||||
type: 'page',
|
type: 'page',
|
||||||
path: '/dashboard',
|
path: '/dashboard',
|
||||||
icon: 'dashboard',
|
icon: 'DashboardOutlined',
|
||||||
template: 'page1',
|
template: 'page1',
|
||||||
sort: 20,
|
sort: 20,
|
||||||
},
|
},
|
||||||
@ -57,7 +57,7 @@ const data = {
|
|||||||
title: '数据',
|
title: '数据',
|
||||||
type: 'layout',
|
type: 'layout',
|
||||||
path: '/collections',
|
path: '/collections',
|
||||||
icon: 'dashboard',
|
icon: 'DatabaseOutlined',
|
||||||
template: 'SideMenuLayout',
|
template: 'SideMenuLayout',
|
||||||
sort: 30,
|
sort: 30,
|
||||||
children: [
|
children: [
|
||||||
@ -83,7 +83,7 @@ const data = {
|
|||||||
title: '用户',
|
title: '用户',
|
||||||
type: 'layout',
|
type: 'layout',
|
||||||
path: '/users',
|
path: '/users',
|
||||||
icon: 'dashboard',
|
icon: 'TeamOutlined',
|
||||||
template: 'SideMenuLayout',
|
template: 'SideMenuLayout',
|
||||||
sort: 70,
|
sort: 70,
|
||||||
children: [
|
children: [
|
||||||
@ -91,7 +91,7 @@ const data = {
|
|||||||
title: '用户管理',
|
title: '用户管理',
|
||||||
type: 'collection',
|
type: 'collection',
|
||||||
path: '/users/users',
|
path: '/users/users',
|
||||||
icon: 'dashboard',
|
icon: 'UserOutlined',
|
||||||
template: 'collection',
|
template: 'collection',
|
||||||
collection: 'users',
|
collection: 'users',
|
||||||
sort: 80,
|
sort: 80,
|
||||||
@ -102,7 +102,7 @@ const data = {
|
|||||||
title: '配置',
|
title: '配置',
|
||||||
type: 'layout',
|
type: 'layout',
|
||||||
path: '/settings',
|
path: '/settings',
|
||||||
icon: 'dashboard',
|
icon: 'SettingOutlined',
|
||||||
template: 'SideMenuLayout',
|
template: 'SideMenuLayout',
|
||||||
sort: 90,
|
sort: 90,
|
||||||
children: [
|
children: [
|
||||||
@ -111,7 +111,7 @@ const data = {
|
|||||||
type: 'collection',
|
type: 'collection',
|
||||||
collection: 'pages',
|
collection: 'pages',
|
||||||
path: '/settings/pages',
|
path: '/settings/pages',
|
||||||
icon: 'dashboard',
|
icon: 'MenuOutlined',
|
||||||
sort: 100,
|
sort: 100,
|
||||||
developerMode: true,
|
developerMode: true,
|
||||||
},
|
},
|
||||||
@ -120,7 +120,7 @@ const data = {
|
|||||||
type: 'collection',
|
type: 'collection',
|
||||||
collection: 'collections',
|
collection: 'collections',
|
||||||
path: '/settings/collections',
|
path: '/settings/collections',
|
||||||
icon: 'dashboard',
|
icon: 'TableOutlined',
|
||||||
sort: 110,
|
sort: 110,
|
||||||
},
|
},
|
||||||
]
|
]
|
||||||
@ -174,7 +174,7 @@ const data = {
|
|||||||
});
|
});
|
||||||
|
|
||||||
await database.getModel('users').create({
|
await database.getModel('users').create({
|
||||||
nickname: "admin",
|
nickname: "超级管理员",
|
||||||
password: "admin",
|
password: "admin",
|
||||||
username: "admin",
|
username: "admin",
|
||||||
token: "38979f07e1fca68fb3d2",
|
token: "38979f07e1fca68fb3d2",
|
||||||
|
@ -55,6 +55,7 @@ export default {
|
|||||||
type: 'virtual',
|
type: 'virtual',
|
||||||
name: 'icon',
|
name: 'icon',
|
||||||
title: '图标',
|
title: '图标',
|
||||||
|
defaultValue: 'TableOutlined',
|
||||||
component: {
|
component: {
|
||||||
type: 'string',
|
type: 'string',
|
||||||
showInTable: true,
|
showInTable: true,
|
||||||
|
Loading…
Reference in New Issue
Block a user