diff --git a/src/packages/inputnumber/inputnumber.taro.tsx b/src/packages/inputnumber/inputnumber.taro.tsx index 7e3b2f26d1aa62cc8255aa5c1824730d6c8ca677..95508ccc15a4af90c746f90cbc6fdf269da119f1 100644 --- a/src/packages/inputnumber/inputnumber.taro.tsx +++ b/src/packages/inputnumber/inputnumber.taro.tsx @@ -52,7 +52,8 @@ function pxCheck(value: string | number): string { return Number.isNaN(Number(value)) ? String(value) : `${value}px` } export const InputNumber: FunctionComponent< - Partial & React.HTMLAttributes + Partial & + Omit, 'onChange' | 'onBlur'> > = (props) => { const { children, diff --git a/src/packages/inputnumber/inputnumber.tsx b/src/packages/inputnumber/inputnumber.tsx index 97e89329c0e6619ecbd55bfcff43d0b63c1b354a..c8947dee6a4501e8293e0d9a037d27f9272e63fb 100644 --- a/src/packages/inputnumber/inputnumber.tsx +++ b/src/packages/inputnumber/inputnumber.tsx @@ -54,7 +54,8 @@ function pxCheck(value: string | number): string { } export const InputNumber: FunctionComponent< - Partial & React.HTMLAttributes + Partial & + Omit, 'onChange' | 'onBlur'> > = (props) => { const { children, diff --git a/src/packages/video/video.taro.tsx b/src/packages/video/video.taro.tsx index b9d69aa95eb0813d7eb6f1ffcbc510e25c4f88e0..2ccc86b3089b8f57925248b3438903f2e6215743 100644 --- a/src/packages/video/video.taro.tsx +++ b/src/packages/video/video.taro.tsx @@ -39,7 +39,8 @@ const defaultProps = { }, } as VideoProps export const Video: FunctionComponent< - Partial & React.HTMLAttributes + Partial & + Omit, 'onPause' | 'onPlay'> > = (props) => { const { children, diff --git a/src/packages/video/video.tsx b/src/packages/video/video.tsx index b9d69aa95eb0813d7eb6f1ffcbc510e25c4f88e0..2ccc86b3089b8f57925248b3438903f2e6215743 100644 --- a/src/packages/video/video.tsx +++ b/src/packages/video/video.tsx @@ -39,7 +39,8 @@ const defaultProps = { }, } as VideoProps export const Video: FunctionComponent< - Partial & React.HTMLAttributes + Partial & + Omit, 'onPause' | 'onPlay'> > = (props) => { const { children,