diff --git a/.changeset/metal-onions-unite.md b/.changeset/metal-onions-unite.md new file mode 100644 index 000000000..9b701110b --- /dev/null +++ b/.changeset/metal-onions-unite.md @@ -0,0 +1,7 @@ +--- +"@hi-ui/pop-confirm": patch +"@hi-ui/table": patch +"@hi-ui/hiui": patch +--- + +fix: 修复组件参数类型错误 diff --git a/packages/ui/pop-confirm/src/PopConfirm.tsx b/packages/ui/pop-confirm/src/PopConfirm.tsx index 97bc2ccb3..1a4efd529 100644 --- a/packages/ui/pop-confirm/src/PopConfirm.tsx +++ b/packages/ui/pop-confirm/src/PopConfirm.tsx @@ -109,7 +109,7 @@ export interface PopConfirmProps extends Omit, 'title'>, /** * 确认框内容 */ - content: React.ReactNode + content?: React.ReactNode /** * 取消按钮文案 */ diff --git a/packages/ui/table/src/BaseTable.tsx b/packages/ui/table/src/BaseTable.tsx index b500e9fca..f3d327deb 100644 --- a/packages/ui/table/src/BaseTable.tsx +++ b/packages/ui/table/src/BaseTable.tsx @@ -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' @@ -340,7 +340,7 @@ export interface BaseTableProps /** * 配置表格尺寸 */ - size?: string + size?: HiBaseSizeEnum /** * 底部吸底 */