Javascript 如何将自定义文本字段加载到带有标签和变量的react数字格式中?
我有一个问题,我想上传我的代码到customInput,一个带有标签和变量的自定义文本字段。我该怎么做Javascript 如何将自定义文本字段加载到带有标签和变量的react数字格式中?,javascript,reactjs,typescript,material-ui,number-formatting,Javascript,Reactjs,Typescript,Material Ui,Number Formatting,我有一个问题,我想上传我的代码到customInput,一个带有标签和变量的自定义文本字段。我该怎么做 <Controller name={`[${index}].economyData.information[${indexValue}].turnover`} control={control} render={props => ( <NumberFormat value={props.value} customInput={Tex
<Controller
name={`[${index}].economyData.information[${indexValue}].turnover`}
control={control}
render={props => (
<NumberFormat
value={props.value}
customInput={TextField}
thousandSeparator
suffix="€"
defaultValue={item.turnover}
onValueChange={(target) => {
props.onChange();
setValue(`[${index}].economyData.information[${indexValue}].turnover`, target.value);
}}
/>
)}
/>
(
{
props.onChange();
setValue(`[${index}).economyData.information[${indexValue}].overship`,target.value);
}}
/>
)}
/>