v0.16.2: 后台 UI 大气化(控件 36px/圆角 8/表格单元格内边距放大/头部 60px/内容区加宽留白)、登录页大输入框+语言与月亮太阳主题按钮、右上角去角色 Tag、权限页 MCP/API 合并为单开关、Alert message→title 弃用清理

This commit is contained in:
bigcode
2026-11-05 02:39:42 +08:00
parent 1cefdecfe0
commit 50394a51be
7 changed files with 90 additions and 62 deletions
+19 -2
View File
@@ -51,7 +51,24 @@ import { createCache, StyleProvider, extractStyle } from "@ant-design/cssinjs";
/** # 成员变量 与 admin.tsx 完全一致的主题配置(改动后必须重新烘焙)
* cssVar.key 固定为 "dusun":变量作用域类名确定,烘焙 CSS 与运行时 DOM 一致 **/
const THEME = { token: { colorPrimary: "#1677ff", fontSize: 16 }, cssVar: { key: "dusun" } };
const THEME = {
token: {
colorPrimary: "#1677ff",
fontSize: 16,
controlHeight: 36,
borderRadius: 8,
},
components: {
Table: {
cellPaddingBlock: 15,
cellPaddingInline: 18,
cellPaddingBlockSM: 12,
cellPaddingInlineSM: 14,
headerSplitColor: "transparent",
},
},
cssVar: { key: "dusun" },
};
/** # 组件 覆盖后台全部 AntD 组件的样例树(每个组件至少渲染一次以注册其样式) **/
function Showcase() {
@@ -175,7 +192,7 @@ function Showcase() {
defaultExpandAll
treeData={[{ title: "分组", key: "g", children: [{ title: "子项", key: "c" }] }]}
/>
<Alert type="info" showIcon message="提示" style={{ marginTop: 8 }} />
<Alert type="info" showIcon title="提示" style={{ marginTop: 8 }} />
<Pagination size="small" total={50} style={{ marginTop: 8 }} />
</Layout.Content>
<Layout.Footer>F</Layout.Footer>