Use old v-slot syntax in docs

This commit is contained in:
Michael Wedl 2024-04-29 07:41:27 +02:00
parent b667704aca
commit 841e713981
23 changed files with 26 additions and 26 deletions

View File

@ -67,7 +67,7 @@ report_template = """
<pagebreak />
<table-of-contents id="toc" v-slot="{ items: tocItems }">
<table-of-contents id="toc" v-slot="tocItems">
<h1>Table of Contents</h1>
<ul>
<li v-for="item in tocItems" :class="'toc-level' + item.level">
@ -78,7 +78,7 @@ report_template = """
</table-of-contents>
<list-of-figures id="lof" v-slot="{ items }">
<list-of-figures id="lof" v-slot="items">
<section v-if="items.length > 0">
<h1 class="in-toc">List of Figures</h1>
<ul>

View File

@ -61,7 +61,7 @@ report_template = """
</section>
<table-of-contents id="toc" v-slot="{ items: tocItems }">
<table-of-contents id="toc" v-slot="tocItems">
<h1>Table of Contents</h1>
<ul>
<li v-for="item in tocItems" :class="'toc-level' + item.level">

View File

@ -58,7 +58,7 @@ report_template = """
</div>
</section>
<table-of-contents id="toc" v-slot="{ items: tocItems }">
<table-of-contents id="toc" v-slot="tocItems">
<h1>Table of Contents</h1>
<ul>
<li v-for="item in tocItems" :class="'toc-level' + item.level">

View File

@ -511,7 +511,7 @@ report_template = """
<pagebreak />
<table-of-contents id="toc" v-slot="{ items: tocItems }">
<table-of-contents id="toc" v-slot="tocItems">
<h1>Table of Contents</h1>
<ul>
<li v-for="item in tocItems" :class="'toc-level' + item.level">
@ -522,7 +522,7 @@ report_template = """
</table-of-contents>
<list-of-figures id="lof" v-slot="{ items }">
<list-of-figures id="lof" v-slot="items">
<section v-if="items.length > 0">
<h1 class="in-toc">List of Figures</h1>
<ul>

View File

@ -504,7 +504,7 @@ report_template = """
</section>
<table-of-contents id="toc" v-slot="{ items: tocItems }">
<table-of-contents id="toc" v-slot="tocItems">
<h1>Table of Contents</h1>
<ul>
<li v-for="item in tocItems" :class="'toc-level' + item.level">

View File

@ -366,7 +366,7 @@ report_template = """
<table-of-contents id="toc" v-slot="{ items: tocItems }">
<table-of-contents id="toc" v-slot="tocItems">
<h1>Table of Contents</h1>
<ul>
<li v-for="item in tocItems" :class="'toc-level' + item.level">

View File

@ -53,7 +53,7 @@ report_template = """
</section>
<table-of-contents id="toc" v-slot="{ items: tocItems }">
<table-of-contents id="toc" v-slot="tocItems">
<h1>Table of Contents</h1>
<ul>
<li v-for="item in tocItems" :class="'toc-level' + item.level">

View File

@ -56,7 +56,7 @@ report_template = """
</section>
<table-of-contents id="toc" v-slot="{ items: tocItems }">
<table-of-contents id="toc" v-slot="tocItems">
<h1>Table of Contents</h1>
<ul>
<li v-for="item in tocItems" :class="'toc-level' + item.level">

View File

@ -53,7 +53,7 @@ report_template = """
</section>
<table-of-contents id="toc" v-slot="{ items: tocItems }">
<table-of-contents id="toc" v-slot="tocItems">
<h1>Table of Contents</h1>
<ul>
<li v-for="item in tocItems" :class="'toc-level' + item.level">

View File

@ -56,7 +56,7 @@ report_template = """
</section>
<table-of-contents id="toc" v-slot="{ items: tocItems }">
<table-of-contents id="toc" v-slot="tocItems">
<h1>Table of Contents</h1>
<ul>
<li v-for="item in tocItems" :class="'toc-level' + item.level">

View File

@ -39,7 +39,7 @@ report_template = """
<pagebreak />
<table-of-contents id="toc" v-slot="{ items: tocItems }">
<table-of-contents id="toc" v-slot="tocItems">
<h1>Table of Contents</h1>
<ul>
<li v-for="item in tocItems" :class="'toc-level' + item.level">

View File

@ -45,7 +45,7 @@ report_template = """
<table-of-contents id="toc" v-slot="{ items: tocItems }">
<table-of-contents id="toc" v-slot="tocItems">
<h1>Table of Contents</h1>
<ul>
<li v-for="item in tocItems" :class="'toc-level' + item.level">

