This commit is contained in:
parent
14a6a71a17
commit
e7a0a567db
|
@ -18,10 +18,11 @@ const props = defineProps<{
|
||||||
icon?: string;
|
icon?: string;
|
||||||
keywords?: string[];
|
keywords?: string[];
|
||||||
children?: string[];
|
children?: string[];
|
||||||
|
childrenHidden?: boolean;
|
||||||
}>();
|
}>();
|
||||||
|
|
||||||
const hash = window.location.hash.slice(1);
|
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>
|
</script>
|
||||||
|
|
||||||
<style lang="scss" module>
|
<style lang="scss" module>
|
||||||
|
|
Loading…
Reference in New Issue