Skip to content

Commit ae6d904

Browse files
committed
docs: add changelog
1 parent 89b7abc commit ae6d904

File tree

22 files changed

+123
-162
lines changed

22 files changed

+123
-162
lines changed

Diff for: .eslintrc.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module.exports = {
22
extends: [require.resolve('@umijs/fabric/dist/eslint')],
33
rules: {
4-
"@typescript-eslint/consistent-type-imports": "off",
5-
}
4+
'@typescript-eslint/consistent-type-imports': 'off',
5+
},
66
};

Diff for: docs/changelog.en-US.md

+14-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,17 @@
1-
## @ant-design/pro-components@2.6.15
1+
## @ant-design/pro-components@2.6.17
2+
3+
`2023-09-06`
4+
5+
- fix(layout): appList item click preventDefault and stopPropagation. [9b3cd65](https://github.com/ant-design/pro-components/commit/9b3cd65)
6+
- fix(layout): fix menu title center error. [904a89f](https://github.com/ant-design/pro-components/commit/904a89f)
7+
- fix(form): fix datepicker format (#7622). [#7622](https://github.com/ant-design/pro-components/pull/#7622) [@SummyGitHub](https://github.com/SummyGitHub)
8+
- fix(form):更新 DrawerForm resize 参数默认值&文档描述 (#7621). [#7621](https://github.com/ant-design/pro-components/pull/#7621) [@LengYXin](https://github.com/LengYXin)
9+
- fix(form): dependency 支持 colSize (#7611). [#7611](https://github.com/ant-design/pro-components/pull/#7611) [@yiyi17](https://github.com/yiyi17)
10+
- fix(form): fix marginBlockEnd no use marginLG error. [6e5f384](https://github.com/ant-design/pro-components/commit/6e5f384)
11+
- fix(form): fix formList containerClassName and containerStyle no work error. [7a2c9e0](https://github.com/ant-design/pro-components/commit/7a2c9e0)
12+
- fix(table): sortConfig 值为 undefined 时与默认值{}不一致,会导致翻页时再次触发 request 请求 (#7616). [#7616](https://github.com/ant-design/pro-components/pull/#7616) [@caronchen](https://github.com/caronchen)
13+
14+
## @ant-design/pro-components@2.6.15
215

316
`2023-08-29`
417

Diff for: docs/changelog.md

+14-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,17 @@
1-
## @ant-design/pro-components@2.6.15
1+
## @ant-design/pro-components@2.6.17
2+
3+
`2023-09-06`
4+
5+
- fix(layout): appList item click preventDefault and stopPropagation. [9b3cd65](https://github.com/ant-design/pro-components/commit/9b3cd65)
6+
- fix(layout): fix menu title center error. [904a89f](https://github.com/ant-design/pro-components/commit/904a89f)
7+
- fix(form): fix datepicker format (#7622). [#7622](https://github.com/ant-design/pro-components/pull/#7622) [@SummyGitHub](https://github.com/SummyGitHub)
8+
- fix(form):更新 DrawerForm resize 参数默认值&文档描述 (#7621). [#7621](https://github.com/ant-design/pro-components/pull/#7621) [@LengYXin](https://github.com/LengYXin)
9+
- fix(form): dependency 支持 colSize (#7611). [#7611](https://github.com/ant-design/pro-components/pull/#7611) [@yiyi17](https://github.com/yiyi17)
10+
- fix(form): fix marginBlockEnd no use marginLG error. [6e5f384](https://github.com/ant-design/pro-components/commit/6e5f384)
11+
- fix(form): fix formList containerClassName and containerStyle no work error. [7a2c9e0](https://github.com/ant-design/pro-components/commit/7a2c9e0)
12+
- fix(table): sortConfig 值为 undefined 时与默认值{}不一致,会导致翻页时再次触发 request 请求 (#7616). [#7616](https://github.com/ant-design/pro-components/pull/#7616) [@caronchen](https://github.com/caronchen)
13+
14+
## @ant-design/pro-components@2.6.15
215

316
`2023-08-29`
417

Diff for: docs/components/schema.$tab-api.md

+1
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,5 @@ order: 0
44
---
55

66
## 代码演示
7+
78
<code src="./valueType.tsx" title="schema 表单"></code>

Diff for: packages/card/CHANGELOG.md

+1-6
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.5.15](https://github.com/ant-design/pro-components/compare/@ant-design/[email protected]...@ant-design/[email protected]) (2023-09-06)
76

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

10-
11-
12-
13-
149
## [2.5.14](https://github.com/ant-design/pro-components/compare/@ant-design/[email protected]...@ant-design/[email protected]) (2023-08-29)
1510

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

Diff for: packages/components/CHANGELOG.md

+2-8
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,12 @@
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.17](https://github.com/ant-design/pro-components/compare/@ant-design/[email protected]...@ant-design/[email protected]) (2023-09-06)
76

8-
97
### Bug Fixes
108

11-
* remove stringify ([25d2c42](https://github.com/ant-design/pro-components/commit/25d2c42a0bda673a0b40b5ae56bd0a852998ecd1))
12-
13-
14-
15-
9+
- remove stringify ([25d2c42](https://github.com/ant-design/pro-components/commit/25d2c42a0bda673a0b40b5ae56bd0a852998ecd1))
1610

1711
## [2.6.16](https://github.com/ant-design/pro-components/compare/@ant-design/[email protected]...@ant-design/[email protected]) (2023-08-30)
1812

Diff for: packages/descriptions/CHANGELOG.md

+2-8
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,12 @@
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.5.3](https://github.com/ant-design/pro-components/compare/@ant-design/[email protected]...@ant-design/[email protected]) (2023-09-06)
76

8-
97
### Bug Fixes
108

11-
* remove stringify ([25d2c42](https://github.com/ant-design/pro-components/commit/25d2c42a0bda673a0b40b5ae56bd0a852998ecd1))
12-
13-
14-
15-
9+
- remove stringify ([25d2c42](https://github.com/ant-design/pro-components/commit/25d2c42a0bda673a0b40b5ae56bd0a852998ecd1))
1610

1711
## [2.5.2](https://github.com/ant-design/pro-components/compare/@ant-design/[email protected]...@ant-design/[email protected]) (2023-08-30)
1812

Diff for: packages/field/CHANGELOG.md

+3-9
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,13 @@
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.12.4](https://github.com/ant-design/pro-components/compare/@ant-design/[email protected]...@ant-design/[email protected]) (2023-09-06)
76

8-
97
### Bug Fixes
108

11-
* **form:** fix datepicker format ([#7622](https://github.com/ant-design/pro-components/issues/7622)) ([a6aa0db](https://github.com/ant-design/pro-components/commit/a6aa0dbb0e24b3ca1ffa5ce364e90cba4db5369c))
12-
* remove stringify ([25d2c42](https://github.com/ant-design/pro-components/commit/25d2c42a0bda673a0b40b5ae56bd0a852998ecd1))
13-
14-
15-
16-
9+
- **form:** fix datepicker format ([#7622](https://github.com/ant-design/pro-components/issues/7622)) ([a6aa0db](https://github.com/ant-design/pro-components/commit/a6aa0dbb0e24b3ca1ffa5ce364e90cba4db5369c))
10+
- remove stringify ([25d2c42](https://github.com/ant-design/pro-components/commit/25d2c42a0bda673a0b40b5ae56bd0a852998ecd1))
1711

1812
## [2.12.3](https://github.com/ant-design/pro-components/compare/@ant-design/[email protected]...@ant-design/[email protected]) (2023-08-30)
1913

Diff for: packages/form/CHANGELOG.md

+5-11
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,15 @@
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.18.5](https://github.com/ant-design/pro-components/compare/@ant-design/[email protected]...@ant-design/[email protected]) (2023-09-06)
76

8-
97
### Bug Fixes
108

11-
* **form:** dependency 支持 colSize ([#7611](https://github.com/ant-design/pro-components/issues/7611)) ([27436cc](https://github.com/ant-design/pro-components/commit/27436cc6351cfaa535d1ec9aef1f74e567ef44d7))
12-
* **form:** fix formList containerClassName and containerStyle no work error ([7a2c9e0](https://github.com/ant-design/pro-components/commit/7a2c9e0ddeb580b618f87773ff336c382be5f38a))
13-
* **form:** fix marginBlockEnd no use marginLG error ([6e5f384](https://github.com/ant-design/pro-components/commit/6e5f384aa9663e5859cfbceb0d328099ebf36fc8))
14-
* remove stringify ([25d2c42](https://github.com/ant-design/pro-components/commit/25d2c42a0bda673a0b40b5ae56bd0a852998ecd1))
15-
16-
17-
18-
9+
- **form:** dependency 支持 colSize ([#7611](https://github.com/ant-design/pro-components/issues/7611)) ([27436cc](https://github.com/ant-design/pro-components/commit/27436cc6351cfaa535d1ec9aef1f74e567ef44d7))
10+
- **form:** fix formList containerClassName and containerStyle no work error ([7a2c9e0](https://github.com/ant-design/pro-components/commit/7a2c9e0ddeb580b618f87773ff336c382be5f38a))
11+
- **form:** fix marginBlockEnd no use marginLG error ([6e5f384](https://github.com/ant-design/pro-components/commit/6e5f384aa9663e5859cfbceb0d328099ebf36fc8))
12+
- remove stringify ([25d2c42](https://github.com/ant-design/pro-components/commit/25d2c42a0bda673a0b40b5ae56bd0a852998ecd1))
1913

2014
## [2.18.4](https://github.com/ant-design/pro-components/compare/@ant-design/[email protected]...@ant-design/[email protected]) (2023-08-30)
2115

Diff for: packages/form/src/components/ModalForm/index.en-US.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ DrawerForm combines Drawer and ProForm to reduce tedious state management.
6161
| --- | --- | --- | --- |
6262
| trigger | The dom used to trigger the opening of the Modal, typically the button | `ReactNode` | - |
6363
| open | whether to open | `boolean` | - |
64-
| resize | whether to resize | `{onResize,maxWidth,minWidth}` \| `Boolean` | { onResize: () => { }, maxWidth: window.innerWidth * 0.8, minWidth: 300} |
64+
| resize | whether to resize | `{onResize,maxWidth,minWidth}` \| `Boolean` | { onResize: () => { }, maxWidth: window.innerWidth \* 0.8, minWidth: 300} |
6565
| onOpenChange | trigger when open changes | `(open:boolean)=>void` | - |
6666
| drawerProps | Drawer's props, used in the same way as [antd](https://ant.design/components/drawer/). Note: 'open' is not supported, please use the global open | [props](https://ant.design/components/drawer/#API) | - |
6767
| title | The title of the drawer | `ReactNode` | - |

Diff for: packages/form/src/components/ModalForm/index.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ DrawerForm 组合了 Drawer 和 ProForm 可以减少繁琐的状态管理。
5959
| 参数 | 说明 | 类型 | 默认值 |
6060
| --- | --- | --- | --- |
6161
| trigger | 用于触发 Modal 打开的 dom,一般是 button | `ReactNode` | - |
62-
| resize | 是否调整大小 | `{onResize,maxWidth,minWidth}` \| `Boolean` | { onResize: () => { }, maxWidth: window.innerWidth * 0.8, minWidth: 300} |
62+
| resize | 是否调整大小 | `{onResize,maxWidth,minWidth}` \| `Boolean` | { onResize: () => { }, maxWidth: window.innerWidth \* 0.8, minWidth: 300} |
6363
| onOpenChange | open 改变时触发 | `(open:boolean)=>void` | - |
6464
| drawerProps | Drawer 的 props,使用方式与 [antd](https://ant.design/components/drawer-cn/) 相同。注意:不支持 'visible',请使用全局的 visible | [props](https://ant.design/components/drawer-cn/#API) | - |
6565
| title | 抽屉的标题 | `ReactNode` | - |

Diff for: packages/form/src/layouts/DrawerForm/index.tsx

+8-8
Original file line numberDiff line numberDiff line change
@@ -110,10 +110,10 @@ function DrawerForm<T = Record<string, any>, U = Record<string, any>>({
110110
);
111111
const resizeInfo: CustomizeResizeType = React.useMemo(() => {
112112
const defaultResize: CustomizeResizeType = {
113-
onResize: () => { },
113+
onResize: () => {},
114114
maxWidth: window.innerWidth * 0.8,
115115
minWidth: 300,
116-
}
116+
};
117117
if (typeof resize === 'boolean') {
118118
if (resize) {
119119
return defaultResize;
@@ -125,7 +125,7 @@ function DrawerForm<T = Record<string, any>, U = Record<string, any>>({
125125
onResize: resize?.onResize ?? defaultResize.onResize,
126126
maxWidth: resize?.maxWidth ?? defaultResize.maxWidth,
127127
minWidth: resize?.minWidth ?? defaultResize.minWidth,
128-
})
128+
});
129129
}, [resize]);
130130

131131
const context = useContext(ConfigProvider.ConfigContext);
@@ -334,11 +334,11 @@ function DrawerForm<T = Record<string, any>, U = Record<string, any>>({
334334
className={
335335
resize
336336
? classNames(getCls('sidebar-dragger'), hashId, {
337-
[getCls('sidebar-dragger-min-disabled')]:
338-
drawerWidth === resizeInfo?.minWidth,
339-
[getCls('sidebar-dragger-max-disabled')]:
340-
drawerWidth === resizeInfo?.maxWidth,
341-
})
337+
[getCls('sidebar-dragger-min-disabled')]:
338+
drawerWidth === resizeInfo?.minWidth,
339+
[getCls('sidebar-dragger-max-disabled')]:
340+
drawerWidth === resizeInfo?.maxWidth,
341+
})
342342
: null
343343
}
344344
onMouseDown={(e) => {

Diff for: packages/form/src/layouts/QueryFilter/index.tsx

+8-8
Original file line numberDiff line numberDiff line change
@@ -193,20 +193,20 @@ export type BaseQueryFilterProps = Omit<
193193
const flatMapItems = (
194194
items: React.ReactNode[],
195195
ignoreRules?: boolean,
196-
form?:FormInstance
196+
form?: FormInstance,
197197
): React.ReactNode[] => {
198198
return items?.flatMap((item: any) => {
199199
if (item?.type.displayName === 'ProForm-Group' && !item.props?.title) {
200200
return item.props.children;
201201
}
202-
if(item?.type.displayName === 'ProFormDependency' && !item.props?.title) {
202+
if (item?.type.displayName === 'ProFormDependency' && !item.props?.title) {
203203
const values = item.props.name.reduce((current: any, next: any) => {
204204
return {
205205
...current,
206-
[next]: form?.getFieldValue(next)
207-
}
208-
},{})
209-
return item.props.children(values)
206+
[next]: form?.getFieldValue(next),
207+
};
208+
}, {});
209+
return item.props.children(values);
210210
}
211211
if (ignoreRules && React.isValidElement(item)) {
212212
return React.cloneElement(item, {
@@ -283,7 +283,7 @@ const QueryFilterContent: React.FC<{
283283
showLength,
284284
searchGutter,
285285
showHiddenNum,
286-
form
286+
form,
287287
} = props;
288288

289289
const submitter = useMemo(() => {
@@ -323,7 +323,7 @@ const QueryFilterContent: React.FC<{
323323
let currentSpan = 0;
324324

325325
// 处理过,包含是否需要隐藏的 数组
326-
const processedList = flatMapItems(items, props.ignoreRules,form).map(
326+
const processedList = flatMapItems(items, props.ignoreRules, form).map(
327327
(
328328
item,
329329
index,

Diff for: packages/layout/CHANGELOG.md

+4-10
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,14 @@
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
## [7.16.12](https://github.com/ant-design/pro-components/compare/@ant-design/[email protected]...@ant-design/[email protected]) (2023-09-06)
76

8-
97
### Bug Fixes
108

11-
* **form:** fix formList containerClassName and containerStyle no work error ([7a2c9e0](https://github.com/ant-design/pro-components/commit/7a2c9e0ddeb580b618f87773ff336c382be5f38a))
12-
* **layout:** appList item click preventDefault and stopPropagation ([9b3cd65](https://github.com/ant-design/pro-components/commit/9b3cd656cacbf9890745161f7dde3531e6090f10))
13-
* **layout:** fix menu title center error ([904a89f](https://github.com/ant-design/pro-components/commit/904a89f705712007dbf62d134a8cc9d6a090d9ce))
14-
15-
16-
17-
9+
- **form:** fix formList containerClassName and containerStyle no work error ([7a2c9e0](https://github.com/ant-design/pro-components/commit/7a2c9e0ddeb580b618f87773ff336c382be5f38a))
10+
- **layout:** appList item click preventDefault and stopPropagation ([9b3cd65](https://github.com/ant-design/pro-components/commit/9b3cd656cacbf9890745161f7dde3531e6090f10))
11+
- **layout:** fix menu title center error ([904a89f](https://github.com/ant-design/pro-components/commit/904a89f705712007dbf62d134a8cc9d6a090d9ce))
1812

1913
## [7.16.11](https://github.com/ant-design/pro-components/compare/@ant-design/[email protected]...@ant-design/[email protected]) (2023-08-29)
2014

Diff for: packages/list/CHANGELOG.md

+2-8
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,12 @@
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.5.17](https://github.com/ant-design/pro-components/compare/@ant-design/[email protected]...@ant-design/[email protected]) (2023-09-06)
76

8-
97
### Bug Fixes
108

11-
* remove stringify ([25d2c42](https://github.com/ant-design/pro-components/commit/25d2c42a0bda673a0b40b5ae56bd0a852998ecd1))
12-
13-
14-
15-
9+
- remove stringify ([25d2c42](https://github.com/ant-design/pro-components/commit/25d2c42a0bda673a0b40b5ae56bd0a852998ecd1))
1610

1711
## [2.5.16](https://github.com/ant-design/pro-components/compare/@ant-design/[email protected]...@ant-design/[email protected]) (2023-08-30)
1812

Diff for: packages/provider/CHANGELOG.md

+1-6
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.12.3](https://github.com/ant-design/pro-components/compare/@ant-design/[email protected]...@ant-design/[email protected]) (2023-09-06)
76

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

10-
11-
12-
13-
149
## [2.12.2](https://github.com/ant-design/pro-components/compare/@ant-design/[email protected]...@ant-design/[email protected]) (2023-08-28)
1510

1611
### Bug Fixes

Diff for: packages/table/CHANGELOG.md

+3-9
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,13 @@
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.12.2](https://github.com/ant-design/pro-components/compare/@ant-design/[email protected]...@ant-design/[email protected]) (2023-09-06)
76

8-
97
### Bug Fixes
108

11-
* **table:** sortConfig值为undefined时与默认值{}不一致,会导致翻页时再次触发request请求 ([#7616](https://github.com/ant-design/pro-components/issues/7616)) ([c51be62](https://github.com/ant-design/pro-components/commit/c51be62a7045abdee73467985c9d9a61835751ee))
12-
* remove stringify ([25d2c42](https://github.com/ant-design/pro-components/commit/25d2c42a0bda673a0b40b5ae56bd0a852998ecd1))
13-
14-
15-
16-
9+
- **table:** sortConfig 值为 undefined 时与默认值{}不一致,会导致翻页时再次触发 request 请求 ([#7616](https://github.com/ant-design/pro-components/issues/7616)) ([c51be62](https://github.com/ant-design/pro-components/commit/c51be62a7045abdee73467985c9d9a61835751ee))
10+
- remove stringify ([25d2c42](https://github.com/ant-design/pro-components/commit/25d2c42a0bda673a0b40b5ae56bd0a852998ecd1))
1711

1812
## [3.12.1](https://github.com/ant-design/pro-components/compare/@ant-design/[email protected]...@ant-design/[email protected]) (2023-08-30)
1913

Diff for: packages/utils/CHANGELOG.md

+2-8
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,12 @@
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.14.3](https://github.com/ant-design/pro-components/compare/@ant-design/[email protected]...@ant-design/[email protected]) (2023-09-06)
76

8-
97
### Bug Fixes
108

11-
* **form:** fix marginBlockEnd no use marginLG error ([6e5f384](https://github.com/ant-design/pro-components/commit/6e5f384aa9663e5859cfbceb0d328099ebf36fc8))
12-
13-
14-
15-
9+
- **form:** fix marginBlockEnd no use marginLG error ([6e5f384](https://github.com/ant-design/pro-components/commit/6e5f384aa9663e5859cfbceb0d328099ebf36fc8))
1610

1711
## [2.14.2](https://github.com/ant-design/pro-components/compare/@ant-design/[email protected]...@ant-design/[email protected]) (2023-08-29)
1812

0 commit comments

Comments
 (0)