05 2019 档案
摘要:ref的作用在于父组件取到子组件的所有state内容。 在父组件中 编写如下: 1. public child: any; 类中定义child,用于存放子组件的作用域 2. 绑定子组件作用域 public onRef(ref: any) { this.child = ref } 3. 子组件中绑定r
阅读全文
摘要:import { Row, Col, Select, Table, Input, Popconfirm, Button, Form } from 'antd'; import * as React from 'react' const FormItem = Form.Item; const EditableContext = React.createContext({}); const Edi...
阅读全文

浙公网安备 33010602011771号