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

steps 组件在没有设置v-model的时候能触发hover样式 #7529

Open
1 task done
Gary-Leee opened this issue Apr 24, 2024 · 1 comment · May be fixed by #7537
Open
1 task done

steps 组件在没有设置v-model的时候能触发hover样式 #7529

Gary-Leee opened this issue Apr 24, 2024 · 1 comment · May be fixed by #7537
Assignees

Comments

@Gary-Leee
Copy link

Gary-Leee commented Apr 24, 2024

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

Version

4.2.0

Environment

windows 10 chrome124.0.6367.60

Reproduction link

https://www.antdv.com/components/steps-cn#components-steps-demo-clickable

Steps to reproduce

官网示例 ant-design 2.X的版本,a-steps没有设置 v-model,就无法触发hover样式;ant-design 3.X及以后的版本,没有设置 v-model也能触发hover样式

What is expected?

没有设置v-model就是不可点击样式

What is actually happening?

ant-design 3.X及以后的版本,a-steps无论有没有设置 v-model,都能触发hover样式


我二开的解决方案是判断props['onUpdate:current']!==undefined,就加上point-event:auto,其他默认为none

@selicens
Copy link
Member

image
这样式儿嘛

@selicens selicens self-assigned this Apr 25, 2024
@Gary-Leee Gary-Leee closed this as not planned Won't fix, can't repro, duplicate, stale Apr 26, 2024
@Gary-Leee Gary-Leee reopened this Apr 26, 2024
@selicens selicens linked a pull request Apr 26, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants