feat(web): 输入控件与按钮放大、设置卡片收窄加阴影、设置页增加取消按钮
- 主题 components:Input/Select/InputNumber/DatePicker/Button 文本 16px、高度 40px(小号按钮 32px);表格/菜单等正文保持 14px - 设置卡片 max-width 720→560px,四周柔和阴影 - 修改密码页保存按钮右侧、修改资料页重置按钮右侧增加取消按钮, 点击回首页
This commit is contained in:
@@ -116,6 +116,7 @@ const PasswordSettingsPage = () => {
|
||||
<Button type="primary" htmlType="submit" loading={submitting}>
|
||||
保存修改
|
||||
</Button>
|
||||
<Button onClick={() => navigate('/')}>取消</Button>
|
||||
</div>
|
||||
</Form>
|
||||
</div>
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
import { useMemo, useState } from 'react';
|
||||
import { useNavigate } from 'react-router-dom';
|
||||
import { App as AntdApp, Avatar, Button, Form, Input } from 'antd';
|
||||
import axios from 'axios';
|
||||
import { authApi } from '@/services/auth';
|
||||
@@ -15,6 +16,7 @@ interface ProfileFormValues {
|
||||
*/
|
||||
const ProfileSettingsPage = () => {
|
||||
const { message } = AntdApp.useApp();
|
||||
const navigate = useNavigate();
|
||||
const { session, applyProfileUpdate } = useSession();
|
||||
const [form] = Form.useForm<ProfileFormValues>();
|
||||
const [saving, setSaving] = useState(false);
|
||||
@@ -100,6 +102,7 @@ const ProfileSettingsPage = () => {
|
||||
保存修改
|
||||
</Button>
|
||||
<Button onClick={handleReset}>重 置</Button>
|
||||
<Button onClick={() => navigate('/')}>取消</Button>
|
||||
</div>
|
||||
</Form>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user