Skip to content

Commit

Permalink
💚 chore: format code (#8934)
Browse files Browse the repository at this point in the history
* chore: fix code lint

* style: format code, use `npm run lint`

* chore(deps): Upgrade dependencies to resolve unit testing task failures
  • Loading branch information
Wxh16144 authored Dec 20, 2024
1 parent e8f9029 commit 8fcfe79
Show file tree
Hide file tree
Showing 5 changed files with 94 additions and 19 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@
"@umijs/test": "^3.5.43",
"@umijs/test-utils": "^3.5.43",
"@umijs/utils": "^4.4.1",
"@vitest/coverage-istanbul": "^0.34.6",
"@vitest/coverage-istanbul": "^2.1.8",
"animated-scroll-to": "^2.3.0",
"antd": "^5.22.5",
"antd-style": "^3.7.1",
Expand Down
6 changes: 5 additions & 1 deletion packages/form/src/components/Select/index.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
import { runFunction } from '@ant-design/pro-utils';
import type { SelectProps } from 'antd';
import type { BaseOptionType, DefaultOptionType, RefSelectProps } from 'antd/lib/select';
import type {
BaseOptionType,
DefaultOptionType,
RefSelectProps,
} from 'antd/lib/select';
import React, { useContext } from 'react';
import FieldContext from '../../FieldContext';
import type {
Expand Down
10 changes: 4 additions & 6 deletions packages/layout/src/demos/customSider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -99,12 +99,10 @@ export default () => {
</div>,
];
}}
menuRender={(props, defaultDom) => (
<>
{console.log('defaultDom', defaultDom)}
{defaultDom}
</>
)}
menuRender={(props, defaultDom) => {
console.log('defaultDom', defaultDom);
return defaultDom;
}}
menuItemRender={(item, dom) => (
<div
onClick={() => {
Expand Down
4 changes: 2 additions & 2 deletions packages/provider/src/useStyle/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -131,8 +131,8 @@ export function useStyle(
nonce: csp?.nonce,
layer: {
name: 'antd-pro',
dependencies: ['antd']
}
dependencies: ['antd'],
},
},
() => styleFn(token as ProAliasToken),
),
Expand Down
Loading

0 comments on commit 8fcfe79

Please sign in to comment.