Skip to content

Commit ad90863

Browse files
committed
🎉 release: 更新版本至 2.8.5,修复 layout 收起 menu 的文字问题
1 parent 402e25f commit ad90863

File tree

36 files changed

+265
-298
lines changed

36 files changed

+265
-298
lines changed

.dumirc.ts

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,15 @@ const pkgList = readdirSync(join(__dirname, 'packages')).filter(
1010
(pkg) => pkg.charAt(0) !== '.' && !headPkgList.includes(pkg),
1111
);
1212

13-
const alias = pkgList.reduce((pre, pkg) => {
14-
pre[`@ant-design/pro-${pkg}`] = join(__dirname, 'packages', pkg, 'src');
15-
return {
16-
...pre,
17-
};
18-
}, {} as Record<string, string>);
13+
const alias = pkgList.reduce(
14+
(pre, pkg) => {
15+
pre[`@ant-design/pro-${pkg}`] = join(__dirname, 'packages', pkg, 'src');
16+
return {
17+
...pre,
18+
};
19+
},
20+
{} as Record<string, string>,
21+
);
1922

2023
console.log(`🌼 alias list \n${chalk.blue(Object.keys(alias).join('\n'))}`);
2124

docs/changelog.en-US.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
## @ant-design/pro-components@2.8.5
2+
3+
`2025-02-12`
4+
5+
- 修复 layout 收起 menu 的文字还存在的问题。
6+
17
## @ant-design/pro-components@2.8.3
28

39
`2025-01-06`

docs/changelog.md

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,17 @@
1+
## @ant-design/pro-components@2.8.5
2+
3+
`2025-02-12`
4+
5+
- 修复 layout 收起 menu 的文字还存在的问题。
6+
17
## @ant-design/pro-components@2.8.4
28

39
`2025-01-18`
410

