Skip to content

Commit 6513962

Browse files
author
xuying.xu
committed
fix: ts修复
1 parent f42624c commit 6513962

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

packages/f2/src/components/guide/withGuide.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { jsx, Component, ComponentType } from '@antv/f-engine';
1+
import { jsx, Component, ComponentType, ClassComponent } from '@antv/f-engine';
22
import { isString, isNil, isFunction } from '@antv/util';
33
import Chart, { ChartChildProps, Point } from '../../chart';
44
import { computeLayout, AnimationProps } from '@antv/f-engine';
@@ -13,7 +13,7 @@ export interface GuideProps {
1313

1414
export default function<IProps extends GuideProps = GuideProps>(
1515
View: ComponentType<IProps & ChartChildProps>
16-
): ComponentType<IProps & ChartChildProps> {
16+
): ClassComponent<IProps & ChartChildProps> {
1717
return class Guide extends Component<IProps & ChartChildProps> {
1818
chart: Chart;
1919

213 Bytes
Loading

packages/f2/test/components/guide/preciseGuide.test.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ describe('precise', () => {
6060
const chart = new Canvas(props);
6161
await chart.render();
6262

63-
await delay(100);
63+
await delay(500);
6464
expect(context).toMatchImageSnapshot();
6565
});
6666

@@ -108,7 +108,7 @@ describe('precise', () => {
108108
const chart = new Canvas(props);
109109
await chart.render();
110110

111-
await delay(100);
111+
await delay(500);
112112
expect(context).toMatchImageSnapshot();
113113
});
114114
});

0 commit comments

Comments
 (0)