Skip to content

Commit

Permalink
fix(component): 修复导出类型错误
Browse files Browse the repository at this point in the history
  • Loading branch information
yaob421123 committed Apr 22, 2023
1 parent 56d80cc commit 20ebaf7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
4 changes: 2 additions & 2 deletions packages/components/src/ProForm/type.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export interface ProFormProps {
/** 只读模式 参考Descriptions参数 */
readOnlyProps?: DescriptionsProps;
/** 自定义组件 */
customWidgetsList?: Fields;
customWidgetsList?: FormFields;
form?: UseFormProps;
cardProps?: CardProps;
collapseProps?: CollapseProps;
Expand Down Expand Up @@ -82,7 +82,7 @@ export interface RulesProps {
required?: boolean;
}

export type Fields = {
export type FormFields = {
[key: string]: any;
};

Expand Down
1 change: 0 additions & 1 deletion packages/components/src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ export * from './ProDrawer';
export { default as ProForm } from './ProForm';
export * from './ProForm';
export { default as useForm } from './ProForm/hooks/useForm';
export * from './ProForm';

export * from './form';
export { default as Form } from './form';

0 comments on commit 20ebaf7

Please sign in to comment.