Browse Source

fix(typescript): DatePicker and Tooltip

走鹃 3 years ago
parent
commit
01e9f226e9

+ 1 - 1
packages/semi-ui/datePicker/yearAndMonth.tsx

@@ -208,7 +208,7 @@ class YearAndMonth extends BaseComponent<YearAndMonthProps, YearAndMonthState> {
                     <div className={prefix}>
                         <IconButton
                             noHorizontalPadding={false}
-                            iconType={<IconChevronLeft size={iconSize} />}
+                            icon={<IconChevronLeft size={iconSize} />}
                             size={buttonSize}
                             onClick={this.backToMain}
                         >

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

@@ -301,7 +301,7 @@ export default class Tooltip extends BaseComponent<TooltipProps, TooltipState> {
                 if (this.clickOutsideHandler) {
                     this.adapter.unregisterClickOutsideHandler();
                 }
-                this.clickOutsideHandler = (e: MouseEvent): any => {
+                this.clickOutsideHandler = (e: React.MouseEvent): any => {
                     if (!this.mounted) {
                         return false;
                     }