diff --git a/src/Dialog/props.ts b/src/Dialog/props.ts index ca504846b..a9cffac5f 100644 --- a/src/Dialog/props.ts +++ b/src/Dialog/props.ts @@ -34,7 +34,7 @@ export interface Footer { */ layout: 'vertical' | 'horizontal'; } -export interface IModalProps extends IBaseProps { +export interface IDialogProps extends IBaseProps { /** * @description Modal body类名 */ @@ -108,7 +108,7 @@ export interface IModalProps extends IBaseProps { onButtonTap?: (buttonItem) => void; } -export const ModalDefaultProps: Partial = { +export const ModalDefaultProps: Partial = { visible: false, maskClosable: true, closable: true, @@ -117,7 +117,7 @@ export const ModalDefaultProps: Partial = { zIndex: 998, }; -export const ModalFunctionalProps: Partial = { +export const ModalFunctionalProps: Partial = { bodyClassName: '', bodyStyle: '', maskClassName: '', diff --git a/src/PopoverList/props.ts b/src/PopoverList/props.ts index fc771d714..f6a743eb3 100644 --- a/src/PopoverList/props.ts +++ b/src/PopoverList/props.ts @@ -30,7 +30,7 @@ export interface PopoverListItem { * @description 气泡,内部配合 PopoverItem 使用。 */ -export interface IPopoverProps extends IBaseProps { +export interface IPopoverListProps extends IBaseProps { /** * @description 是否可见 * @default false @@ -109,7 +109,7 @@ export interface IPopoverProps extends IBaseProps { list: PopoverListItem[]; } -export const PopoverDefaultProps: Partial = { +export const PopoverDefaultProps: Partial = { visible: null, defaultVisible: false, destroyOnClose: false, diff --git a/src/SafeArea/props.ts b/src/SafeArea/props.ts index 146288f74..c684d8942 100644 --- a/src/SafeArea/props.ts +++ b/src/SafeArea/props.ts @@ -1,9 +1,9 @@ -interface Props { +export interface ISafeAreaProps { className?: string; position: 'top' | 'bottom' | ''; } -export const SafeAreaDefaultProps: Props = { +export const SafeAreaDefaultProps: ISafeAreaProps = { className: '', position: '', }; diff --git a/src/SelectContact/props.ts b/src/SelectContact/props.ts index 4d3cd572e..5a72299f2 100644 --- a/src/SelectContact/props.ts +++ b/src/SelectContact/props.ts @@ -87,7 +87,7 @@ export interface IContactUserInfo { personSource: TPersonSource; } -export interface ISelectContacProps extends IBaseProps { +export interface ISelectContactProps extends IBaseProps { /** 自定义 class */ className: string; @@ -122,7 +122,7 @@ export interface ISelectContacProps extends IBaseProps { onSearchUser: (keyword: string) => void; } -export const SelectContactDefaultProps: Partial = { +export const SelectContactDefaultProps: Partial = { className: '', height: '100%', /** 其他扩展参数 */ diff --git a/src/Sticky/props.ts b/src/Sticky/props.ts index a9886c0d3..455603118 100644 --- a/src/Sticky/props.ts +++ b/src/Sticky/props.ts @@ -1,4 +1,4 @@ -interface Props { +export interface IStickyProps { className: string; headerHeight: number; sticky: boolean; @@ -9,7 +9,7 @@ interface Props { onGetHeaderHeight: (height: number) => void; } -export const StickyProps: Props = { +export const StickyProps: IStickyProps = { className: '', headerHeight: undefined, // 从外部传入的 tab header 高度,默认为 undefined sticky: true, // 是否需要粘性,某些场景可能需要一会儿吸顶一会儿不吸 diff --git a/src/Table/props.ts b/src/Table/props.ts index 334f460d8..1fed3ead3 100644 --- a/src/Table/props.ts +++ b/src/Table/props.ts @@ -1,4 +1,4 @@ -interface Props { +export interface ITableProps { dataSource: []; // 数据源 columns: []; // 表格列的配置描述 scrollHeight?: string; // 可滚动高度 @@ -11,7 +11,7 @@ export interface RenderRuleProps { sorterStatus?: 'normal' | 'forward' | 'reverse'; } -export const TableDefaultProps: Props = { +export const TableDefaultProps: ITableProps = { dataSource: [], columns: [], displayType: 'DEFAULT', diff --git a/src/Voucher/props.ts b/src/Voucher/props.ts index b235f96db..4da4b3646 100644 --- a/src/Voucher/props.ts +++ b/src/Voucher/props.ts @@ -14,7 +14,7 @@ interface Item { disabled?: boolean; } -interface Props { +export interface IVoucherProps { className?: string; direction?: 'horizontal' | 'vertical' | 'multipleColumn'; size?: 'large' | 'small'; @@ -27,7 +27,7 @@ interface Props { onTap?: (item, event) => void; } -export const componentsProps: Props = { +export const componentsProps: IVoucherProps = { className: '', size: 'large', direction: 'horizontal',