浏览代码

fix(typescript): DatePicker and Tooltip

走鹃 3 年之前
父节点
当前提交
01e9f226e9
共有 2 个文件被更改,包括 2 次插入2 次删除
  1. 1 1
      packages/semi-ui/datePicker/yearAndMonth.tsx
  2. 1 1
      packages/semi-ui/tooltip/index.tsx

+ 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;
                     }