基于 Antd Design v4 版本中的 Input.Textarea 进行二次封装, 后来发现其实已经内置了, 不需要再次封装
增加外层父级
import React, { FC } from 'react';import { Input } from 'antd';interface TextareaCountProps extends TextareaProps {showCount?: boolean;}const TextareaCount: FC<TextareaCountProps> = (props) => {const { value, onChange } = props;return (<div style={{ position: 'relative' }}><Input.Textarea /></div>);}
