/*
 * @Author: your name
 * @Date: 2021-09-10 09:40:50
 * @LastEditTime: 2021-11-24 14:29:13
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: /MedicalWisdomCheckSys/src/components/antdProOverwrite/MccsProFormText/index.tsx
 */


import React from 'react'
import {
    ProFormText,
    ProFormTextArea
  } from '@ant-design/pro-form';


type MccsProFormTextProps = {
    type?: 'text'|'textArea',
    [propsName: string]: any
}
// 使用方式参考 antd pro
const MccsProFormText: React.FC<MccsProFormTextProps> =(props)=>{
    const {type = 'text'} = props;

    return (
        <>
           {
               type =='text'&&(
                <ProFormText {...props} />
               )
           }
           {
               type =='textArea'&&(
                <ProFormTextArea {...props} />
               )
           }
        </>
    )
}

export default MccsProFormText


