Skip to content

Commit

Permalink
支持更多的卡片设置
Browse files Browse the repository at this point in the history
  • Loading branch information
chenshuai2144 committed Sep 12, 2024
1 parent a6f2919 commit de02294
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/form/src/BaseForm/createField.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ function createField<P extends ProFormFieldItemProps = any>(
ignoreWidth,
defaultProps,
...defaultFormItemProps
} = { ...props?.filedConfig, ...config } || {};
} = { ...props?.filedConfig, ...config };
const {
label,
tooltip,
Expand Down
3 changes: 2 additions & 1 deletion tests/setupTests.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import '@testing-library/jest-dom';
/* eslint-disable react/no-is-mounted */
import '@testing-library/jest-dom';
import crypto from 'crypto';
import MockDate from 'mockdate';
import React from 'react';
Expand Down
1 change: 1 addition & 0 deletions tests/table/editor-table.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,7 @@ describe('EditorProTable', () => {
await waitForWaitTime(1000);

try {
//@ts-ignore
actionRef.current?.addEditRecord(undefined);
} catch (error) {
expect((error as any).message).toEqual(
Expand Down

0 comments on commit de02294

Please sign in to comment.