修复暗黑模式兼容

This commit is contained in:
whyour 2021-03-18 20:11:34 +08:00
parent d238850b35
commit a2510d6763
3 changed files with 20 additions and 6 deletions

View File

@ -7,6 +7,9 @@ import {
} from '@ant-design/icons';
export default defineConfig({
antd: {
compact: true,
},
hash: true,
layout: false,
locale: {},

View File

@ -73,8 +73,6 @@ export default {
pathname: '/',
},
fixSiderbar: true,
navTheme: 'light',
primaryColor: '#1890ff',
contentWidth: 'Fixed',
splitMenus: false,
logo: logo,

View File

@ -66,11 +66,24 @@ const Password = () => {
height: '100vh',
}}
>
<Form onFinish={handleOk} style={{ padding: 20, background: '#fff', height: 'calc(100vh - 96px)' }}>
<Form.Item name="username" rules={[{ required: true, message: '请输入用户名' }]} hasFeedback style={{width:300}}>
<Input placeholder="用户名" autoFocus/>
<Form
onFinish={handleOk}
style={{ padding: 20, height: 'calc(100vh - 96px)' }}
>
<Form.Item
name="username"
rules={[{ required: true, message: '请输入用户名' }]}
hasFeedback
style={{ width: 300 }}
>
<Input placeholder="用户名" autoFocus />
</Form.Item>
<Form.Item name="password" rules={[{ required: true, message: '请输入密码' }]} hasFeedback style={{width:300}}>
<Form.Item
name="password"
rules={[{ required: true, message: '请输入密码' }]}
hasFeedback
style={{ width: 300 }}
>
<Input type="password" placeholder="密码" />
</Form.Item>
<Button type="primary" htmlType="submit">