ant-design-vue icon indicating copy to clipboard operation
ant-design-vue copied to clipboard

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

Open Gary-Leee opened this issue 1 year ago • 2 comments
trafficstars

  • [x] 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

Gary-Leee avatar Apr 24 '24 08:04 Gary-Leee

image 这样式儿嘛

selicens avatar Apr 25 '24 09:04 selicens

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days

github-actions[bot] avatar Jun 26 '24 02:06 github-actions[bot]