This commit is contained in:
syuilo 2025-03-03 11:50:19 +09:00
parent 14a6a71a17
commit e7a0a567db
1 changed files with 2 additions and 1 deletions

View File

@ -18,10 +18,11 @@ const props = defineProps<{
icon?: string;
keywords?: string[];
children?: string[];
childrenHidden?: boolean;
}>();
const hash = window.location.hash.slice(1);
const highlighted = hash === props.markerId || (props.children && props.children.includes(hash));
const highlighted = hash === props.markerId || (props.children && props.childrenHidden && props.children.includes(hash));
</script>
<style lang="scss" module>