File tree 4 files changed +38
-1
lines changed
4 files changed +38
-1
lines changed Original file line number Diff line number Diff line change 88
88
89
89
React 相关知识总结
90
90
91
+ - [ Antd typescript] ( /full-stack/react/AntdTypescript.md ) : <sub ><sup >(2023年9月20日)</sup ></sub >
91
92
- [ React: 总结整理] ( /full-stack/react/React.md ) : <sub ><sup >(2023年8月7日)</sup ></sub >
92
93
- [ React Hook - 速览] ( /full-stack/react/ReactHook.md ) : <sub ><sup >(2021年8月10日)</sup ></sub >
93
94
- [ React-生命周期方法转 Hooks-1] ( /full-stack/react/ReactLifeCycleToHooks1.md ) : <sub ><sup >(2021年3月29日)</sup ></sub >
@@ -120,4 +121,4 @@ Office 工具技巧
120
121
- [ Excel 常用操作] ( /office/Excel.md ) : <sub ><sup >(2021年2月24日)</sup ></sub >
121
122
- [ Word: 文档操作精选技巧] ( /office/Word.md ) : <sub ><sup >(2020年8月31日)</sup ></sub >
122
123
123
- 最后更新于2023年8月7日
124
+ 最后更新于2023年9月20日
Original file line number Diff line number Diff line change 91
91
92
92
React 相关知识总结
93
93
94
+ - [ Antd typescript] ( /full-stack/react/AntdTypescript.md )
94
95
- [ React: 总结整理] ( /full-stack/react/React.md )
95
96
- [ React Hook - 速览] ( /full-stack/react/ReactHook.md )
96
97
- [ React-生命周期方法转 Hooks-1] ( /full-stack/react/ReactLifeCycleToHooks1.md )
Original file line number Diff line number Diff line change @@ -255,6 +255,11 @@ module.exports = {
255
255
"date" : "2021年8月5日" ,
256
256
"path" : "full-stack/react/useEffect.md" ,
257
257
"title" : "useEffect"
258
+ } ,
259
+ "AntdTypescript.md" : {
260
+ "date" : "2023年9月20日" ,
261
+ "path" : "full-stack/react/AntdTypescript.md" ,
262
+ "title" : "Antd typescript"
258
263
}
259
264
} ,
260
265
"project" : {
Original file line number Diff line number Diff line change
1
+ # Antd typescript
2
+
3
+ ## Demos
4
+
5
+ ``` tsx
6
+ import type { InputRef } from ' antd' ;
7
+ import type { FieldData } from ' rc-field-form/lib/interface' ;
8
+
9
+ const Index: React .FC = () => {
10
+
11
+ const inputRef = useRef <InputRef >(null );
12
+
13
+ const handleFieldsChange = (changedFields : FieldData [], allFields : FieldData []) => {
14
+ // ......
15
+ }
16
+
17
+ return (
18
+ <Form
19
+ onFieldsChange = { handleFieldsChange }
20
+ form = { form }
21
+ >
22
+ </Form >
23
+ )
24
+ }
25
+
26
+ ```
27
+
28
+ ``` tsx
29
+
30
+
You can’t perform that action at this time.
0 commit comments