View File

@ -37,7 +37,7 @@ report_template = """
<pagebreak />
<table-of-contents id="toc" v-slot="{ items: tocItems }">
<table-of-contents id="toc" v-slot="tocItems">
<h1>Table of Contents</h1>
<ul>
<li v-for="item in tocItems" :class="'toc-level' + item.level">

View File

@ -41,7 +41,7 @@ report_template = """
</section>
<pagebreak />
<table-of-contents id="toc" v-slot="{ items: tocItems }">
<table-of-contents id="toc" v-slot="tocItems">
<h1>Table of Contents</h1>
<ul>
<li v-for="item in tocItems" :class="'toc-level' + item.level">

View File

@ -41,7 +41,7 @@ report_template = """
<pagebreak />
<table-of-contents id="toc" v-slot="{ items: tocItems }">
<table-of-contents id="toc" v-slot="tocItems">
<h1>Table of Contents</h1>
<ul>
<li v-for="item in tocItems" :class="'toc-level' + item.level">

View File

@ -42,7 +42,7 @@ report_template = """
<pagebreak />
<table-of-contents id="toc" v-slot="{ items: tocItems }">
<table-of-contents id="toc" v-slot="tocItems">
<h1>Table of Contents</h1>
<ul>
<li v-for="item in tocItems" :class="'toc-level' + item.level">

View File

@ -41,7 +41,7 @@ report_template = """
<pagebreak />
<table-of-contents id="toc" v-slot="{ items: tocItems }">
<table-of-contents id="toc" v-slot="tocItems">
<h1>Table of Contents</h1>
<ul>
<li v-for="item in tocItems" :class="'toc-level' + item.level">

View File

@ -41,7 +41,7 @@ report_template = """
<pagebreak />
<table-of-contents id="toc" v-slot="{ items: tocItems }">
<table-of-contents id="toc" v-slot="tocItems">
<h1>Table of Contents</h1>
<ul>
<li v-for="item in tocItems" :class="'toc-level' + item.level">

View File

@ -41,7 +41,7 @@ report_template = """
<pagebreak />
<table-of-contents id="toc" v-slot="{ items: tocItems }">
<table-of-contents id="toc" v-slot="tocItems">
<h1>Table of Contents</h1>
<ul>
<li v-for="item in tocItems" :class="'toc-level' + item.level">

View File

@ -40,7 +40,7 @@ report_template = """
<pagebreak />
<table-of-contents id="toc" v-slot="{ items: tocItems }">
<table-of-contents id="toc" v-slot="tocItems">
<h1>Table of Contents</h1>
<ul>
<li v-for="item in tocItems" :class="'toc-level' + item.level">

View File

@ -66,7 +66,7 @@ The component uses multi-pass rendering.
In the first render-pass it does nothing, in the second pass it collects all previously rendered `<figcaption>` tags and provides them in the variable `items`.
```html
<list-of-figures id="lof" v-slot="{ items }" >
<list-of-figures id="lof" v-slot="items" >
<section v-if="items.length > 0">
<h1 class="in-toc">List of Figures</h1>
<ul>

View File

@ -162,7 +162,7 @@ This example renders a table of contents with
* links entries to the target pages, such that you can click on the TOC entries and jump to the referenced pa
```html
<table-of-contents v-slot="{ items: tocItems }">
<table-of-contents v-slot="tocItems">
<ul class="toc">
<template v-for="item in tocItems">
<li :class="'level-' + item.level"><a :href="item.href">{{ item.title }}</a></li>
@ -214,7 +214,7 @@ This example renders a table of contents with
* supports regular chapters and appendix chapters
```html
<table-of-contents v-slot="{ items: tocItems }">
<table-of-contents v-slot="tocItems">
<ul class="toc">
<template v-for="item in tocItems">
<li :class="['toc-level-' + item.level, (item.attrs.class || '').split(' ').includes('numbered') ? 'numbered' : '', (item.attrs.class || '').split(' ').includes('numbered-appendix') ? 'numbered-appendix' : '']">

View File

@ -89,7 +89,7 @@ The component uses multi-pass rendering.
In the first render-pass it does nothing, in the second pass it collects all previously rendered `<caption>` tags and provides them in the variable `items`.
```html
<list-of-tables v-slot="{ items }">
<list-of-tables v-slot="items">
<section v-if="items.length > 0">
<h1 class="in-toc">List of Tables</h1>
<ul class="lot">