- Layout: screen 模式下约束 body/main 高度,恢复内容区内部滚动(原来内容把根撑高被裁切) - Layout: contentOffset=88,滚动区从页头下方开始,内容不再从悬浮搜索框下穿过 - 页头改回通栏 60px(contained 只包页身);资料卡头像恢复 64px 图标 + 品牌底色 - 详情导航条左右撑开(返回 / 面包屑),不再挤在左侧 - 侧栏菜单:行高 39、字重 500、圆角 8、CSS chevron、项间距 4px - 服务面板去掉多余分隔线与外边距,恢复原高度
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.