Browse Source
fix: the initial value echo for the check-button-group (#6029)
Co-authored-by: sqchen <9110848@qq.com>
pull/6036/head
panda7
1 year ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
1 additions and
2 deletions
-
packages/@core/ui-kit/shadcn-ui/src/components/button/check-button-group.vue
|
|
|
@ -41,7 +41,6 @@ watch( |
|
|
|
innerValue.value.length > 0 ? innerValue.value[0] : undefined; |
|
|
|
} |
|
|
|
}, |
|
|
|
{ immediate: true }, |
|
|
|
); |
|
|
|
|
|
|
|
watch( |
|
|
|
@ -60,7 +59,7 @@ watch( |
|
|
|
innerValue.value = val === undefined ? [] : [val as ValueType]; |
|
|
|
} |
|
|
|
}, |
|
|
|
{ deep: true }, |
|
|
|
{ deep: true, immediate: true }, |
|
|
|
); |
|
|
|
|
|
|
|
async function onBtnClick(value: ValueType) { |
|
|
|
|