antvis/G6



The issue has been closed
trendTimeBar 的 SliderOption['handlerStyle'] 类型声明与实际不符 #5095
iahu posted onGitHub
问题描述
在 SliderOption
类型定义中, handlerStyle 还有一个 style?: ShapeStyle
属性,从这个定义可以推测出应该使用 style 属性来设置 handler 的样式。
handlerStyle?: {
width?: number;
height?: number;
style?: ShapeStyle;
};
但在代码中,实际上代码里是将 handlerStyle
当成 style
对象来使用和传递的。从而导致设置 handlerStyle.style
不生效。
重现链接
https://github.com/antvis/G6/blob/master/packages/plugin/src/timeBar/trendTimeBar.ts
重现步骤
预期行为
修改类型定义或代码逻辑
平台
- 操作系统: [macOS, Windows, Linux, React Native ...]
- 网页浏览器: [Google Chrome, Safari, Firefox]
- G6 版本: [4.5.1 ... ]
屏幕截图或视频(可选)
No response
补充说明(可选)
No response