import React from 'react'; import { Input } from 'antd'; import styles from './styles.less'; import { BaseComponentProps } from '@/apollo-table/component/interface'; export default function(props: BaseComponentProps) { const { value, columnConfig } = props; const { columnAttrObj = {} } = columnConfig; const { maxLength } = columnAttrObj; return (
{maxLength && ( 已输入{(value || '').length || 0}/{maxLength} )}
); }