@fe-free/core 2.2.1 → 2.2.4

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,27 @@
1
1
  # @fe-free/core
2
2
 
3
+ ## 2.2.4
4
+
5
+ ### Patch Changes
6
+
7
+ - fix: form
8
+ - Updated dependencies
9
+ - @fe-free/tool@2.2.4
10
+
11
+ ## 2.2.3
12
+
13
+ ### Patch Changes
14
+
15
+ - feat: form
16
+ - @fe-free/tool@2.2.3
17
+
18
+ ## 2.2.2
19
+
20
+ ### Patch Changes
21
+
22
+ - tree
23
+ - @fe-free/tool@2.2.2
24
+
3
25
  ## 2.2.1
4
26
 
5
27
  ### Patch Changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fe-free/core",
3
- "version": "2.2.1",
3
+ "version": "2.2.4",
4
4
  "description": "",
5
5
  "main": "./src/index.ts",
6
6
  "author": "",
@@ -39,11 +39,11 @@
39
39
  "remark-gfm": "^4.0.1",
40
40
  "vanilla-jsoneditor": "^0.23.1",
41
41
  "zustand": "^4.5.4",
42
- "@fe-free/tool": "2.2.1"
42
+ "@fe-free/tool": "2.2.4"
43
43
  },
44
44
  "peerDependencies": {
45
- "@ant-design/pro-components": "^2.8.7",
46
- "antd": "^5.25.1",
45
+ "@ant-design/pro-components": "2.8.9",
46
+ "antd": "^5.27.1",
47
47
  "dayjs": "~1.11.10",
48
48
  "react": "^18.2.0"
49
49
  },
@@ -113,7 +113,7 @@ function Tree<T extends DataNode>(props: TreeProps<T>) {
113
113
  direction="vertical"
114
114
  start={
115
115
  enableSearch && (
116
- <div className="pb-2">
116
+ <div className="px-2 pb-2">
117
117
  <Input.Search
118
118
  placeholder="搜索"
119
119
  value={search}
@@ -17,17 +17,20 @@ const renderMap = {
17
17
 
18
18
  const renderFormItemMap = {
19
19
  dateRange: (_, props) => {
20
+ // @ts-ignore onBlur 类型错误
21
+ const { onBlur, fieldProps, ...rest } = props;
22
+
20
23
  return (
21
24
  <ProFormDateRangePicker
22
- {...props}
25
+ {...rest}
23
26
  fieldProps={{
24
- ...props.fieldProps,
25
- onChange: (value) => {
27
+ ...fieldProps,
28
+ onChange: (value, ...args) => {
26
29
  const newValue = value
27
30
  ? [dayjs(value[0]).startOf('day'), dayjs(value[1]).endOf('day')]
28
31
  : value;
29
32
 
30
- props.fieldProps.onChange?.(newValue);
33
+ props.fieldProps.onChange?.(newValue, ...args);
31
34
  },
32
35
  }}
33
36
  />