You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You can reference [Customized Form Controls](#components-form-demo-customized-form-controls), but it also has some disadvantages:
566
566
567
-
1. If the custom component wants Form.Item to be verified and displayed, you need to inject `const {id, onFieldChange, onFieldBlur} = useFormItemContext()` and call the corresponding method.
567
+
1. If the custom component wants Form.Item to be verified and displayed, you need to inject `const {id, onFieldChange, onFieldBlur} = useInjectFormItemContext()` and call the corresponding method.
568
568
569
569
2. A Form.Item can only collect the data of one form item. If there are multiple form items, it will cause collection confusion. For example,
The second way is to wrap it with a custom component and call `useFormItemContext` in the custom component, It is equivalent to merging multiple form items into one.
589
+
The second way is to wrap it with a custom component and call `useInjectFormItemContext` in the custom component, It is equivalent to merging multiple form items into one.
Copy file name to clipboardExpand all lines: site/src/vueDocs/migration-v3.en-US.md
+5-5
Original file line number
Diff line number
Diff line change
@@ -28,7 +28,7 @@ The 2.x version is a compatible version developed for compatibility with Vue 3.
28
28
- Deprecated `replaceFields`, use `fieldNames` instead.
29
29
-`Table`
30
30
- Removed the `rowSelection.hideDefaultSelections` property of Table, please use `SELECTION_ALL` and `SELECTION_INVERT` in `rowSelection.selections` instead, [custom options](/components/table/#components-table-demo- row-selection-custom).
31
-
- Removed Column slots and replaced them with `v-slot:headerCell``v-slot:headerCell``v-slot:bodyCell``v-slot:customFilterDropdown``v-slot:customFilterIcon`.
31
+
- Removed Column slots and replaced them with `v-slot:headerCell``v-slot:bodyCell``v-slot:customFilterDropdown``v-slot:customFilterIcon`.
32
32
33
33
#### Component refactoring
34
34
@@ -49,7 +49,7 @@ Major updates after the 3.0 version refactoring include `Tree` `TreeSelect` `Dat
49
49
-`Table`
50
50
51
51
- Removed the `rowSelection.hideDefaultSelections` property of Table, please use `SELECTION_ALL` and `SELECTION_INVERT` in `rowSelection.selections` instead, [custom options](/components/table/#components-table-demo- row-selection-custom).
52
-
- Removed Column slots and replaced them with `v-slot:headerCell``v-slot:headerCell``v-slot:bodyCell``v-slot:customFilterDropdown``v-slot:customFilterIcon` to improve ease of use , To avoid slot configuration expansion, but also to avoid the problem of slot conflicts.
52
+
- Removed Column slots and replaced them with `v-slot:headerCell``v-slot:bodyCell``v-slot:customFilterDropdown``v-slot:customFilterIcon` to improve ease of use , To avoid slot configuration expansion, but also to avoid the problem of slot conflicts.
53
53
- Added expandFixed to control whether the expanded icon is fixed.
54
54
- Added the showSorterTooltip header whether to display the tooltip for the next sort.
55
55
- Added sticky for setting sticky head and scroll bar.
@@ -72,7 +72,7 @@ Major updates after the 3.0 version refactoring include `Tree` `TreeSelect` `Dat
72
72
73
73
You can reference [Customized Form Controls](#components-form-demo-customized-form-controls), but it also has some disadvantages:
74
74
75
-
1. If the custom component wants Form.Item to be verified and displayed, you need to inject `const {id, onFieldChange, onFieldBlur} = useFormItemContext()` and call the corresponding method.
75
+
1. If the custom component wants Form.Item to be verified and displayed, you need to inject `const {id, onFieldChange, onFieldBlur} = useInjectFormItemContext()` and call the corresponding method.
76
76
77
77
2. A Form.Item can only collect the data of one form item. If there are multiple form items, it will cause collection confusion. For example:
78
78
@@ -94,7 +94,7 @@ Major updates after the 3.0 version refactoring include `Tree` `TreeSelect` `Dat
94
94
</a-form-item>
95
95
```
96
96
97
-
The second way is to wrap it with a custom component and call `useFormItemContext` in the custom component, It is equivalent to merging multiple form items into one.
97
+
The second way is to wrap it with a custom component and call `useInjectFormItemContext` in the custom component, It is equivalent to merging multiple form items into one.
98
98
99
99
```html
100
100
<script>
@@ -103,7 +103,7 @@ Major updates after the 3.0 version refactoring include `Tree` `TreeSelect` `Dat
0 commit comments