05 2019 档案

摘要:ref的作用在于父组件取到子组件的所有state内容。 在父组件中 编写如下: 1. public child: any; 类中定义child,用于存放子组件的作用域 2. 绑定子组件作用域 public onRef(ref: any) { this.child = ref } 3. 子组件中绑定r 阅读全文
posted @ 2019-05-24 10:40 Denvue 阅读(5398) 评论(0) 推荐(0)
摘要: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... 阅读全文
posted @ 2019-05-21 16:59 Denvue 阅读(3260) 评论(1) 推荐(0)