🎨
This commit is contained in:
@@ -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>
|
||||||
|
Reference in New Issue
Block a user