不多于500字textArea实现;禁止拖拽;文本自动换行;

<Textarea
                            type="text"
                            pattern="\d*"
                            maxLength="5000"
                            value={brandBriefIntroduction}
                            onFocus={() => {
                                checkkpNamePhone(false);
                            }}
                            onChange={(e) => {
                           changeInput('brandBriefIntroduction', e.target.value);
                            }}
                            placeholder="不多于5000 字"
                            className={`textArea form-control${brandBriefIntroduction.length > 4999 ? ' error' : '' }`}
                        />
                        {
                            brandBriefIntroduction.length > 4999
                            && <span className="error-wrapper">不多于5000</span>
                        }
                        <div
                            className="restriContentLabel"
                        >
                            (0/500)
                        </div>
    height: 160px;
    width: 543px;
    overflow: auto !important;
    resize: none !important;

你可能感兴趣的:(数据库,禁止拖拽固定宽高)