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

Tour组件箭头有空隙,而且不支持style? #48929

Closed
zystudios opened this issue May 14, 2024 · 3 comments · Fixed by react-component/trigger#465
Closed

Tour组件箭头有空隙,而且不支持style? #48929

zystudios opened this issue May 14, 2024 · 3 comments · Fixed by react-component/trigger#465

Comments

@zystudios
Copy link

What problem does this feature solve?

image

目前这个弹框520px宽是写死的么,除了覆盖,还有什么办法可以支持修改宽度高度?
目前这个宽度对我来说太宽了,需要缩小

image

另外,发现箭头有空隙

What does the proposed API look like?

对外暴露style

@MadCcc
Copy link
Member

MadCcc commented May 15, 2024

  1. 间隙是精度问题,trigger 组件强制对齐到整数可能能解
  2. Tour 的宽度可以在 TourStep 使用 style 修改

@zystudios
Copy link
Author

  1. 间隙是精度问题,trigger 组件强制对齐到整数可能能解
  2. Tour 的宽度可以在 TourStep 使用 style 修改

@MadCcc 感谢,果然在step里可以写css,这个文档是不是补充一下,没提有style ,https://ant.design/components/tour-cn

@yoyo837
Copy link
Contributor

yoyo837 commented May 29, 2024

Close by react-component/trigger#465

@yoyo837 yoyo837 closed this as completed May 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants