فهرست منبع

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';
 
 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 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';
 
 export interface InputNumberProps extends InputProps {
-    [x: string]: any;
     autofocus?: boolean;
     className?: string;
     defaultValue?: number | string;