-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(components): fix missing v-slot vars
- Loading branch information
1 parent
1373d40
commit 310a289
Showing
9 changed files
with
72 additions
and
52 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
<template> | ||
<ContentHeadline v-slot="{ level }" :data-debug="debug ? 'headline' : undefined"> | ||
<ContentHeadline v-slot="{ currentLevel }" :data-debug="debug ? 'headline' : undefined"> | ||
<slot /> | ||
<pre v-if="debug" :data-debug-context-level="level" /> | ||
<pre v-if="debug" :data-debug-current-level="currentLevel" /> | ||
</ContentHeadline> | ||
</template> | ||
|
||
<script setup> | ||
import { inject } from 'vue'; | ||
import { ContentHeadline } from 'vue-structural-headings'; | ||
import { ContentHeadline } from 'vue-semantic-structure'; | ||
const debug = inject('debugHeadings', false); | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,14 @@ | ||
<template> | ||
<component :is="tag" :data-debug="debug ? 'headline' : undefined"> | ||
<slot /> | ||
<pre v-if="debug" :data-debug-context-level="level" /> | ||
<pre v-if="debug" :data-debug-current-level="currentLevel" /> | ||
</component> | ||
</template> | ||
|
||
<script setup> | ||
import { inject } from 'vue'; | ||
import useCOntentHeadline from '../../../../src/useContentHeadline'; | ||
import useContentHeadline from '../../../../src/useContentHeadline'; | ||
const { tag, level } = useCOntentHeadline(); | ||
const { tag, currentLevel } = useContentHeadline(); | ||
const debug = inject('debugHeadings', false); | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters