fix: 修复物料基础组件 BaseRate 重复触发 change 事件问题 (#254)

This commit is contained in:
alwayrun 2024-06-04 15:36:18 +08:00 committed by GitHub
parent 01eb1dda73
commit efabb958aa
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -52,8 +52,11 @@ export default defineComponent({
})
const handleClick = (num) => {
if (props.readonly) return
if (rating.value !== num) {
rating.value = num
}
}
return {
rating,
range,