Add combo input component

This commit is contained in:
2022-03-14 17:47:38 +08:00
parent b420b3956f
commit 79036a85c6
10 changed files with 235 additions and 10 deletions
+1 -1
View File
@@ -25,7 +25,7 @@ class AttrInput extends Component<IAttrInputProps> {
private value: string = "";
private error: ReactNode;
private numberTestReg = [/\.0*$/, /[1-9]+0+$/];
private numberTestReg = [/\.0*$/, /\.\d*[1-9]+0+$/];
private numberTester(value: string) {
return isNaN((value as any) / 1) ||