9 changed files with 114 additions and 91 deletions
@ -1,7 +1,10 @@ |
|||
export { default as BasicForm } from './src/BasicForm.vue'; |
|||
import BasicFormLib from './src/BasicForm.vue'; |
|||
import { withInstall } from '../util'; |
|||
|
|||
export * from './src/types/form'; |
|||
export * from './src/types/formItem'; |
|||
|
|||
export { useComponentRegister } from './src/hooks/useComponentRegister'; |
|||
export { useForm } from './src/hooks/useForm'; |
|||
|
|||
export const BasicForm = withInstall(BasicFormLib); |
|||
|
|||
@ -1,24 +1,33 @@ |
|||
import type { MenuModule } from '/@/router/types.d'; |
|||
|
|||
const menu: MenuModule = { |
|||
orderNo: 10, |
|||
menu: { |
|||
name: 'routes.dashboard.dashboard', |
|||
path: '/dashboard', |
|||
children: [ |
|||
{ |
|||
path: '/workbench', |
|||
name: 'routes.dashboard.workbench', |
|||
}, |
|||
{ |
|||
path: '/analysis', |
|||
name: 'routes.dashboard.analysis', |
|||
}, |
|||
{ |
|||
path: '/welcome', |
|||
name: 'routes.dashboard.welcome', |
|||
}, |
|||
], |
|||
const menu: MenuModule[] = [ |
|||
{ |
|||
orderNo: 0, |
|||
menu: { |
|||
path: '/dashboard/welcome', |
|||
name: 'routes.dashboard.welcome', |
|||
}, |
|||
}, |
|||
}; |
|||
{ |
|||
orderNo: 10, |
|||
menu: { |
|||
name: 'routes.dashboard.dashboard', |
|||
path: '/dashboard', |
|||
children: [ |
|||
{ |
|||
path: '/workbench', |
|||
name: 'routes.dashboard.workbench', |
|||
}, |
|||
{ |
|||
path: '/analysis', |
|||
name: 'routes.dashboard.analysis', |
|||
}, |
|||
// {
|
|||
// path: '/welcome',
|
|||
// name: 'routes.dashboard.welcome',
|
|||
// },
|
|||
], |
|||
}, |
|||
}, |
|||
]; |
|||
export default menu; |
|||
|
|||
Loading…
Reference in new issue