mirror of
https://gitee.com/baidu/amis.git
synced 2024-12-04 04:48:32 +08:00
chore: 子表单组件默认关闭严格模式, 可以实时拿到外部最新数据 (#3626)
* chore: 这个组件默认关闭严格模式, 可以实时拿到外部最新数据 * 修复用例问题
This commit is contained in:
parent
fa814e65e3
commit
c5eea38415
@ -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();
|
||||
});
|
||||
|
@ -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 {}
|
||||
|
Loading…
Reference in New Issue
Block a user