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