Skip to content

Commit 8fcfe79

Browse files
authored
💚 chore: format code (#8934)
* chore: fix code lint * style: format code, use `npm run lint` * chore(deps): Upgrade dependencies to resolve unit testing task failures
1 parent e8f9029 commit 8fcfe79

File tree

5 files changed

+94
-19
lines changed

5 files changed

+94
-19
lines changed

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@
9292
"@umijs/test": "^3.5.43",
9393
"@umijs/test-utils": "^3.5.43",
9494
"@umijs/utils": "^4.4.1",
95-
"@vitest/coverage-istanbul": "^0.34.6",
95+
"@vitest/coverage-istanbul": "^2.1.8",
9696
"animated-scroll-to": "^2.3.0",
9797
"antd": "^5.22.5",
9898
"antd-style": "^3.7.1",

packages/form/src/components/Select/index.tsx

+5-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
import { runFunction } from '@ant-design/pro-utils';
22
import type { SelectProps } from 'antd';
3-
import type { BaseOptionType, DefaultOptionType, RefSelectProps } from 'antd/lib/select';
3+
import type {
4+
BaseOptionType,
5+
DefaultOptionType,
6+
RefSelectProps,
7+
} from 'antd/lib/select';
48
import React, { useContext } from 'react';
59
import FieldContext from '../../FieldContext';
610
import type {

packages/layout/src/demos/customSider.tsx

+4-6
Original file line numberDiff line numberDiff line change
@@ -99,12 +99,10 @@ export default () => {
9999
</div>,
100100
];
101101
}}
102-
menuRender={(props, defaultDom) => (
103-
<>
104-
{console.log('defaultDom', defaultDom)}
105-
{defaultDom}
106-
</>
107-
)}
102+
menuRender={(props, defaultDom) => {
103+
console.log('defaultDom', defaultDom);
104+
return defaultDom;
105+
}}
108106
menuItemRender={(item, dom) => (
109107
<div
110108
onClick={() => {

packages/provider/src/useStyle/index.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -131,8 +131,8 @@ export function useStyle(
131131
nonce: csp?.nonce,
132132
layer: {
133133
name: 'antd-pro',
134-
dependencies: ['antd']
135-
}
134+
dependencies: ['antd'],
135+
},
136136
},
137137
() => styleFn(token as ProAliasToken),
138138
),

0 commit comments

Comments
 (0)