mirror of
https://github.com/element-plus/element-plus.git
synced 2026-03-13 07:51:17 +08:00
Badge: fix deconstructing props invalidates the data response bug (#1337)
This commit is contained in:
@@ -59,11 +59,10 @@ export default defineComponent({
|
||||
if (props.isDot) {
|
||||
return
|
||||
}
|
||||
const { value, max } = props
|
||||
if (typeof value === 'number' && typeof max === 'number') {
|
||||
return max < value ? `${max}+` : value
|
||||
if (typeof props.value === 'number' && typeof props.max === 'number') {
|
||||
return props.max < props.value ? `${props.max}+` : props.value
|
||||
}
|
||||
return value
|
||||
return props.value
|
||||
})
|
||||
return {
|
||||
content,
|
||||
|
||||
Reference in New Issue
Block a user