国产xxxx99真实实拍_久久不雅视频_高清韩国a级特黄毛片_嗯老师别我我受不了了小说

資訊專欄INFORMATION COLUMN

antd 常用表單組件

HtmlCssJs / 3671人閱讀

摘要:表單配置信息有誤調用配置名稱表單的屬性按照加入請輸入名稱參數按照加入請輸入名稱請輸入請輸入名稱描述請輸入描述多選請輸選擇單選選擇日期選擇日期提交布局內容

basicFormUtil.js

import React from "react"
import { Form, Input, Tooltip, Icon, Cascader, Select,Radio, Row, Col,DatePicker, Checkbox, Button, AutoComplete} from "antd";
import moment from "moment";
import "moment/locale/zh-cn";
moment.locale("zh-cn");
const { Option } = Select;
const { TextArea } = Input;
const CheckboxGroup = Checkbox.Group;
const RadioGroup = Radio.Group;
const { MonthPicker, RangePicker,WeekPicker  } = DatePicker;

class basicFormUtil extends React.Component{
    constructor(props){
        super(props);
    }
    handleSubmit = (e) => {
        e.preventDefault();
        this.props.form.validateFieldsAndScroll((err, values) => {
            if (!err) {
                console.log("Received values of form: ", values);
            }
        });
    }
    getInput(item){
        if(item.tag =="Input"){
            return 
        }else if(item.tag =="TextArea"){
            return