Skip to content

Commit 9f7eadb

Browse files
committed
fix(tiny): type define
1 parent bd8151e commit 9f7eadb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/plots/tiny-line/constants.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ export const DEFAULT_TOOLTIP_OPTIONS = {
55
showTitle: false,
66
shared: true,
77
showMarkers: false,
8-
customContent: (x: number, data: Data) => `${get(data, [0, 'data', 'y'], 0).toFixed(1)}`, // 默认给个格式化
8+
customContent: (x: string, data: any[]) => `${get(data, [0, 'data', 'y'], 0).toFixed(1)}`, // 默认给个格式化
99
containerTpl: '<div class="g2-tooltip"><div class="g2-tooltip-list"></div></div>',
1010
itemTpl: '<span>{value}</span>',
1111
domStyles: {

0 commit comments

Comments
 (0)