|
|
||
|---|---|---|
| .vscode | ||
| d2 | ||
| public | ||
| src | ||
| .gitignore | ||
| README.md | ||
| index.html | ||
| jsconfig.json | ||
| package-lock.json | ||
| package.json | ||
| postcss.config.js | ||
| tailwind.config.js | ||
| vite.config.js | ||
README.md
D2Admin V2
TODO
- svg 尺寸参数
- svg 图标模式
- Markdown 代码高亮
- Markdown 代码复制
- 文件获取自身路径
- 基于文件路径的 component name
- 基于菜单和数据加当前页面计算应该展开的菜单层级
- 分离自带页面的菜单数据便于后期灵活组合
- Menu 类增加 index 方法用于设置一组菜单的首页
- 页面向 layout 传递参数
- 根据路由数据生成菜单的辅助函数
Tips
Route Meta
<route>
{
"meta": {
"d2admin.menu.title": "Menu Title"
}
}
</route>
layout
| key | type |
|---|---|
| d2admin.layout.dashboard.customBody | boolean |
menu
| key | type |
|---|---|
| d2admin.menu.title | string |
Syntax Highlighting <route>
To enable syntax highlighting <route> in VS Code using Vetur's Custom Code Blocks add the following snippet to your preferences...
- update setting
"vetur.grammar.customBlocks": {
"route": "json"
}
- Run the command in vscode
Vetur: Generate grammar from vetur.grammar.customBlocks
- Restart VS Code to get syntax highlighting for custom blocks.