vueComponent/ant-design-vue

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

Gary-Leee opened this issue · 1 comments

  • 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

image
这样式儿嘛