Browse Source

feat: set global form variant to filled style (#11650)

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
claude/understanding-codebase-structure
afc163 6 months ago
committed by GitHub
parent
commit
48190535c4
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 1
      config/config.ts
  2. 6
      src/app.tsx
  3. 8
      src/pages/user/login/__snapshots__/login.test.tsx.snap

1
config/config.ts

@ -117,6 +117,7 @@ export default defineConfig({
antd: {
appConfig: {},
configProvider: {
variant: 'filled',
theme: {
token: {
fontFamily: 'AlibabaSans, sans-serif',

6
src/app.tsx

@ -76,9 +76,9 @@ export const layout: RunTimeLayoutConfig = ({
<AvatarDropdown>{avatarChildren}</AvatarDropdown>
),
},
waterMarkProps: {
content: initialState?.currentUser?.name,
},
// waterMarkProps: {
// content: initialState?.currentUser?.name,
// },
footerRender: () => <Footer />,
onPageChange: () => {
const { location } = history;

8
src/pages/user/login/__snapshots__/login.test.tsx.snap

@ -201,7 +201,7 @@ exports[`Login Page should login success 1`] = `
class="ant-form-item-control-input-content"
>
<span
class="ant-input-affix-wrapper ant-input-affix-wrapper-lg ant-input-outlined ant-input-status-success css-var-_r_9_ ant-input-css-var"
class="ant-input-affix-wrapper ant-input-affix-wrapper-lg ant-input-filled ant-input-status-success css-var-_r_9_ ant-input-css-var"
>
<span
class="ant-input-prefix"
@ -285,7 +285,7 @@ exports[`Login Page should login success 1`] = `
class="ant-form-item-control-input-content"
>
<span
class="ant-input-affix-wrapper ant-input-affix-wrapper-lg ant-input-outlined ant-input-status-success ant-input-password ant-input-password-large css-var-_r_9_ ant-input-css-var"
class="ant-input-affix-wrapper ant-input-affix-wrapper-lg ant-input-filled ant-input-status-success ant-input-password ant-input-password-large css-var-_r_9_ ant-input-css-var"
>
<span
class="ant-input-prefix"
@ -744,7 +744,7 @@ exports[`Login Page should show login form 1`] = `
class="ant-form-item-control-input-content"
>
<span
class="ant-input-affix-wrapper ant-input-affix-wrapper-lg ant-input-outlined css-var-_r_0_ ant-input-css-var"
class="ant-input-affix-wrapper ant-input-affix-wrapper-lg ant-input-filled css-var-_r_0_ ant-input-css-var"
>
<span
class="ant-input-prefix"
@ -828,7 +828,7 @@ exports[`Login Page should show login form 1`] = `
class="ant-form-item-control-input-content"
>
<span
class="ant-input-affix-wrapper ant-input-affix-wrapper-lg ant-input-outlined ant-input-password ant-input-password-large css-var-_r_0_ ant-input-css-var"
class="ant-input-affix-wrapper ant-input-affix-wrapper-lg ant-input-filled ant-input-password ant-input-password-large css-var-_r_0_ ant-input-css-var"
>
<span
class="ant-input-prefix"

Loading…
Cancel
Save