mirror of
https://github.com/ant-design/pro-components.git
synced 2024-10-23 09:23:51 +08:00
docs: add changelog
This commit is contained in:
parent
89b7abc54d
commit
ae6d904567
@ -1,6 +1,6 @@
|
||||
module.exports = {
|
||||
extends: [require.resolve('@umijs/fabric/dist/eslint')],
|
||||
rules: {
|
||||
"@typescript-eslint/consistent-type-imports": "off",
|
||||
}
|
||||
'@typescript-eslint/consistent-type-imports': 'off',
|
||||
},
|
||||
};
|
||||
|
@ -1,4 +1,17 @@
|
||||
## @ant-design/pro-components@2.6.15
|
||||
## @ant-design/pro-components@2.6.17
|
||||
|
||||
`2023-09-06`
|
||||
|
||||
- fix(layout): appList item click preventDefault and stopPropagation. [9b3cd65](https://github.com/ant-design/pro-components/commit/9b3cd65)
|
||||
- fix(layout): fix menu title center error. [904a89f](https://github.com/ant-design/pro-components/commit/904a89f)
|
||||
- fix(form): fix datepicker format (#7622). [#7622](https://github.com/ant-design/pro-components/pull/#7622) [@SummyGitHub](https://github.com/SummyGitHub)
|
||||
- fix(form):更新 DrawerForm resize 参数默认值&文档描述 (#7621). [#7621](https://github.com/ant-design/pro-components/pull/#7621) [@LengYXin](https://github.com/LengYXin)
|
||||
- fix(form): dependency 支持 colSize (#7611). [#7611](https://github.com/ant-design/pro-components/pull/#7611) [@yiyi17](https://github.com/yiyi17)
|
||||
- fix(form): fix marginBlockEnd no use marginLG error. [6e5f384](https://github.com/ant-design/pro-components/commit/6e5f384)
|
||||
- fix(form): fix formList containerClassName and containerStyle no work error. [7a2c9e0](https://github.com/ant-design/pro-components/commit/7a2c9e0)
|
||||
- fix(table): sortConfig 值为 undefined 时与默认值{}不一致,会导致翻页时再次触发 request 请求 (#7616). [#7616](https://github.com/ant-design/pro-components/pull/#7616) [@caronchen](https://github.com/caronchen)
|
||||
|
||||
## @ant-design/pro-components@2.6.15
|
||||
|
||||
`2023-08-29`
|
||||
|
||||
|
@ -1,4 +1,17 @@
|
||||
## @ant-design/pro-components@2.6.15
|
||||
## @ant-design/pro-components@2.6.17
|
||||
|
||||
`2023-09-06`
|
||||
|
||||
- fix(layout): appList item click preventDefault and stopPropagation. [9b3cd65](https://github.com/ant-design/pro-components/commit/9b3cd65)
|
||||
- fix(layout): fix menu title center error. [904a89f](https://github.com/ant-design/pro-components/commit/904a89f)
|
||||
- fix(form): fix datepicker format (#7622). [#7622](https://github.com/ant-design/pro-components/pull/#7622) [@SummyGitHub](https://github.com/SummyGitHub)
|
||||
- fix(form):更新 DrawerForm resize 参数默认值&文档描述 (#7621). [#7621](https://github.com/ant-design/pro-components/pull/#7621) [@LengYXin](https://github.com/LengYXin)
|
||||
- fix(form): dependency 支持 colSize (#7611). [#7611](https://github.com/ant-design/pro-components/pull/#7611) [@yiyi17](https://github.com/yiyi17)
|
||||
- fix(form): fix marginBlockEnd no use marginLG error. [6e5f384](https://github.com/ant-design/pro-components/commit/6e5f384)
|
||||
- fix(form): fix formList containerClassName and containerStyle no work error. [7a2c9e0](https://github.com/ant-design/pro-components/commit/7a2c9e0)
|
||||
- fix(table): sortConfig 值为 undefined 时与默认值{}不一致,会导致翻页时再次触发 request 请求 (#7616). [#7616](https://github.com/ant-design/pro-components/pull/#7616) [@caronchen](https://github.com/caronchen)
|
||||
|
||||
## @ant-design/pro-components@2.6.15
|
||||
|
||||
`2023-08-29`
|
||||
|
||||
|
@ -4,4 +4,5 @@ order: 0
|
||||
---
|
||||
|
||||
## 代码演示
|
||||
|
||||
<code src="./valueType.tsx" title="schema 表单"></code>
|
||||
|
@ -1,16 +1,11 @@
|
||||
# Change Log
|
||||
|
||||
All notable changes to this project will be documented in this file.
|
||||
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
||||
All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
||||
|
||||
## [2.5.15](https://github.com/ant-design/pro-components/compare/@ant-design/pro-card@2.5.14...@ant-design/pro-card@2.5.15) (2023-09-06)
|
||||
|
||||
**Note:** Version bump only for package @ant-design/pro-card
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [2.5.14](https://github.com/ant-design/pro-components/compare/@ant-design/pro-card@2.5.13...@ant-design/pro-card@2.5.14) (2023-08-29)
|
||||
|
||||
**Note:** Version bump only for package @ant-design/pro-card
|
||||
|
@ -1,18 +1,12 @@
|
||||
# Change Log
|
||||
|
||||
All notable changes to this project will be documented in this file.
|
||||
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
||||
All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
||||
|
||||
## [2.6.17](https://github.com/ant-design/pro-components/compare/@ant-design/pro-components@2.6.16...@ant-design/pro-components@2.6.17) (2023-09-06)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* remove stringify ([25d2c42](https://github.com/ant-design/pro-components/commit/25d2c42a0bda673a0b40b5ae56bd0a852998ecd1))
|
||||
|
||||
|
||||
|
||||
|
||||
- remove stringify ([25d2c42](https://github.com/ant-design/pro-components/commit/25d2c42a0bda673a0b40b5ae56bd0a852998ecd1))
|
||||
|
||||
## [2.6.16](https://github.com/ant-design/pro-components/compare/@ant-design/pro-components@2.6.15...@ant-design/pro-components@2.6.16) (2023-08-30)
|
||||
|
||||
|
@ -1,18 +1,12 @@
|
||||
# Change Log
|
||||
|
||||
All notable changes to this project will be documented in this file.
|
||||
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
||||
All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
||||
|
||||
## [2.5.3](https://github.com/ant-design/pro-components/compare/@ant-design/pro-descriptions@2.5.2...@ant-design/pro-descriptions@2.5.3) (2023-09-06)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* remove stringify ([25d2c42](https://github.com/ant-design/pro-components/commit/25d2c42a0bda673a0b40b5ae56bd0a852998ecd1))
|
||||
|
||||
|
||||
|
||||
|
||||
- remove stringify ([25d2c42](https://github.com/ant-design/pro-components/commit/25d2c42a0bda673a0b40b5ae56bd0a852998ecd1))
|
||||
|
||||
## [2.5.2](https://github.com/ant-design/pro-components/compare/@ant-design/pro-descriptions@2.5.1...@ant-design/pro-descriptions@2.5.2) (2023-08-30)
|
||||
|
||||
|
@ -1,19 +1,13 @@
|
||||
# Change Log
|
||||
|
||||
All notable changes to this project will be documented in this file.
|
||||
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
||||
All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
||||
|
||||
## [2.12.4](https://github.com/ant-design/pro-components/compare/@ant-design/pro-field@2.12.3...@ant-design/pro-field@2.12.4) (2023-09-06)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* **form:** fix datepicker format ([#7622](https://github.com/ant-design/pro-components/issues/7622)) ([a6aa0db](https://github.com/ant-design/pro-components/commit/a6aa0dbb0e24b3ca1ffa5ce364e90cba4db5369c))
|
||||
* remove stringify ([25d2c42](https://github.com/ant-design/pro-components/commit/25d2c42a0bda673a0b40b5ae56bd0a852998ecd1))
|
||||
|
||||
|
||||
|
||||
|
||||
- **form:** fix datepicker format ([#7622](https://github.com/ant-design/pro-components/issues/7622)) ([a6aa0db](https://github.com/ant-design/pro-components/commit/a6aa0dbb0e24b3ca1ffa5ce364e90cba4db5369c))
|
||||
- remove stringify ([25d2c42](https://github.com/ant-design/pro-components/commit/25d2c42a0bda673a0b40b5ae56bd0a852998ecd1))
|
||||
|
||||
## [2.12.3](https://github.com/ant-design/pro-components/compare/@ant-design/pro-field@2.12.2...@ant-design/pro-field@2.12.3) (2023-08-30)
|
||||
|
||||
|
@ -1,21 +1,15 @@
|
||||
# Change Log
|
||||
|
||||
All notable changes to this project will be documented in this file.
|
||||
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
||||
All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
||||
|
||||
## [2.18.5](https://github.com/ant-design/pro-components/compare/@ant-design/pro-form@2.18.4...@ant-design/pro-form@2.18.5) (2023-09-06)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* **form:** dependency 支持 colSize ([#7611](https://github.com/ant-design/pro-components/issues/7611)) ([27436cc](https://github.com/ant-design/pro-components/commit/27436cc6351cfaa535d1ec9aef1f74e567ef44d7))
|
||||
* **form:** fix formList containerClassName and containerStyle no work error ([7a2c9e0](https://github.com/ant-design/pro-components/commit/7a2c9e0ddeb580b618f87773ff336c382be5f38a))
|
||||
* **form:** fix marginBlockEnd no use marginLG error ([6e5f384](https://github.com/ant-design/pro-components/commit/6e5f384aa9663e5859cfbceb0d328099ebf36fc8))
|
||||
* remove stringify ([25d2c42](https://github.com/ant-design/pro-components/commit/25d2c42a0bda673a0b40b5ae56bd0a852998ecd1))
|
||||
|
||||
|
||||
|
||||
|
||||
- **form:** dependency 支持 colSize ([#7611](https://github.com/ant-design/pro-components/issues/7611)) ([27436cc](https://github.com/ant-design/pro-components/commit/27436cc6351cfaa535d1ec9aef1f74e567ef44d7))
|
||||
- **form:** fix formList containerClassName and containerStyle no work error ([7a2c9e0](https://github.com/ant-design/pro-components/commit/7a2c9e0ddeb580b618f87773ff336c382be5f38a))
|
||||
- **form:** fix marginBlockEnd no use marginLG error ([6e5f384](https://github.com/ant-design/pro-components/commit/6e5f384aa9663e5859cfbceb0d328099ebf36fc8))
|
||||
- remove stringify ([25d2c42](https://github.com/ant-design/pro-components/commit/25d2c42a0bda673a0b40b5ae56bd0a852998ecd1))
|
||||
|
||||
## [2.18.4](https://github.com/ant-design/pro-components/compare/@ant-design/pro-form@2.18.3...@ant-design/pro-form@2.18.4) (2023-08-30)
|
||||
|
||||
|
@ -61,7 +61,7 @@ DrawerForm combines Drawer and ProForm to reduce tedious state management.
|
||||
| --- | --- | --- | --- |
|
||||
| trigger | The dom used to trigger the opening of the Modal, typically the button | `ReactNode` | - |
|
||||
| open | whether to open | `boolean` | - |
|
||||
| resize | whether to resize | `{onResize,maxWidth,minWidth}` \| `Boolean` | { onResize: () => { }, maxWidth: window.innerWidth * 0.8, minWidth: 300} |
|
||||
| resize | whether to resize | `{onResize,maxWidth,minWidth}` \| `Boolean` | { onResize: () => { }, maxWidth: window.innerWidth \* 0.8, minWidth: 300} |
|
||||
| onOpenChange | trigger when open changes | `(open:boolean)=>void` | - |
|
||||
| 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) | - |
|
||||
| title | The title of the drawer | `ReactNode` | - |
|
||||
|
@ -59,7 +59,7 @@ DrawerForm 组合了 Drawer 和 ProForm 可以减少繁琐的状态管理。
|
||||
| 参数 | 说明 | 类型 | 默认值 |
|
||||
| --- | --- | --- | --- |
|
||||
| trigger | 用于触发 Modal 打开的 dom,一般是 button | `ReactNode` | - |
|
||||
| resize | 是否调整大小 | `{onResize,maxWidth,minWidth}` \| `Boolean` | { onResize: () => { }, maxWidth: window.innerWidth * 0.8, minWidth: 300} |
|
||||
| resize | 是否调整大小 | `{onResize,maxWidth,minWidth}` \| `Boolean` | { onResize: () => { }, maxWidth: window.innerWidth \* 0.8, minWidth: 300} |
|
||||
| onOpenChange | open 改变时触发 | `(open:boolean)=>void` | - |
|
||||
| drawerProps | Drawer 的 props,使用方式与 [antd](https://ant.design/components/drawer-cn/) 相同。注意:不支持 'visible',请使用全局的 visible | [props](https://ant.design/components/drawer-cn/#API) | - |
|
||||
| title | 抽屉的标题 | `ReactNode` | - |
|
||||
|
@ -110,10 +110,10 @@ function DrawerForm<T = Record<string, any>, U = Record<string, any>>({
|
||||
);
|
||||
const resizeInfo: CustomizeResizeType = React.useMemo(() => {
|
||||
const defaultResize: CustomizeResizeType = {
|
||||
onResize: () => { },
|
||||
onResize: () => {},
|
||||
maxWidth: window.innerWidth * 0.8,
|
||||
minWidth: 300,
|
||||
}
|
||||
};
|
||||
if (typeof resize === 'boolean') {
|
||||
if (resize) {
|
||||
return defaultResize;
|
||||
@ -125,7 +125,7 @@ function DrawerForm<T = Record<string, any>, U = Record<string, any>>({
|
||||
onResize: resize?.onResize ?? defaultResize.onResize,
|
||||
maxWidth: resize?.maxWidth ?? defaultResize.maxWidth,
|
||||
minWidth: resize?.minWidth ?? defaultResize.minWidth,
|
||||
})
|
||||
});
|
||||
}, [resize]);
|
||||
|
||||
const context = useContext(ConfigProvider.ConfigContext);
|
||||
@ -334,11 +334,11 @@ function DrawerForm<T = Record<string, any>, U = Record<string, any>>({
|
||||
className={
|
||||
resize
|
||||
? classNames(getCls('sidebar-dragger'), hashId, {
|
||||
[getCls('sidebar-dragger-min-disabled')]:
|
||||
drawerWidth === resizeInfo?.minWidth,
|
||||
[getCls('sidebar-dragger-max-disabled')]:
|
||||
drawerWidth === resizeInfo?.maxWidth,
|
||||
})
|
||||
[getCls('sidebar-dragger-min-disabled')]:
|
||||
drawerWidth === resizeInfo?.minWidth,
|
||||
[getCls('sidebar-dragger-max-disabled')]:
|
||||
drawerWidth === resizeInfo?.maxWidth,
|
||||
})
|
||||
: null
|
||||
}
|
||||
onMouseDown={(e) => {
|
||||
|
@ -193,20 +193,20 @@ export type BaseQueryFilterProps = Omit<
|
||||
const flatMapItems = (
|
||||
items: React.ReactNode[],
|
||||
ignoreRules?: boolean,
|
||||
form?:FormInstance
|
||||
form?: FormInstance,
|
||||
): React.ReactNode[] => {
|
||||
return items?.flatMap((item: any) => {
|
||||
if (item?.type.displayName === 'ProForm-Group' && !item.props?.title) {
|
||||
return item.props.children;
|
||||
}
|
||||
if(item?.type.displayName === 'ProFormDependency' && !item.props?.title) {
|
||||
if (item?.type.displayName === 'ProFormDependency' && !item.props?.title) {
|
||||
const values = item.props.name.reduce((current: any, next: any) => {
|
||||
return {
|
||||
...current,
|
||||
[next]: form?.getFieldValue(next)
|
||||
}
|
||||
},{})
|
||||
return item.props.children(values)
|
||||
[next]: form?.getFieldValue(next),
|
||||
};
|
||||
}, {});
|
||||
return item.props.children(values);
|
||||
}
|
||||
if (ignoreRules && React.isValidElement(item)) {
|
||||
return React.cloneElement(item, {
|
||||
@ -283,7 +283,7 @@ const QueryFilterContent: React.FC<{
|
||||
showLength,
|
||||
searchGutter,
|
||||
showHiddenNum,
|
||||
form
|
||||
form,
|
||||
} = props;
|
||||
|
||||
const submitter = useMemo(() => {
|
||||
@ -323,7 +323,7 @@ const QueryFilterContent: React.FC<{
|
||||
let currentSpan = 0;
|
||||
|
||||
// 处理过,包含是否需要隐藏的 数组
|
||||
const processedList = flatMapItems(items, props.ignoreRules,form).map(
|
||||
const processedList = flatMapItems(items, props.ignoreRules, form).map(
|
||||
(
|
||||
item,
|
||||
index,
|
||||
|
@ -1,20 +1,14 @@
|
||||
# Change Log
|
||||
|
||||
All notable changes to this project will be documented in this file.
|
||||
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
||||
All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
||||
|
||||
## [7.16.12](https://github.com/ant-design/pro-components/compare/@ant-design/pro-layout@7.16.11...@ant-design/pro-layout@7.16.12) (2023-09-06)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* **form:** fix formList containerClassName and containerStyle no work error ([7a2c9e0](https://github.com/ant-design/pro-components/commit/7a2c9e0ddeb580b618f87773ff336c382be5f38a))
|
||||
* **layout:** appList item click preventDefault and stopPropagation ([9b3cd65](https://github.com/ant-design/pro-components/commit/9b3cd656cacbf9890745161f7dde3531e6090f10))
|
||||
* **layout:** fix menu title center error ([904a89f](https://github.com/ant-design/pro-components/commit/904a89f705712007dbf62d134a8cc9d6a090d9ce))
|
||||
|
||||
|
||||
|
||||
|
||||
- **form:** fix formList containerClassName and containerStyle no work error ([7a2c9e0](https://github.com/ant-design/pro-components/commit/7a2c9e0ddeb580b618f87773ff336c382be5f38a))
|
||||
- **layout:** appList item click preventDefault and stopPropagation ([9b3cd65](https://github.com/ant-design/pro-components/commit/9b3cd656cacbf9890745161f7dde3531e6090f10))
|
||||
- **layout:** fix menu title center error ([904a89f](https://github.com/ant-design/pro-components/commit/904a89f705712007dbf62d134a8cc9d6a090d9ce))
|
||||
|
||||
## [7.16.11](https://github.com/ant-design/pro-components/compare/@ant-design/pro-layout@7.16.10...@ant-design/pro-layout@7.16.11) (2023-08-29)
|
||||
|
||||
|
@ -1,18 +1,12 @@
|
||||
# Change Log
|
||||
|
||||
All notable changes to this project will be documented in this file.
|
||||
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
||||
All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
||||
|
||||
## [2.5.17](https://github.com/ant-design/pro-components/compare/@ant-design/pro-list@2.5.16...@ant-design/pro-list@2.5.17) (2023-09-06)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* remove stringify ([25d2c42](https://github.com/ant-design/pro-components/commit/25d2c42a0bda673a0b40b5ae56bd0a852998ecd1))
|
||||
|
||||
|
||||
|
||||
|
||||
- remove stringify ([25d2c42](https://github.com/ant-design/pro-components/commit/25d2c42a0bda673a0b40b5ae56bd0a852998ecd1))
|
||||
|
||||
## [2.5.16](https://github.com/ant-design/pro-components/compare/@ant-design/pro-list@2.5.15...@ant-design/pro-list@2.5.16) (2023-08-30)
|
||||
|
||||
|
@ -1,16 +1,11 @@
|
||||
# Change Log
|
||||
|
||||
All notable changes to this project will be documented in this file.
|
||||
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
||||
All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
||||
|
||||
## [2.12.3](https://github.com/ant-design/pro-components/compare/@ant-design/pro-provider@2.12.2...@ant-design/pro-provider@2.12.3) (2023-09-06)
|
||||
|
||||
**Note:** Version bump only for package @ant-design/pro-provider
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [2.12.2](https://github.com/ant-design/pro-components/compare/@ant-design/pro-provider@2.12.1...@ant-design/pro-provider@2.12.2) (2023-08-28)
|
||||
|
||||
### Bug Fixes
|
||||
|
@ -1,19 +1,13 @@
|
||||
# Change Log
|
||||
|
||||
All notable changes to this project will be documented in this file.
|
||||
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
||||
All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
||||
|
||||
## [3.12.2](https://github.com/ant-design/pro-components/compare/@ant-design/pro-table@3.12.1...@ant-design/pro-table@3.12.2) (2023-09-06)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* **table:** sortConfig值为undefined时与默认值{}不一致,会导致翻页时再次触发request请求 ([#7616](https://github.com/ant-design/pro-components/issues/7616)) ([c51be62](https://github.com/ant-design/pro-components/commit/c51be62a7045abdee73467985c9d9a61835751ee))
|
||||
* remove stringify ([25d2c42](https://github.com/ant-design/pro-components/commit/25d2c42a0bda673a0b40b5ae56bd0a852998ecd1))
|
||||
|
||||
|
||||
|
||||
|
||||
- **table:** sortConfig 值为 undefined 时与默认值{}不一致,会导致翻页时再次触发 request 请求 ([#7616](https://github.com/ant-design/pro-components/issues/7616)) ([c51be62](https://github.com/ant-design/pro-components/commit/c51be62a7045abdee73467985c9d9a61835751ee))
|
||||
- remove stringify ([25d2c42](https://github.com/ant-design/pro-components/commit/25d2c42a0bda673a0b40b5ae56bd0a852998ecd1))
|
||||
|
||||
## [3.12.1](https://github.com/ant-design/pro-components/compare/@ant-design/pro-table@3.12.0...@ant-design/pro-table@3.12.1) (2023-08-30)
|
||||
|
||||
|
@ -1,18 +1,12 @@
|
||||
# Change Log
|
||||
|
||||
All notable changes to this project will be documented in this file.
|
||||
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
||||
All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
||||
|
||||
## [2.14.3](https://github.com/ant-design/pro-components/compare/@ant-design/pro-utils@2.14.2...@ant-design/pro-utils@2.14.3) (2023-09-06)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* **form:** fix marginBlockEnd no use marginLG error ([6e5f384](https://github.com/ant-design/pro-components/commit/6e5f384aa9663e5859cfbceb0d328099ebf36fc8))
|
||||
|
||||
|
||||
|
||||
|
||||
- **form:** fix marginBlockEnd no use marginLG error ([6e5f384](https://github.com/ant-design/pro-components/commit/6e5f384aa9663e5859cfbceb0d328099ebf36fc8))
|
||||
|
||||
## [2.14.2](https://github.com/ant-design/pro-components/compare/@ant-design/pro-utils@2.14.1...@ant-design/pro-utils@2.14.2) (2023-08-29)
|
||||
|
||||
|
@ -367,10 +367,10 @@ importers:
|
||||
specifier: ^5.0.0
|
||||
version: 5.2.6(react-dom@18.2.0)(react@18.2.0)
|
||||
'@ant-design/pro-provider':
|
||||
specifier: 2.12.2
|
||||
specifier: 2.12.3
|
||||
version: link:../provider
|
||||
'@ant-design/pro-utils':
|
||||
specifier: 2.14.2
|
||||
specifier: 2.14.3
|
||||
version: link:../utils
|
||||
'@babel/runtime':
|
||||
specifier: ^7.18.0
|
||||
@ -395,34 +395,34 @@ importers:
|
||||
packages/components:
|
||||
dependencies:
|
||||
'@ant-design/pro-card':
|
||||
specifier: 2.5.14
|
||||
specifier: 2.5.15
|
||||
version: link:../card
|
||||
'@ant-design/pro-descriptions':
|
||||
specifier: 2.5.2
|
||||
specifier: 2.5.3
|
||||
version: link:../descriptions
|
||||
'@ant-design/pro-field':
|
||||
specifier: 2.12.3
|
||||
specifier: 2.12.4
|
||||
version: link:../field
|
||||
'@ant-design/pro-form':
|
||||
specifier: 2.18.4
|
||||
specifier: 2.18.5
|
||||
version: link:../form
|
||||
'@ant-design/pro-layout':
|
||||
specifier: 7.16.11
|
||||
specifier: 7.16.12
|
||||
version: link:../layout
|
||||
'@ant-design/pro-list':
|
||||
specifier: 2.5.16
|
||||
specifier: 2.5.17
|
||||
version: link:../list
|
||||
'@ant-design/pro-provider':
|
||||
specifier: 2.12.2
|
||||
specifier: 2.12.3
|
||||
version: link:../provider
|
||||
'@ant-design/pro-skeleton':
|
||||
specifier: 2.1.7
|
||||
version: link:../skeleton
|
||||
'@ant-design/pro-table':
|
||||
specifier: 3.12.1
|
||||
specifier: 3.12.2
|
||||
version: link:../table
|
||||
'@ant-design/pro-utils':
|
||||
specifier: 2.14.2
|
||||
specifier: 2.14.3
|
||||
version: link:../utils
|
||||
'@babel/runtime':
|
||||
specifier: ^7.16.3
|
||||
@ -431,16 +431,16 @@ importers:
|
||||
packages/descriptions:
|
||||
dependencies:
|
||||
'@ant-design/pro-field':
|
||||
specifier: 2.12.3
|
||||
specifier: 2.12.4
|
||||
version: link:../field
|
||||
'@ant-design/pro-form':
|
||||
specifier: 2.18.4
|
||||
specifier: 2.18.5
|
||||
version: link:../form
|
||||
'@ant-design/pro-skeleton':
|
||||
specifier: 2.1.7
|
||||
version: link:../skeleton
|
||||
'@ant-design/pro-utils':
|
||||
specifier: 2.14.2
|
||||
specifier: 2.14.3
|
||||
version: link:../utils
|
||||
'@babel/runtime':
|
||||
specifier: ^7.18.0
|
||||
@ -462,10 +462,10 @@ importers:
|
||||
specifier: ^5.0.0
|
||||
version: 5.2.6(react-dom@18.2.0)(react@18.2.0)
|
||||
'@ant-design/pro-provider':
|
||||
specifier: 2.12.2
|
||||
specifier: 2.12.3
|
||||
version: link:../provider
|
||||
'@ant-design/pro-utils':
|
||||
specifier: 2.14.2
|
||||
specifier: 2.14.3
|
||||
version: link:../utils
|
||||
'@babel/runtime':
|
||||
specifier: ^7.18.0
|
||||
@ -511,13 +511,13 @@ importers:
|
||||
specifier: ^5.0.0
|
||||
version: 5.2.6(react-dom@18.2.0)(react@18.2.0)
|
||||
'@ant-design/pro-field':
|
||||
specifier: 2.12.3
|
||||
specifier: 2.12.4
|
||||
version: link:../field
|
||||
'@ant-design/pro-provider':
|
||||
specifier: 2.12.2
|
||||
specifier: 2.12.3
|
||||
version: link:../provider
|
||||
'@ant-design/pro-utils':
|
||||
specifier: 2.14.2
|
||||
specifier: 2.14.3
|
||||
version: link:../utils
|
||||
'@babel/runtime':
|
||||
specifier: ^7.18.0
|
||||
@ -557,10 +557,10 @@ importers:
|
||||
specifier: ^5.0.0
|
||||
version: 5.2.6(react-dom@18.2.0)(react@18.2.0)
|
||||
'@ant-design/pro-provider':
|
||||
specifier: 2.12.2
|
||||
specifier: 2.12.3
|
||||
version: link:../provider
|
||||
'@ant-design/pro-utils':
|
||||
specifier: 2.14.2
|
||||
specifier: 2.14.3
|
||||
version: link:../utils
|
||||
'@babel/runtime':
|
||||
specifier: ^7.18.0
|
||||
@ -606,16 +606,16 @@ importers:
|
||||
specifier: ^5.0.0
|
||||
version: 5.2.6(react-dom@18.2.0)(react@18.2.0)
|
||||
'@ant-design/pro-card':
|
||||
specifier: 2.5.14
|
||||
specifier: 2.5.15
|
||||
version: link:../card
|
||||
'@ant-design/pro-field':
|
||||
specifier: 2.12.3
|
||||
specifier: 2.12.4
|
||||
version: link:../field
|
||||
'@ant-design/pro-table':
|
||||
specifier: 3.12.1
|
||||
specifier: 3.12.2
|
||||
version: link:../table
|
||||
'@ant-design/pro-utils':
|
||||
specifier: 2.14.2
|
||||
specifier: 2.14.3
|
||||
version: link:../utils
|
||||
'@babel/runtime':
|
||||
specifier: ^7.18.0
|
||||
@ -675,19 +675,19 @@ importers:
|
||||
specifier: ^5.0.0
|
||||
version: 5.2.6(react-dom@18.2.0)(react@18.2.0)
|
||||
'@ant-design/pro-card':
|
||||
specifier: 2.5.14
|
||||
specifier: 2.5.15
|
||||
version: link:../card
|
||||
'@ant-design/pro-field':
|
||||
specifier: 2.12.3
|
||||
specifier: 2.12.4
|
||||
version: link:../field
|
||||
'@ant-design/pro-form':
|
||||
specifier: 2.18.4
|
||||
specifier: 2.18.5
|
||||
version: link:../form
|
||||
'@ant-design/pro-provider':
|
||||
specifier: 2.12.2
|
||||
specifier: 2.12.3
|
||||
version: link:../provider
|
||||
'@ant-design/pro-utils':
|
||||
specifier: 2.14.2
|
||||
specifier: 2.14.3
|
||||
version: link:../utils
|
||||
'@babel/runtime':
|
||||
specifier: ^7.18.0
|
||||
@ -730,7 +730,7 @@ importers:
|
||||
specifier: ^5.0.0
|
||||
version: 5.2.6(react-dom@18.2.0)(react@18.2.0)
|
||||
'@ant-design/pro-provider':
|
||||
specifier: 2.12.2
|
||||
specifier: 2.12.3
|
||||
version: link:../provider
|
||||
'@babel/runtime':
|
||||
specifier: ^7.18.0
|
||||
|
@ -1,18 +1,18 @@
|
||||
import '@testing-library/jest-dom';
|
||||
import { vi } from 'vitest'
|
||||
import crypto from 'crypto';
|
||||
import MockDate from 'mockdate';
|
||||
import React from 'react';
|
||||
import { vi } from 'vitest';
|
||||
import tableData from './table/mock.data.json';
|
||||
import crypto from 'crypto';
|
||||
|
||||
import { defaultConfig } from 'antd/lib/theme/internal';
|
||||
|
||||
defaultConfig.hashed = false;
|
||||
globalThis.React = React;
|
||||
|
||||
vi.stubGlobal('IS_REACT_ACT_ENVIRONMENT', true)
|
||||
vi.stubGlobal('ANT_DESIGN_PRO_ONLY_DO_NOT_USE_IN_YOUR_PRODUCTION', true)
|
||||
vi.stubEnv('TZ', 'UTC')
|
||||
vi.stubGlobal('IS_REACT_ACT_ENVIRONMENT', true);
|
||||
vi.stubGlobal('ANT_DESIGN_PRO_ONLY_DO_NOT_USE_IN_YOUR_PRODUCTION', true);
|
||||
vi.stubEnv('TZ', 'UTC');
|
||||
|
||||
vi.mock('antd', async (importActual) => {
|
||||
const antd = await importActual<typeof import('antd')>();
|
||||
@ -22,7 +22,7 @@ vi.mock('antd', async (importActual) => {
|
||||
|
||||
vi.mock('react', async (importActual) => ({
|
||||
...(await importActual<typeof import('react')>()),
|
||||
useLayoutEffect: ((await importActual<typeof import('react')>()).useEffect),
|
||||
useLayoutEffect: (await importActual<typeof import('react')>()).useEffect,
|
||||
}));
|
||||
|
||||
if (typeof globalThis !== 'undefined') {
|
||||
@ -98,8 +98,6 @@ MockDate.set(1479828164000);
|
||||
|
||||
Math.random = () => 0.8404419276253765;
|
||||
|
||||
|
||||
|
||||
// @ts-ignore-next-line
|
||||
globalThis.Worker = class {
|
||||
constructor(stringUrl: string) {
|
||||
@ -134,4 +132,4 @@ await import('jest-canvas-mock');
|
||||
//@ts-ignore
|
||||
fetch.mockResponse(async () => {
|
||||
return { body: JSON.stringify(tableData) };
|
||||
});
|
||||
});
|
||||
|
@ -14,9 +14,7 @@
|
||||
"declaration": true,
|
||||
"skipLibCheck": true,
|
||||
"resolveJsonModule": true,
|
||||
"types": [
|
||||
"vitest/globals"
|
||||
],
|
||||
"types": ["vitest/globals"],
|
||||
"paths": {
|
||||
"@@/*": [".dumi/tmp/*"],
|
||||
"@ant-design/pro-layout": ["./packages/layout/src/index.tsx"],
|
||||
|
@ -1,23 +1,21 @@
|
||||
import { readdirSync } from 'fs';
|
||||
import { join } from 'path';
|
||||
import { defineConfig } from 'vitest/config'
|
||||
import { defineConfig } from 'vitest/config';
|
||||
|
||||
const pkgList = readdirSync(join(__dirname, './packages')).filter(
|
||||
(pkg: string) => pkg.charAt(0) !== '.',
|
||||
);
|
||||
|
||||
const moduleNameMapper = {
|
||||
};
|
||||
const moduleNameMapper = {};
|
||||
|
||||
pkgList.forEach((shortName: string) => {
|
||||
const name = `@ant-design/pro-${shortName}`;
|
||||
moduleNameMapper[name] = join(__dirname, `./packages/${shortName}/src`);
|
||||
});
|
||||
|
||||
|
||||
export default defineConfig({
|
||||
resolve: {
|
||||
alias: moduleNameMapper
|
||||
alias: moduleNameMapper,
|
||||
},
|
||||
define: {
|
||||
ANT_DESIGN_PRO_ONLY_DO_NOT_USE_IN_YOUR_PRODUCTION: false,
|
||||
@ -30,13 +28,11 @@ export default defineConfig({
|
||||
environmentOptions: {
|
||||
jsdom: {
|
||||
url: 'http://localhost?navTheme=realDark&layout=mix&colorPrimary=techBlue&splitMenus=false&fixedHeader=true',
|
||||
}
|
||||
},
|
||||
},
|
||||
coverage: {
|
||||
provider :'istanbul',
|
||||
include: [
|
||||
'packages/**/src/**/*.{ts,tsx}',
|
||||
],
|
||||
provider: 'istanbul',
|
||||
include: ['packages/**/src/**/*.{ts,tsx}'],
|
||||
exclude: [
|
||||
'packages/**/src/**/*.d.ts',
|
||||
'packages/card/src/components/TabPane/index.tsx',
|
||||
@ -45,8 +41,8 @@ export default defineConfig({
|
||||
'packages/**/src/**/demos/**',
|
||||
'packages/utils/src/isDeepEqualReact/*.{ts,tsx}',
|
||||
'packages/utils/src/useMountMergeState/*.{ts,tsx}',
|
||||
]
|
||||
],
|
||||
},
|
||||
testTimeout: 60_000
|
||||
}
|
||||
})
|
||||
testTimeout: 60_000,
|
||||
},
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user