revert(web): 按钮恢复默认字号高度内边距,全局圆角调整为 10px
移除 Button 组件 token 覆盖(字体 14px、高度 34/26px、内边距 15/7px 恢复 antd 默认);--ant-border-radius 12→10px,与设置卡片 10px 一致。 输入类控件 16px/40px 保持不变。
This commit is contained in:
+4
-12
@@ -12,27 +12,19 @@ function App() {
|
||||
theme={{
|
||||
token: {
|
||||
colorPrimary: '#8b5cf6',
|
||||
// 全局圆角 12px,输入框/按钮/卡片等同步生效
|
||||
borderRadius: 12,
|
||||
// 全局正文字号 14px;输入类控件与按钮经 components 单独放大
|
||||
// 全局圆角 10px,输入框/按钮/卡片等同步生效
|
||||
borderRadius: 10,
|
||||
// 全局正文字号 14px;输入类控件经 components 单独放大
|
||||
fontSize: 14,
|
||||
controlHeight: 34,
|
||||
controlHeightSM: 26,
|
||||
},
|
||||
components: {
|
||||
// 文本框与按钮:文本 16px、高度同步加高;表格/菜单等正文不受影响
|
||||
// 文本框:文本 16px、高度同步加高;按钮与表格/菜单等保持全局默认
|
||||
Input: { fontSize: 16, controlHeight: 40 },
|
||||
Select: { fontSize: 16, controlHeight: 40 },
|
||||
InputNumber: { fontSize: 16, controlHeight: 40 },
|
||||
DatePicker: { fontSize: 16, controlHeight: 40 },
|
||||
Button: {
|
||||
fontSize: 16,
|
||||
controlHeight: 40,
|
||||
controlHeightSM: 32,
|
||||
// 横向内边距加大(默认 15/7),按钮更修长
|
||||
paddingInline: 20,
|
||||
paddingInlineSM: 14,
|
||||
},
|
||||
},
|
||||
}}
|
||||
>
|
||||
|
||||
Reference in New Issue
Block a user