chore: change variable name
Some checks failed
Spell Check / Spell Check with Typos (push) Failing after 6s
Some checks failed
Spell Check / Spell Check with Typos (push) Failing after 6s
This commit is contained in:
parent
696ece1c5b
commit
34079ac9c6
1 changed files with 4 additions and 4 deletions
|
|
@ -30,7 +30,7 @@ const category = ref('');
|
|||
const page = ref('');
|
||||
const content = ref('');
|
||||
const contentParsed = ref<ReturnType<typeof md.parse>>();
|
||||
const active = ref('');
|
||||
const contentViewing = ref('');
|
||||
const toc = ref(true);
|
||||
|
||||
onMounted(async () => {
|
||||
|
|
@ -79,7 +79,7 @@ function onScroll() {
|
|||
current = v.id;
|
||||
}
|
||||
});
|
||||
active.value = current;
|
||||
contentViewing.value = current;
|
||||
}
|
||||
|
||||
function onResize() {
|
||||
|
|
@ -136,7 +136,7 @@ async function scrollTo(id: string) {
|
|||
v-if="token.tag === 'h2' && token.type === 'heading_open'"
|
||||
class="tabNative"
|
||||
active-class="text-blue-7 active-item text-weight-medium tabActive"
|
||||
:active="active === token.attrGet('id')"
|
||||
:active="contentViewing === token.attrGet('id')"
|
||||
@click="scrollTo(token.attrGet('id') || '')"
|
||||
clickable
|
||||
v-ripple
|
||||
|
|
@ -156,7 +156,7 @@ async function scrollTo(id: string) {
|
|||
v-if="token.tag === 'h3' && token.type === 'heading_open'"
|
||||
class="tabNative child-tab"
|
||||
active-class="text-blue-7 active-item text-weight-medium tabActive"
|
||||
:active="active === token.attrGet('id')"
|
||||
:active="contentViewing === token.attrGet('id')"
|
||||
@click="scrollTo(token.attrGet('id') || '')"
|
||||
clickable
|
||||
v-ripple
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue