Skip to content

Commit

Permalink
Merge pull request #2671 from XiaoMi/hotfix/type-define
Browse files Browse the repository at this point in the history
fix: 修复组件参数类型错误
  • Loading branch information
solarjoker authored Nov 21, 2023
2 parents 9fcdd5b + 6d79094 commit 5f3709e
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
7 changes: 7 additions & 0 deletions .changeset/metal-onions-unite.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
"@hi-ui/pop-confirm": patch
"@hi-ui/table": patch
"@hi-ui/hiui": patch
---

fix: 修复组件参数类型错误
2 changes: 1 addition & 1 deletion packages/ui/pop-confirm/src/PopConfirm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ export interface PopConfirmProps extends Omit<HiBaseHTMLProps<'div'>, 'title'>,
/**
* 确认框内容
*/
content: React.ReactNode
content?: React.ReactNode
/**
* 取消按钮文案
*/
Expand Down
4 changes: 2 additions & 2 deletions packages/ui/table/src/BaseTable.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React, { forwardRef, useMemo } from 'react'
import { cx, getPrefixCls } from '@hi-ui/classname'
import { __DEV__ } from '@hi-ui/env'
import { HiBaseHTMLProps, useLocaleContext } from '@hi-ui/core'
import { HiBaseHTMLProps, HiBaseSizeEnum, useLocaleContext } from '@hi-ui/core'
import { IconButton } from '@hi-ui/icon-button'
import { PlusSquareOutlined, MinusSquareOutlined } from '@hi-ui/icons'
import { isFunction } from '@hi-ui/type-assertion'
Expand Down Expand Up @@ -340,7 +340,7 @@ export interface BaseTableProps
/**
* 配置表格尺寸
*/
size?: string
size?: HiBaseSizeEnum
/**
* 底部吸底
*/
Expand Down

0 comments on commit 5f3709e

Please sign in to comment.