Skip to content

Commit 0d8cd55

Browse files
committed
feat: 统一主题色,Button link 也修改为主题色
1 parent f79672a commit 0d8cd55

3 files changed

Lines changed: 20 additions & 10 deletions

File tree

src/App.tsx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,11 @@ function App() {
6262
Popover: {
6363
titleMinWidth: 20,
6464
},
65+
Button: {
66+
colorLink: systemSet.colorPrimary,
67+
colorLinkActive: systemSet.colorPrimary,
68+
colorLinkHover: systemSet.colorPrimary,
69+
}
6570
}
6671
}}
6772
tooltip={{ trigger: ['hover', 'focus'] }}

src/pages/Login.tsx

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -146,12 +146,15 @@ function Login() {
146146
noStyle>
147147
<Checkbox>{t('login.Remember password', { defaultValue: '记住密码' })}</Checkbox>
148148
</Form.Item>
149-
<a onClick={(e) => {
150-
e.preventDefault()
151-
navigate('/reset-password')
152-
}}>
149+
<Button
150+
size='small'
151+
type='link'
152+
onClick={() => {
153+
navigate('/reset-password')
154+
}}
155+
>
153156
{t('login.Forgot password', { defaultValue: '忘记密码' })}
154-
</a>
157+
</Button>
155158
</div>
156159
</>
157160
</Activity>

src/pages/ResetPassword.tsx

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -165,12 +165,14 @@ function ResetPassword() {
165165
</Form.Item>
166166
<div className='flex items-center justify-between mb-6'>
167167
<div></div>
168-
<a onClick={(e) => {
169-
e.preventDefault()
170-
navigate('/login')
171-
}}>
168+
<Button
169+
size='small'
170+
type='link'
171+
onClick={() => {
172+
navigate('/login')
173+
}}>
172174
{t('resetPassword.Go to login', { defaultValue: '返回登录' })}
173-
</a>
175+
</Button>
174176
</div>
175177
<Form.Item>
176178
<Button type='primary' htmlType='submit' block size='large' loading={loading}>

0 commit comments

Comments
 (0)