Updated documentation to remove deprecated slot syntax
parent
f7190ad875
commit
65e0c19047
|
@ -9,30 +9,30 @@
|
|||
|
||||
<div class="content-section implementation">
|
||||
<Card style="width: 25rem; margin-bottom: 2em">
|
||||
<template v-slot:title>
|
||||
<template #title>
|
||||
Simple Card
|
||||
</template>
|
||||
<template v-slot:content>
|
||||
<template #content>
|
||||
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Inventore sed consequuntur error repudiandae numquam deserunt
|
||||
quisquam repellat libero asperiores earum nam nobis, culpa ratione quam perferendis esse, cupiditate neque quas!</p>
|
||||
</template>
|
||||
</Card>
|
||||
|
||||
<Card style="width: 25em">
|
||||
<template v-slot:header>
|
||||
<template #header>
|
||||
<img alt="user header" src="demo/images/usercard.png">
|
||||
</template>
|
||||
<template v-slot:title>
|
||||
<template #title>
|
||||
Advanced Card
|
||||
</template>
|
||||
<template v-slot:subtitle>
|
||||
<template #subtitle>
|
||||
Card subtitle
|
||||
</template>
|
||||
<template v-slot:content>
|
||||
<template #content>
|
||||
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Inventore sed consequuntur error repudiandae numquam deserunt
|
||||
quisquam repellat libero asperiores earum nam nobis, culpa ratione quam perferendis esse, cupiditate neque quas!</p>
|
||||
</template>
|
||||
<template v-slot:footer>
|
||||
<template #footerfooter>
|
||||
<Button icon="pi pi-check" label="Save" />
|
||||
<Button icon="pi pi-times" label="Cancel" class="p-button-secondary" style="margin-left: .5em" />
|
||||
</template>
|
||||
|
|
|
@ -10,31 +10,21 @@ import Card from 'primevue/card';
|
|||
</code></pre>
|
||||
|
||||
<h5>Getting Started</h5>
|
||||
<p>Card is used as a container.</p>
|
||||
<pre v-code>
|
||||
<code>
|
||||
<Card>
|
||||
Content
|
||||
</Card>
|
||||
|
||||
</code></pre>
|
||||
|
||||
<h5>Templates</h5>
|
||||
<p>Card provides <i>header</i>, <i>title</i>, <i>content</i> and <i>footer</i> as the named templates to place content.</p>
|
||||
<pre v-code>
|
||||
<code>
|
||||
<Card>
|
||||
<template slot="header">
|
||||
<template #header>
|
||||
<img alt="user header" src="demo/images/usercard.png">
|
||||
</template>
|
||||
<template slot="title">
|
||||
<template #title>
|
||||
Advanced Card
|
||||
</template>
|
||||
<template slot="content">
|
||||
<template #content>
|
||||
Lorem ipsum dolor sit amet, consectetur adipisicing elit. Inventore sed consequuntur error repudiandae numquam deserunt
|
||||
quisquam repellat libero asperiores earum nam nobis, culpa ratione quam perferendis esse, cupiditate neque quas!
|
||||
</template>
|
||||
<template slot="footer">
|
||||
<template #footer>
|
||||
<Button icon="pi pi-check" label="Save" />
|
||||
<Button icon="pi pi-times" label="Cancel" class="p-button-secondary" style="margin-left: .5em" />
|
||||
</template>
|
||||
|
@ -88,30 +78,30 @@ import Card from 'primevue/card';
|
|||
<pre v-code>
|
||||
<code><template v-pre>
|
||||
<Card style="width: 25rem; margin-bottom: 2em">
|
||||
<template slot="title">
|
||||
<template #title>
|
||||
Simple Card
|
||||
</template>
|
||||
<template slot="content">
|
||||
<template #content>
|
||||
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Inventore sed consequuntur error repudiandae numquam deserunt
|
||||
quisquam repellat libero asperiores earum nam nobis, culpa ratione quam perferendis esse, cupiditate neque quas!</p>
|
||||
</template>
|
||||
</Card>
|
||||
|
||||
<Card style="width: 25em">
|
||||
<template slot="header">
|
||||
<template #header>
|
||||
<img alt="user header" src="demo/images/usercard.png">
|
||||
</template>
|
||||
<template slot="title">
|
||||
<template #title>
|
||||
Advanced Card
|
||||
</template>
|
||||
<template slot="subtitle">
|
||||
<template subtitle>
|
||||
Card subtitle
|
||||
</template>
|
||||
<template slot="content">
|
||||
<template #content>
|
||||
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Inventore sed consequuntur error repudiandae numquam deserunt
|
||||
quisquam repellat libero asperiores earum nam nobis, culpa ratione quam perferendis esse, cupiditate neque quas!</p>
|
||||
</template>
|
||||
<template slot="footer">
|
||||
<template #footer>
|
||||
<Button icon="pi pi-check" label="Save" />
|
||||
<Button icon="pi pi-times" label="Cancel" class="p-button-secondary" style="margin-left: .5em" />
|
||||
</template>
|
||||
|
|
|
@ -10,12 +10,12 @@
|
|||
<div class="content-section implementation">
|
||||
<div class="card">
|
||||
<Toolbar class="p-mb-4">
|
||||
<template v-slot:left>
|
||||
<template #left>
|
||||
<Button label="New" icon="pi pi-plus" class="p-button-success p-mr-2" @click="openNew" />
|
||||
<Button label="Delete" icon="pi pi-trash" class="p-button-danger" @click="confirmDeleteSelected" :disabled="!selectedProducts || !selectedProducts.length" />
|
||||
</template>
|
||||
|
||||
<template v-slot:right>
|
||||
<template #right>
|
||||
<FileUpload mode="basic" accept="image/*" :maxFileSize="1000000" label="Import" chooseLabel="Import" class="p-mr-2 p-d-inline-block" />
|
||||
<Button label="Export" icon="pi pi-upload" class="p-button-help" @click="exportCSV($event)" />
|
||||
</template>
|
||||
|
@ -147,12 +147,12 @@
|
|||
<pre v-code>
|
||||
<code><template v-pre>
|
||||
<Toolbar class="p-mb-4">
|
||||
<template slot="left">
|
||||
<template #left>
|
||||
<Button label="New" icon="pi pi-plus" class="p-button-success p-mr-2" @click="openNew" />
|
||||
<Button label="Delete" icon="pi pi-trash" class="p-button-danger" @click="confirmDeleteSelected" :disabled="!selectedProducts || !selectedProducts.length" />
|
||||
</template>
|
||||
|
||||
<template slot="right">
|
||||
<template #right>
|
||||
<FileUpload mode="basic" accept="image/*" :maxFileSize="1000000" label="Import" chooseLabel="Import" class="p-mr-2" />
|
||||
<Button label="Export" icon="pi pi-upload" class="p-button-help" @click="exportCSV($event)" />
|
||||
</template>
|
||||
|
|
|
@ -22,7 +22,7 @@ import Editor from 'primevue/editor';
|
|||
<pre v-code>
|
||||
<code>
|
||||
<Editor v-model="value" editorStyle="height: 320px">
|
||||
<template slot="toolbar">
|
||||
<template #toolbar>
|
||||
<span class="ql-formats">
|
||||
<button class="ql-bold"></button>
|
||||
<button class="ql-italic"></button>
|
||||
|
@ -157,7 +157,7 @@ npm install quill --save
|
|||
|
||||
<h3>Customized</h3>
|
||||
<Editor v-model="value2" editorStyle="height: 320px">
|
||||
<template slot="toolbar">
|
||||
<template #toolbar>
|
||||
<span class="ql-formats">
|
||||
<button class="ql-bold" v-tooltip.bottom="'Bold'"></button>
|
||||
<button class="ql-italic" v-tooltip.bottom="'Italic'"></button>
|
||||
|
|
|
@ -275,13 +275,13 @@ export default {
|
|||
<code><template v-pre>
|
||||
<div class="stepsdemo-content">
|
||||
<Card>
|
||||
<template slot="title">
|
||||
<template #title>
|
||||
Seat Information
|
||||
</template>
|
||||
<template slot="subtitle">
|
||||
<template #subtitle>
|
||||
Choose your seat
|
||||
</template>
|
||||
<template slot="content">
|
||||
<template #content>
|
||||
<div class="p-fluid p-formgrid p-grid">
|
||||
<div class="p-field p-col-12 p-md-6">
|
||||
<label for="class">Class</label>
|
||||
|
@ -297,7 +297,7 @@ export default {
|
|||
</div>
|
||||
</div>
|
||||
</template>
|
||||
<template slot="footer">
|
||||
<template #footer>
|
||||
<div class="p-grid p-nogutter p-justify-between">
|
||||
<Button label="Back" @click="prevPage()" icon="pi pi-angle-left" />
|
||||
<Button label="Next" @click="nextPage()" icon="pi pi-angle-right" iconPos="right" />
|
||||
|
@ -359,13 +359,13 @@ export default {
|
|||
<code><template v-pre>
|
||||
<div class="stepsdemo-content">
|
||||
<Card>
|
||||
<template slot="title">
|
||||
<template #title>
|
||||
Payment Information
|
||||
</template>
|
||||
<template slot="subtitle">
|
||||
<template #subtitle>
|
||||
Enter your card details
|
||||
</template>
|
||||
<template slot="content">
|
||||
<template #content>
|
||||
<div class="p-fluid p-formgrid p-grid">
|
||||
<div class="p-field p-col-12">
|
||||
<label for="class">Class</label>
|
||||
|
@ -389,7 +389,7 @@ export default {
|
|||
</div>
|
||||
</div>
|
||||
</template>
|
||||
<template slot="footer">
|
||||
<template #footer>
|
||||
<div class="p-grid p-nogutter p-justify-between">
|
||||
<Button label="Back" @click="prevPage()" icon="pi pi-angle-left" />
|
||||
<Button label="Next" @click="nextPage()" icon="pi pi-angle-right" iconPos="right" />
|
||||
|
@ -430,10 +430,10 @@ export default {
|
|||
<code><template v-pre>
|
||||
<div class="stepsdemo-content">
|
||||
<Card>
|
||||
<template slot="title">
|
||||
<template #title>
|
||||
Confirmation
|
||||
</template>
|
||||
<template slot="content">
|
||||
<template #content>
|
||||
<div class="p-field p-col-12">
|
||||
<label for="class">Name</label>
|
||||
<b>{{formData.firstname ? formData.firstname : '-'}} {{formData.lastname ? formData.lastname : '-'}}</b>
|
||||
|
@ -471,7 +471,7 @@ export default {
|
|||
<b>{{formData.cvv && formData.cvv.length === 3 ? '**' + formData.cvv[2] : '-'}}</b>
|
||||
</div>
|
||||
</template>
|
||||
<template slot="footer">
|
||||
<template #footer>
|
||||
<div class="p-grid p-nogutter p-justify-between">
|
||||
<Button label="Back" @click="prevPage()" icon="pi pi-angle-left" />
|
||||
<Button label="Complete" @click="complete()" icon="pi pi-check" iconPos="right" class="p-button-success"/>
|
||||
|
|
Loading…
Reference in New Issue