fix: 修复物料基础组件 BaseRate 重复触发 change 事件问题 (#254)
This commit is contained in:
parent
01eb1dda73
commit
efabb958aa
@ -52,7 +52,10 @@ export default defineComponent({
|
||||
})
|
||||
const handleClick = (num) => {
|
||||
if (props.readonly) return
|
||||
rating.value = num
|
||||
|
||||
if (rating.value !== num) {
|
||||
rating.value = num
|
||||
}
|
||||
}
|
||||
return {
|
||||
rating,
|
||||
|
Loading…
Reference in New Issue
Block a user