5-
- cleanup: replace omit.js & remove some duplicate util (#8965) (2 天前) <𝑾𝒖𝒙𝒉>
6-
- fix: remove Table deadCode (#8966) (2 天前) <chenliandong>
7-
- chore: try fix test (#8974) (4 天前) <𝑾𝒖𝒙𝒉>
8-
- fix: FooterToolbar supports SSR (#8969) (4 天前) <谭真>
11+
- cleanup: replace omit.js & remove some duplicate util (#8965) <𝑾𝒖𝒙𝒉>
12+
- fix: remove Table deadCode (#8966) <chenliandong>
13+
- chore: try fix test (#8974) <𝑾𝒖𝒙𝒉>
14+
- fix: FooterToolbar supports SSR (#8969) <谭真>
915

1016
## @ant-design/pro-components@2.8.3
1117

docs/components/valueType.tsx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -198,12 +198,12 @@ export default () => {
198198
],
199199
}
200200
: valueType === 'divider'
201-
? {
202-
style: {
203-
width: '200px',
204-
},
205-
}
206-
: undefined,
201+
? {
202+
style: {
203+
width: '200px',
204+
},
205+
}
206+
: undefined,
207207
formItemProps: {
208208
rules: [
209209
{

packages/card/CHANGELOG.md

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,11 @@
11
# Change Log
22

3-
All notable changes to this project will be documented in this file.
4-
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
3+
All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
54

65
## [2.9.5](https://github.com/ant-design/pro-components/compare/@ant-design/[email protected]...@ant-design/[email protected]) (2025-02-12)
76

87
**Note:** Version bump only for package @ant-design/pro-card
98

10-
11-
12-
13-
149
## [2.9.4](https://github.com/ant-design/pro-components/compare/@ant-design/[email protected]...@ant-design/[email protected]) (2025-01-18)
1510

1611
**Note:** Version bump only for package @ant-design/pro-card

packages/components/CHANGELOG.md

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,11 @@
11
# Change Log
22

3-
All notable changes to this project will be documented in this file.
4-
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
3+
All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
54

65
## [2.8.5](https://github.com/ant-design/pro-components/compare/@ant-design/[email protected]...@ant-design/[email protected]) (2025-02-12)
76

87
**Note:** Version bump only for package @ant-design/pro-components
98

10-
11-
12-
13-
149
## [2.8.4](https://github.com/ant-design/pro-components/compare/@ant-design/[email protected]...@ant-design/[email protected]) (2025-01-18)
1510

1611
**Note:** Version bump only for package @ant-design/pro-components

packages/descriptions/CHANGELOG.md

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,11 @@
11
# Change Log
22

3-
All notable changes to this project will be documented in this file.
4-
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
3+
All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
54

65
## [2.6.5](https://github.com/ant-design/pro-components/compare/@ant-design/[email protected]...@ant-design/[email protected]) (2025-02-12)
76

87
**Note:** Version bump only for package @ant-design/pro-descriptions
98

10-
11-
12-
13-
149
## [2.6.4](https://github.com/ant-design/pro-components/compare/@ant-design/[email protected]...@ant-design/[email protected]) (2025-01-18)
1510

1611
**Note:** Version bump only for package @ant-design/pro-descriptions

packages/field/CHANGELOG.md

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,11 @@
11
# Change Log
22

3-
All notable changes to this project will be documented in this file.
4-
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
3+
All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
54

65
## [3.0.2](https://github.com/ant-design/pro-components/compare/@ant-design/[email protected]...@ant-design/[email protected]) (2025-02-12)
76

87
**Note:** Version bump only for package @ant-design/pro-field
98

10-
11-
12-
13-
149
## [3.0.1](https://github.com/ant-design/pro-components/compare/@ant-design/[email protected]...@ant-design/[email protected]) (2025-01-18)
1510

1611
**Note:** Version bump only for package @ant-design/pro-field

packages/field/src/components/Switch/index.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@ const FieldSwitch: ProFieldFC<{ text: boolean; fieldProps?: SwitchProps }> = (
2323
const dom = useMemo(() => {
2424
if (text === undefined || text === null || `${text}`.length < 1) return '-';
2525
return text
26-
? fieldProps?.checkedChildren ?? intl.getMessage('switch.open', '打开')
27-
: fieldProps?.unCheckedChildren ??
28-
intl.getMessage('switch.close', '关闭');
26+
? (fieldProps?.checkedChildren ?? intl.getMessage('switch.open', '打开'))
27+
: (fieldProps?.unCheckedChildren ??
28+
intl.getMessage('switch.close', '关闭'));
2929
// eslint-disable-next-line react-hooks/exhaustive-deps
3030
}, [fieldProps?.checkedChildren, fieldProps?.unCheckedChildren, text]);
3131

packages/field/src/index.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -633,8 +633,8 @@ const ProFieldComponent: React.ForwardRefRenderFunction<
633633

634634
const renderedDom = defaultRenderText(
635635
mode === 'edit'
636-
? fieldProps?.value ?? text ?? ''
637-
: text ?? fieldProps?.value ?? '',
636+
? (fieldProps?.value ?? text ?? '')
637+
: (text ?? fieldProps?.value ?? ''),
638638
valueType || 'text',
639639
omitUndefined({
640640
ref,
@@ -655,13 +655,13 @@ const ProFieldComponent: React.ForwardRefRenderFunction<
655655
: undefined,
656656
placeholder: renderFormItem
657657
? undefined
658-
: rest?.placeholder ?? fieldProps?.placeholder,
658+
: (rest?.placeholder ?? fieldProps?.placeholder),
659659
fieldProps: pickProProps(
660660
omitUndefined({
661661
...fieldProps,
662662
placeholder: renderFormItem
663663
? undefined
664-
: rest?.placeholder ?? fieldProps?.placeholder,
664+
: (rest?.placeholder ?? fieldProps?.placeholder),
665665
}),
666666
),
667667
}),

0 commit comments

Comments
 (0)