Преглед изворни кода

组合数字组件输入限制bug修改889

zhouna пре 6 година
родитељ
комит
2297de66c2
1 измењених фајлова са 2 додато и 2 уклоњено
  1. 2 2
      src/components/MultSpread/index.jsx

+ 2 - 2
src/components/MultSpread/index.jsx

@@ -98,8 +98,8 @@ class MultSpread extends Component{
                             id={it.id}
                             ikey={inx} hideTag={true}></InlineTag>;
         case +it.controlType===7:
-          const min = data.minValue!=null&&data.minValue!=undefined?data.minValue-1:undefined;
-          const max = data.maxValue!=null&&data.maxValue!=undefined?+data.maxValue+1:undefined;
+          const min = it.minValue!=null&&it.minValue!=undefined?it.minValue-1:undefined;
+          const max = it.maxValue!=null&&it.maxValue!=undefined?+it.maxValue+1:undefined;
           return <NumberDrop prefix={it.labelPrefix}
                              suffix={it.labelSuffix}
                              placeholder={it.name}