mirror of
https://gitee.com/baidu/amis.git
synced 2024-11-29 18:48:45 +08:00
chore: coverage 执行换成 v8 解决内存问题 (#5679)
This commit is contained in:
parent
e609df9e44
commit
a1fdec0748
@ -16,7 +16,7 @@
|
||||
"test": "npm test --workspaces",
|
||||
"update-snapshot": "npm run update-snapshot --workspaces",
|
||||
"prepare": "husky install",
|
||||
"coverage": "jest --coverage --coverage-provider=v8",
|
||||
"coverage": "jest --coverage --collectCoverage=v8",
|
||||
"version": "lerna version",
|
||||
"release": "npm run build --workspaces && lerna publish from-package --registry=https://registry.npmjs.org --ignore-scripts",
|
||||
"revision": "ts-node ./scripts/generate-revision.ts",
|
||||
|
@ -8,7 +8,7 @@ import {
|
||||
SchemaClassName,
|
||||
SchemaObject
|
||||
} from '../../Schema';
|
||||
import Form, {FormHorizontal} from 'amis-core';
|
||||
import {FormHorizontal} from 'amis-core';
|
||||
|
||||
export type GroupSubControl = SchemaObject & {
|
||||
/**
|
||||
@ -173,9 +173,10 @@ export class ControlGroupRenderer extends React.Component<InputGroupProps> {
|
||||
const controlMode = (control as FormBaseControl)?.mode || formMode;
|
||||
|
||||
if (
|
||||
controlMode === 'inline'
|
||||
controlMode === 'inline' ||
|
||||
// hidden 直接渲染,否则会有个空 Form-groupColumn 层
|
||||
|| control?.type && ['formula', 'hidden'].includes((control as any).type)
|
||||
(control?.type &&
|
||||
['formula', 'hidden'].includes((control as any).type))
|
||||
) {
|
||||
return this.renderControl(control, index, {
|
||||
key: index,
|
||||
|
Loading…
Reference in New Issue
Block a user