优化FormItemsRenderer
parent
ce08d67575
commit
6ea0163079
|
|
@ -172,10 +172,10 @@ const FormItemsRenderer = ({
|
||||||
|
|
||||||
switch (render) {
|
switch (render) {
|
||||||
case FORM_ITEM_RENDER_ENUM.INPUT:
|
case FORM_ITEM_RENDER_ENUM.INPUT:
|
||||||
return <Input placeholder={placeholder} max={50} {...componentProps} />;
|
return <Input placeholder={placeholder} maxLength={50} {...componentProps} />;
|
||||||
|
|
||||||
case FORM_ITEM_RENDER_ENUM.TEXTAREA:
|
case FORM_ITEM_RENDER_ENUM.TEXTAREA:
|
||||||
return <TextArea placeholder={placeholder} max={500} showCount={true} rows={3} {...componentProps} />;
|
return <TextArea placeholder={placeholder} maxLength={500} showCount={true} rows={3} {...componentProps} />;
|
||||||
|
|
||||||
case FORM_ITEM_RENDER_ENUM.INPUT_NUMBER:
|
case FORM_ITEM_RENDER_ENUM.INPUT_NUMBER:
|
||||||
case FORM_ITEM_RENDER_ENUM.NUMBER:
|
case FORM_ITEM_RENDER_ENUM.NUMBER:
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue