Browse Source

fix: fix ComponentPropsWithRef type function failed with Button (#1552)

代强 2 years ago
parent
commit
2f28e39025
1 changed files with 1 additions and 1 deletions
  1. 1 1
      packages/semi-ui/button/index.tsx

+ 1 - 1
packages/semi-ui/button/index.tsx

@@ -19,7 +19,7 @@ class Button extends React.PureComponent<ButtonProps> {
         ...IconButton.propTypes,
     };
     static elementType: string;
-    constructor(props = {}) {
+    constructor(props: ButtonProps = {}) {
         super(props);
     }
     render() {