import React from 'react'; import { Input, InputNumber } from 'antd'; import './index.less'; export interface GInputProps { [propsName: string]: any onChange: (value: any) => void } const GInput: React.FC = (props) => { const { DISPLAYTYPE, DATATYPE, value, onChange, disabled } = props const type = DISPLAYTYPE.toUpperCase() let result = null switch (type) { case 'TEXT': case 'REFTEXT': if (DATATYPE === 'integer' || DATATYPE === 'double') { result = ( ) } else { result = ( ) } break case 'PASSWORD': result = ( ) break case 'TEXTAREA': result = ( ) break } return result } export default GInput;