如何将带有标签和变量的自定义TextField加载为react-number-format?

问题描述

我有一个问题,我想将代码上传到customInput,这是一个带有标签和变量的自定义文本字段。我该怎么办?

<Controller
  name={`[${index}].economyData.@R_629_4045@ion[${indexValue}].turnover`}
  control={control}
  render={props => (
    <NumberFormat
      value={props.value}
      customInput={TextField}
      thousandSeparator
      suffix="€"
      defaultValue={item.turnover}
      onValueChange={(target) => {
          props.onChange();
          setValue(`[${index}].economyData.@R_629_4045@ion[${indexValue}].turnover`,target.value);
      }}
   />
)}
/>

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)