Skip to content

Commit

Permalink
fix(ProForm): 修改ci报错
Browse files Browse the repository at this point in the history
  • Loading branch information
ChenlingasMx committed Apr 25, 2023
1 parent fc958e2 commit 3d8f829
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export interface SelectMultipleProps {
}

function SelectMultiple(
this: import('../../type').Fields,
this: import('../../type').FormFields,
{
option = [],
onChange,
Expand Down
8 changes: 4 additions & 4 deletions packages/components/src/ProForm/widgets/index.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Fields, FormItemsProps } from '../type';
import { FormFields, FormItemsProps } from '../type';
import {
Input,
InputNumber,
Expand Down Expand Up @@ -27,9 +27,9 @@ import { isRequired } from '../utils';
export function getFormFields(
readOnly?: boolean,
formDatas: FormItemsProps[] = [],
customWidgetsList: Fields = {},
customWidgetsList: FormFields = {},
) {
const widgetsList: Fields = {
const widgetsList: FormFields = {
input: Input,
inputNumber: InputNumber,
radio: Radio,
Expand All @@ -47,7 +47,7 @@ export function getFormFields(
searchTree: SearchTree,
...customWidgetsList,
};
const fields: Fields = {};
const fields: FormFields = {};
formDatas.forEach((col) => {
if (!readOnly) delete col.readSpan;
if (col) {
Expand Down

0 comments on commit 3d8f829

Please sign in to comment.