Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

滑块Slider里handlerStyle里的Img设置无效请问该如何解决 #2946

Closed
1 task
xiaoxiaoting opened this issue Oct 22, 2020 · 9 comments
Closed
1 task
Labels

Comments

@xiaoxiaoting
Copy link

  • I have searched the issues of this repository and believe that this is not a duplicate.

Reproduction link

Edit on CodeSandbox

Steps to reproduce

覆盖默认的滑块操作块样式时,滑块Slider里handlerStyle里的Img设置无效

Environment Info
g2 4.0.15
System -
Browser -
@hustcc
Copy link
Member

hustcc commented Oct 22, 2020

不支持 handlerStyle.img 配置啊~

@xiaoxiaoting
Copy link
Author

不支持 handlerStyle.img 配置啊~

那要怎么设置自定义的icon呢?

@hustcc
Copy link
Member

hustcc commented Oct 22, 2020

不支持 handlerStyle.img 配置啊~

那要怎么设置自定义的icon呢?

暂不支持,你从什么渠道得知这么配置的?

@xiaoxiaoting
Copy link
Author

不支持 handlerStyle.img 配置啊~

那要怎么设置自定义的icon呢?

暂不支持,你从什么渠道得知这么配置的?

https://github.com/antvis/g2-plugin-slider里看到的配置,有img这个属性,如果不支持的话还有其他的方法嘛,我们的UI设计稿里icon是类似暂停播放键那样的圆形图案

@xiaoxiaoting
Copy link
Author

不支持 handlerStyle.img 配置啊~

那要怎么设置自定义的icon呢?

暂不支持,你从什么渠道得知这么配置的?

https://github.com/antvis/g2-plugin-slider里看到的配置,有img这个属性,如果不支持的话还有其他的方法嘛,我们的UI设计稿里icon是类似暂停播放键那样的圆形图案

不知道handlerStyle里的具体属性可以在哪里看到,目前设置的宽高属性是可以的

@hustcc
Copy link
Member

hustcc commented Oct 22, 2020

看api文档中的slider部分。

@xiaoxiaoting
Copy link
Author

xiaoxiaoting commented Oct 24, 2020 via email

@bigbigqiang
Copy link

image
image

这个是源码配置项,只有宽度和高度,没有其他配置项,看来这个图标库并不完善

@hustcc
Copy link
Member

hustcc commented Jan 29, 2021

4.x 中的 slider 还不支持 img 滑块配置!5.0 中支持,可以参考案例

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants