-
Notifications
You must be signed in to change notification settings - Fork 949
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
32 changed files
with
1,095 additions
and
286 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,93 @@ | ||
import { resultSuccess } from '../_util' | ||
|
||
const menuList = (() => { | ||
const result: any[] = [ | ||
{ | ||
label: 'Dashboard', | ||
key: 'dashboard', | ||
type: 1, | ||
subtitle:'dashboard', | ||
openType:1, | ||
auth:'dashboard', | ||
path:'/dashboard', | ||
children: [ | ||
{ | ||
label: '主控台', | ||
key: 'console', | ||
type: 1, | ||
subtitle:'console', | ||
openType:1, | ||
auth:'console', | ||
path:'/dashboard/console', | ||
}, | ||
{ | ||
label: '工作台', | ||
key: 'workplace', | ||
type: 1, | ||
subtitle:'workplace', | ||
openType:1, | ||
auth:'workplace', | ||
path:'/dashboard/workplace', | ||
} | ||
] | ||
}, | ||
{ | ||
label: '表单管理', | ||
key: 'form', | ||
type: 1, | ||
subtitle:'form', | ||
openType:1, | ||
auth:'form', | ||
path:'/form', | ||
children: [ | ||
{ | ||
label: '基础表单', | ||
key: 'basic-form', | ||
type: 1, | ||
subtitle:'basic-form', | ||
openType:1, | ||
auth:'basic-form', | ||
path:'/form/basic-form', | ||
}, | ||
{ | ||
label: '分步表单', | ||
key: 'step-form', | ||
type: 1, | ||
subtitle:'step-form', | ||
openType:1, | ||
auth:'step-form', | ||
path:'/form/step-form', | ||
}, | ||
{ | ||
label: '表单详情', | ||
key: 'detail', | ||
type: 1, | ||
subtitle:'detail', | ||
openType:1, | ||
auth:'detail', | ||
path:'/form/detail', | ||
} | ||
] | ||
} | ||
] | ||
|
||
return result | ||
}); | ||
|
||
|
||
export default [ | ||
{ | ||
url: '/api/menu/list', | ||
timeout: 1000, | ||
method: 'get', | ||
response: () => { | ||
const list = menuList() | ||
return resultSuccess({ | ||
list | ||
} | ||
); | ||
}, | ||
} | ||
] | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"name": "naive-ui-admin", | ||
"version": "1.3", | ||
"version": "1.4", | ||
"author": { | ||
"name": "Ahjung", | ||
"email": "[email protected]", | ||
|
@@ -80,9 +80,9 @@ | |
"stylelint-scss": "^3.19.0", | ||
"tailwindcss": "^2.2.4", | ||
"typescript": "^4.3.2", | ||
"vite": "^2.4.2", | ||
"vite": "2.3.6", | ||
"vite-plugin-html": "^2.0.7", | ||
"vite-plugin-mock": "^2.9.1", | ||
"vite-plugin-mock": "^2.9.3", | ||
"vite-plugin-style-import": "^1.0.1", | ||
"vue-eslint-parser": "^7.8.0" | ||
}, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,5 @@ | ||
export { default as BasicTable } from './src/Table.vue'; | ||
export { default as TableAction } from './src/components/TableAction.vue'; | ||
export * from './src/types/table'; | ||
export * from './src/types/tableAction'; | ||
|
Oops, something went wrong.