Use old v-slot syntax in docs
This commit is contained in:
parent
b667704aca
commit
841e713981
|
@ -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>
|
||||
|
|
|
@ -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">
|
||||
|
|
|
@ -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">
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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">
|
||||
|
|
|
@ -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">
|
||||
|
|
|
@ -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">
|
||||
|
|
|
@ -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">
|
||||
|
|
|
@ -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">
|
||||
|
|
|
@ -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">
|
||||
|
|
|
@ -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">
|
||||
|
|
|
@ -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">
|
||||
|
|
|
@ -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">
|
||||
|
|
|
@ -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">
|
||||
|
|
|
@ -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">
|
||||
|
|
|
@ -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">
|
||||
|
|
|
@ -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">
|
||||
|
|
|
@ -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">
|
||||
|
|
|
@ -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">
|
||||
|
|
|
@ -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">
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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' : '']">
|
||||
|
|
|
@ -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">
|
||||
|
|
Loading…
Reference in New Issue