Go to file
FairyEver 736a8ea521 fix: svg size bug 2022-02-10 16:10:46 +08:00
.vscode chore: vsc theme 2022-01-12 21:01:37 +08:00
d2 fix: svg size bug 2022-02-10 16:10:46 +08:00
public feat: vite init 2021-08-16 09:02:40 +08:00
src chore: some changes 2022-01-13 16:25:35 +08:00
.gitignore feat: components.d.ts 2021-09-01 15:31:59 +08:00
README.md refactor: code 2022-01-13 14:05:01 +08:00
index.html feat: layout dashboard 2021-11-13 22:01:23 +08:00
jsconfig.json feat: jsconfig.json 2021-10-27 22:51:25 +08:00
package-lock.json build: update 2022-02-07 09:13:02 +08:00
package.json build: update vite-plugin-svg-icons 2022-02-10 15:42:33 +08:00
postcss.config.js feat: add tailwindcss 2021-10-21 14:42:13 +08:00
tailwind.config.js feat: update tailwind.config.js 2021-12-22 19:22:04 +08:00
vite.config.js build: update vite-plugin-svg-icons 2022-02-10 15:42:33 +08:00
yarn.lock build: update vite-plugin-svg-icons 2022-02-10 15:42:33 +08:00

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...

  1. update setting
"vetur.grammar.customBlocks": {
  "route": "json"
}
  1. Run the command in vscode

Vetur: Generate grammar from vetur.grammar.customBlocks

  1. Restart VS Code to get syntax highlighting for custom blocks.