chore: 子表单组件默认关闭严格模式, 可以实时拿到外部最新数据 (#3626)

* chore: 这个组件默认关闭严格模式, 可以实时拿到外部最新数据

* 修复用例问题
This commit is contained in:
liaoxuezhi 2022-02-23 10:28:44 +08:00 committed by GitHub
parent fa814e65e3
commit c5eea38415
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 6 deletions

View File

@ -85,14 +85,14 @@ test('Renderer:button-group:multiple clearable', async () => {
makeEnv()
)
);
await wait(100);
await wait(200);
fireEvent.click(getByText(/Option A/));
await wait(100);
await wait(200);
fireEvent.click(getByText(/Option B/));
await wait(300);
await wait(600);
expect(container).toMatchSnapshot();
await wait(100);
await wait(200);
fireEvent.click(getByText(/Option B/));
await wait(300);
await wait(600);
expect(container).toMatchSnapshot();
});

View File

@ -524,6 +524,7 @@ export default class SubFormControl extends React.PureComponent<
@FormItem({
type: 'input-sub-form',
sizeMutable: false
sizeMutable: false,
strictMode: false
})
export class SubFormControlRenderer extends SubFormControl {}