variable-fix-layout.test.ts 318 B

123456789
  1. import { runFixedLayoutTest } from '../__mocks__/run-fixed-layout-test';
  2. import { fixLayout1 } from '../__mocks__/fixed-layout-specs';
  3. runFixedLayoutTest('Variable Fix Layout', fixLayout1, {
  4. startNodeId: 'start',
  5. isNodeChildrenPrivate: node =>
  6. // 只有循环是 private
  7. node.flowNodeType === 'loop',
  8. });