fix(settings): close dropdown after choosing icon

This commit is contained in:
三咲智子 2023-01-03 05:09:15 +08:00
parent ddb6e90e21
commit 5dffd380b0
No known key found for this signature in database
GPG key ID: 69992F2250DFD93E
2 changed files with 14 additions and 3 deletions

View file

@ -7,8 +7,13 @@ defineProps<{
const dropdown = $ref<any>()
const colorMode = useColorMode()
const hide = () => dropdown.hide()
provide(dropdownContextKey, {
hide: () => dropdown.hide(),
hide,
})
defineExpose({
hide,
})
</script>