@fe-free/core 2.4.0 → 2.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,22 @@
|
|
|
1
1
|
# @fe-free/core
|
|
2
2
|
|
|
3
|
+
## 2.5.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- feat: file
|
|
8
|
+
|
|
9
|
+
### Patch Changes
|
|
10
|
+
|
|
11
|
+
- @fe-free/tool@2.5.0
|
|
12
|
+
|
|
13
|
+
## 2.4.1
|
|
14
|
+
|
|
15
|
+
### Patch Changes
|
|
16
|
+
|
|
17
|
+
- fix: type InfiniteList
|
|
18
|
+
- @fe-free/tool@2.4.1
|
|
19
|
+
|
|
3
20
|
## 2.4.0
|
|
4
21
|
|
|
5
22
|
### Minor Changes
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fe-free/core",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.5.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "./src/index.ts",
|
|
6
6
|
"author": "",
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
"remark-gfm": "^4.0.1",
|
|
42
42
|
"vanilla-jsoneditor": "^0.23.1",
|
|
43
43
|
"zustand": "^4.5.4",
|
|
44
|
-
"@fe-free/tool": "2.
|
|
44
|
+
"@fe-free/tool": "2.5.0"
|
|
45
45
|
},
|
|
46
46
|
"peerDependencies": {
|
|
47
47
|
"@ant-design/pro-components": "2.8.9",
|
|
@@ -4,6 +4,9 @@ import type { ReactNode } from 'react';
|
|
|
4
4
|
import { useImperativeHandle, useRef, useState } from 'react';
|
|
5
5
|
import { useGlobalInfiniteScroll } from '../ahooks/use_global_infinite_scroll';
|
|
6
6
|
|
|
7
|
+
interface ActionType {
|
|
8
|
+
reload: () => void;
|
|
9
|
+
}
|
|
7
10
|
interface InfiniteListProps<D, P> {
|
|
8
11
|
request: (params: { current: number; pageSize: number } & P) => Promise<{
|
|
9
12
|
data: D[];
|
|
@@ -16,7 +19,7 @@ interface InfiniteListProps<D, P> {
|
|
|
16
19
|
/** 定义网格布局 */
|
|
17
20
|
gridClassName: string;
|
|
18
21
|
className?: string;
|
|
19
|
-
actionRef?: React.
|
|
22
|
+
actionRef?: React.Ref<ActionType | undefined>;
|
|
20
23
|
}
|
|
21
24
|
|
|
22
25
|
const emptyParams = {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ProConfigProvider } from '@ant-design/pro-components';
|
|
2
|
-
import { CRUD, CustomValueTypeEnum
|
|
2
|
+
import { CRUD, CustomValueTypeEnum } from '@fe-free/core';
|
|
3
3
|
import type { Meta, StoryObj } from '@storybook/react-vite';
|
|
4
4
|
import dayjs from 'dayjs';
|
|
5
5
|
import { range } from 'lodash-es';
|
|
@@ -96,9 +96,5 @@ const Table = () => {
|
|
|
96
96
|
};
|
|
97
97
|
|
|
98
98
|
export const Default: Story = {
|
|
99
|
-
render: () =>
|
|
100
|
-
<ProConfigProvider valueTypeMap={customValueTypeMap}>
|
|
101
|
-
<Table />
|
|
102
|
-
</ProConfigProvider>
|
|
103
|
-
),
|
|
99
|
+
render: () => <Table />,
|
|
104
100
|
};
|