antvis/G6

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

重现步骤

查看 266454

预期行为

修改类型定义或代码逻辑

平台

  • 操作系统: [macOS, Windows, Linux, React Native ...]
  • 网页浏览器: [Google Chrome, Safari, Firefox]
  • G6 版本: [4.5.1 ... ]

屏幕截图或视频(可选)

No response

补充说明(可选)

No response


Hi @iahu, Please star this repo if you find it useful! Thanks :star:! 你好 @iahu。如果该仓库对你有用,可以 star 一下,感谢你的 :star:!

posted by github-actions[bot] over 1 year ago

可以来个 PR 共建一波~~

posted by Yanyan-Wang over 1 year ago

This issue has been closed because it has been outdate for a long time. Please open a new issue if you still need help.

这个 issue 已经被关闭,因为 它已经过期很久了。 如果你仍然需要帮助,请创建一个新的 issue。

posted by github-actions[bot] 10 months ago

Fund this Issue

$0.00
Funded

Pull requests