fix(components): [select] fix option-group get wrong visible (#9726)

* fix(components): [select] fix option-group get wrong visible

* fix(components): [select] fix option-group get wrong visible

* fix(components): [select] fix option-group get wrong visible

Co-authored-by: qinye <953218204@qq.com>
This commit is contained in:
init-qy
2022-09-10 22:07:06 +08:00
committed by GitHub
parent 189c379ddc
commit c64ea617ef

View File

@@ -77,9 +77,13 @@ export default defineComponent({
}
const { groupQueryChange } = toRaw(select)
watch(groupQueryChange, () => {
visible.value = children.value.some((option) => option.visible === true)
})
watch(
groupQueryChange,
() => {
visible.value = children.value.some((option) => option.visible === true)
},
{ flush: 'post' }
)
return {
visible,