浏览代码

fix(inputnumber): editor api syntax hint error #327 (#330)

走鹃 3 年之前
父节点
当前提交
9a11e5ff8e
共有 2 个文件被更改,包括 1 次插入2 次删除
  1. 1 1
      packages/semi-ui/form/field.tsx
  2. 0 1
      packages/semi-ui/inputNumber/index.tsx

+ 1 - 1
packages/semi-ui/form/field.tsx

@@ -25,7 +25,7 @@ import TagInput from '../tagInput/index';
 import { FormCheckboxType, FormRadioType, FormSelectType } from './interface';
 import { FormCheckboxType, FormRadioType, FormSelectType } from './interface';
 
 
 const FormInput = withField(Input, { maintainCursor: true });
 const FormInput = withField(Input, { maintainCursor: true });
-const FormInputNumber = withField(InputNumber as any, { maintainCursor: true });
+const FormInputNumber = withField(InputNumber, { maintainCursor: true });
 const FormTextArea = withField(TextArea, { maintainCursor: true });
 const FormTextArea = withField(TextArea, { maintainCursor: true });
 
 
 const FormSelect = withField(Select) as typeof FormSelectType;
 const FormSelect = withField(Select) as typeof FormSelectType;

+ 0 - 1
packages/semi-ui/inputNumber/index.tsx

@@ -20,7 +20,6 @@ import { isNaN, noop } from 'lodash-es';
 import { ArrayElement } from '../_base/base';
 import { ArrayElement } from '../_base/base';
 
 
 export interface InputNumberProps extends InputProps {
 export interface InputNumberProps extends InputProps {
-    [x: string]: any;
     autofocus?: boolean;
     autofocus?: boolean;
     className?: string;
     className?: string;
     defaultValue?: number | string;
     defaultValue?: number | string;