- 原来的横向 Tabs 换成库里的 Menu,左侧固定导航、右侧面板 - 首页管理收成一组:侧边栏 / 内容卡片 / 页头 三个子项,页头从顶层移入 - 页头、资料仍需手动保存,保存/撤销按钮留在各自面板底部 - 窄屏(<=860px)导航折到内容上方 - 后台内容区宽度不变(1340),导航列 190px + 24px 间距
React + TypeScript + Vite
This template provides a minimal setup to get React working in Vite with HMR and some Oxlint rules.
Currently, two official plugins are available:
- @vitejs/plugin-react uses Oxc
- @vitejs/plugin-react-swc uses SWC
React Compiler
The React Compiler is not enabled on this template because of its impact on dev & build performances. To add it, see this documentation.
Expanding the Oxlint configuration
If you are developing a production application, we recommend enabling type-aware lint rules by installing oxlint-tsgolint and editing .oxlintrc.json:
{
"$schema": "./node_modules/oxlint/configuration_schema.json",
"plugins": ["react", "typescript", "oxc"],
"options": {
"typeAware": true
},
"rules": {
"react/rules-of-hooks": "error",
"react/only-export-components": ["warn", { "allowConstantExport": true }]
}
}
See the Oxlint rules documentation for the full list of rules and categories.