pull/1143/head
Tuğçe Küçükoğlu 2021-03-24 20:37:09 +03:00
parent 20bf1fde46
commit 9db23d8e46
88 changed files with 838 additions and 867 deletions

View File

@ -312,7 +312,7 @@ export default {
tabName: 'Source',
content: `
<template>
<div class="card">
<div>
<h5>Default</h5>
<Accordion :activeIndex="0">
<AccordionTab header="Header I">
@ -441,7 +441,7 @@ export default {
tabName: 'Composition API',
content: `
<template>
<div class="card">
<div>
<h5>Default</h5>
<Accordion :activeIndex="0">
<AccordionTab header="Header I">

View File

@ -375,7 +375,7 @@ export default {
content:`
<template>
<div>
<div class="card">
<div>
<h5>Basic</h5>
<AutoComplete v-model="selectedCountry1" :suggestions="filteredCountries" @complete="searchCountry($event)" field="name" />
@ -492,7 +492,7 @@ export default {
content:`
<template>
<div>
<div class="card">
<div>
<h5>Basic</h5>
<AutoComplete v-model="selectedCountry1" :suggestions="filteredCountries" @complete="searchCountry($event)" field="name" />

View File

@ -179,7 +179,7 @@ export default {
tabName: 'Source',
content: `
<template>
<div class="card">
<div>
<h5>Numbers</h5>
<Badge value="2" class="p-mr-2"></Badge>
<Badge value="8" severity="success" class="p-mr-2"></Badge>
@ -213,7 +213,7 @@ export default {
tabName: 'Composition API',
content: `
<template>
<div class="card">
<div>
<h5>Numbers</h5>
<Badge value="2" class="p-mr-2"></Badge>
<Badge value="8" severity="success" class="p-mr-2"></Badge>

View File

@ -149,7 +149,7 @@ export default {
tabName: 'Source',
content: `
<template>
<div class="card">
<div>
<h5>Document</h5>
<BlockUI :blocked="blockedDocument" :fullScreen="true"></BlockUI>
@ -211,7 +211,7 @@ button {
tabName: 'Composition API',
content: `
<template>
<div class="card">
<div>
<h5>Document</h5>
<BlockUI :blocked="blockedDocument" :fullScreen="true"></BlockUI>

View File

@ -108,7 +108,7 @@ export default {
tabName: 'Source',
content: `
<template>
<div class="card">
<div>
<Breadcrumb :home="home" :model="items" />
</div>
</template>
@ -119,7 +119,7 @@ export default {
return {
home: {
icon: 'pi pi-home',
to: '/fileupload',
to: '/',
},
items: [
{label: 'Computer'},
@ -138,7 +138,7 @@ export default {
tabName: 'Composition API',
content: `
<template>
<div class="card">
<div>
<Breadcrumb :home="home" :model="items" />
</div>
</template>
@ -150,7 +150,7 @@ export default {
setup() {
const home = ref({
icon: 'pi pi-home',
to: '/fileupload',
to: '/',
});
const items = ref([
{label: 'Computer'},

View File

@ -159,7 +159,7 @@ export default {
}
}
@media screen and (max-width: 960px) {
@media screen and (max-width: 6400px) {
.p-button {
margin-bottom: .5rem;

View File

@ -225,7 +225,6 @@ export default {
content: `
<template>
<div>
<div class="card">
<h5>Basic</h5>
<Button label="Submit" />
<Button label="Disabled" disabled="disabled" />
@ -338,7 +337,6 @@ export default {
<Button label="Large" icon="pi pi-check" class="p-button-lg" />
</div>
</div>
</div>
</template>
<script>
@ -368,7 +366,7 @@ export default {
}
}
@media screen and (max-width: 960px) {
@media screen and (max-width: 640px) {
.p-button {
margin-bottom: .5rem;
@ -391,7 +389,6 @@ export default {
content: `
<template>
<div>
<div class="card">
<h5>Basic</h5>
<Button label="Submit" />
<Button label="Disabled" disabled="disabled" />
@ -504,7 +501,6 @@ export default {
<Button label="Large" icon="pi pi-check" class="p-button-lg" />
</div>
</div>
</div>
</template>
<script>
@ -535,7 +531,7 @@ export default defineComponent({});
}
}
@media screen and (max-width: 960px) {
@media screen and (max-width: 640px) {
.p-button {
margin-bottom: .5rem;

View File

@ -576,7 +576,6 @@ export default {
content: `
<template>
<div>
<div class="card">
<h5>Popup</h5>
<div class="p-fluid p-grid p-formgrid">
<div class="p-field p-col-12 p-md-4">
@ -649,7 +648,6 @@ export default {
<h5>Inline</h5>
<Calendar v-model="date14" :inline="true" :showWeek="true" />
</div>
</div>
</template>
<script>
@ -711,7 +709,6 @@ export default {
content: `
<template>
<div>
<div class="card">
<h5>Popup</h5>
<div class="p-fluid p-grid p-formgrid">
<div class="p-field p-col-12 p-md-4">
@ -784,7 +781,6 @@ export default {
<h5>Inline</h5>
<Calendar v-model="date14" :inline="true" :showWeek="true" />
</div>
</div>
</template>
<script>

View File

@ -111,6 +111,7 @@ export default {
tabName: 'Source',
content: `
<template>
<div>
<Card style="width: 25rem; margin-bottom: 2em">
<template #title>
Simple Card
@ -123,7 +124,7 @@ export default {
<Card style="width: 25em">
<template #header>
<img src="https://www.primefaces.org/wp-content/uploads/2020/02/primefacesorg-primevue-2020.png" style="height: 10rem" />
<img src="https://www.primefaces.org/wp-content/uploads/2020/02/primefacesorg-primevue-2020.png" style="height: 15rem" />
</template>
<template #title>
Advanced Card
@ -140,6 +141,7 @@ export default {
<Button icon="pi pi-times" label="Cancel" class="p-button-secondary" style="margin-left: .5em" />
</template>
</Card>
</div>
</template>
<script>
@ -158,6 +160,7 @@ p {
tabName: 'Composition API',
content: `
<template>
<div>
<Card style="width: 25rem; margin-bottom: 2em">
<template #title>
Simple Card
@ -170,7 +173,7 @@ p {
<Card style="width: 25em">
<template #header>
<img src="https://www.primefaces.org/wp-content/uploads/2020/02/primefacesorg-primevue-2020.png" style="height: 10rem" />
<img src="https://www.primefaces.org/wp-content/uploads/2020/02/primefacesorg-primevue-2020.png" style="height: 15rem" />
</template>
<template #title>
Advanced Card
@ -187,6 +190,7 @@ p {
<Button icon="pi pi-times" label="Cancel" class="p-button-secondary" style="margin-left: .5em" />
</template>
</Card>
</div>
</template>
<script>

View File

@ -300,7 +300,7 @@ export default {
tabName: 'Source',
content: `
<template>
<div class="card">
<div>
<div class="card">
<Carousel :value="products" :numVisible="3" :numScroll="3" :responsiveOptions="responsiveOptions">
<template #header>
@ -356,7 +356,7 @@ export default {
</div>
<div class="card">
<Carousel :value="products" :numVisible="1" :numScroll="1" orientation="vertical" verticalViewPortHeight="500px"
<Carousel :value="products" :numVisible="1" :numScroll="1" orientation="vertical" verticalViewPortHeight="430px"
style="max-width: 400px; margin-top: 2em">
<template #header>
<h5>Vertical</h5>
@ -498,7 +498,7 @@ export default {
</div>
<div class="card">
<Carousel :value="products" :numVisible="1" :numScroll="1" orientation="vertical" verticalViewPortHeight="500px"
<Carousel :value="products" :numVisible="1" :numScroll="1" orientation="vertical" verticalViewPortHeight="430px"
style="max-width: 400px; margin-top: 2em">
<template #header>
<h5>Vertical</h5>

View File

@ -341,7 +341,6 @@ export default {
content: `
<template>
<div>
<div class="card">
<h5>Basic</h5>
<CascadeSelect v-model="selectedCity1" :options="countries" optionLabel="cname" optionGroupLabel="name"
:optionGroupChildren="['states', 'cities']" style="minWidth: 14rem" placeholder="Select a City" />
@ -359,7 +358,6 @@ export default {
</template>
</CascadeSelect>
</div>
</div>
</template>
<script>
@ -462,7 +460,6 @@ img {
content: `
<template>
<div>
<div class="card">
<h5>Basic</h5>
<CascadeSelect v-model="selectedCity1" :options="countries" optionLabel="cname" optionGroupLabel="name"
:optionGroupChildren="['states', 'cities']" style="minWidth: 14rem" placeholder="Select a City" />
@ -480,7 +477,6 @@ img {
</template>
</CascadeSelect>
</div>
</div>
</template>
<script>

View File

@ -11,7 +11,7 @@ export default {
tabName: 'Source',
content: `
<template>
<div class="card">
<div>
<div class="card">
<h5>Vertical</h5>
<Chart type="bar" :data="basicData" :options="basicOptions" />
@ -144,7 +144,7 @@ export default {
tabName: 'Composition API',
content: `
<template>
<div class="card">
<div>
<div class="card">
<h5>Vertical</h5>
<Chart type="bar" :data="basicData" :options="basicOptions" />

View File

@ -11,7 +11,7 @@ export default {
tabName: 'Source',
content: `
<template>
<div class="card">
<div>
<Chart type="bar" :data="chartData"/>
</div>
</template>
@ -53,7 +53,7 @@ export default {
tabName: 'Composition API',
content: `
<template>
<div class="card">
<div>
<Chart type="bar" :data="chartData"/>
</div>
</template>

View File

@ -11,7 +11,7 @@ export default {
tabName :'Source',
content: `
<template>
<div class="card">
<div>
<Chart type="doughnut" :data="chartData" />
</div>
</template>
@ -40,7 +40,7 @@ export default {
tabName :'Composition API',
content: `
<template>
<div class="card">
<div>
<Chart type="doughnut" :data="chartData" />
</div>
</template>

View File

@ -11,7 +11,7 @@ export default {
tabName: 'Source',
content: `
<template>
<div class="card">
<div
<div class="card">
<h5>Basic</h5>
<Chart type="line" :data="basicData" :options="basicOptions" />
@ -123,7 +123,7 @@ export default {
tabName: 'Composition API',
content: `
<template>
<div class="card">
<div>
<div class="card">
<h5>Basic</h5>
<Chart type="line" :data="basicData" :options="basicOptions" />

View File

@ -12,7 +12,7 @@ export default {
tabName: 'Source',
content: `
<template>
<div class="card">
<div>
<Chart type="pie" :data="chartData" />
</div>
</template>
@ -41,7 +41,7 @@ export default {
tabName: 'Composition API',
content: `
<template>
<div class="card">
<div>
<Chart type="pie" :data="chartData" />
</div>
</template>

View File

@ -11,7 +11,7 @@ export default {
tabName: 'Source',
content: `
<template>
<div class="card">
<div>
<Chart type="polarArea" :data="chartData" />
</div>
</template>
@ -38,7 +38,7 @@ export default {
tabName: 'Composition API',
content: `
<template>
<div class="card">
<div>
<Chart type="polarArea" :data="chartData" />
</div>
</template>

View File

@ -11,7 +11,7 @@ export default {
tabName: 'Source',
content: `
<template>
<div class="card">
<div>
<Chart type="radar" :data="chartData" />
</div>
</template>
@ -55,7 +55,7 @@ export default {
tabName: 'Composition API',
content: `
<template>
<div class="card">
<div>
<Chart type="radar" :data="chartData" />
</div>
</template>

View File

@ -114,9 +114,9 @@ export default {
sources: {
'options-api': {
tabName: 'Source',
content: `<template>
content: `
<template>
<div>
<div class="card">
<h5>Basic</h5>
<div class="p-field-checkbox">
<Checkbox id="binary" v-model="checked" :binary="true" />
@ -147,7 +147,6 @@ export default {
<label :for="category.key">{{category.name}}</label>
</div>
</div>
</div>
</template>
<script>
@ -168,9 +167,9 @@ export default {
},
'composition-api': {
tabName: 'Composition API',
content: `<template>
content: `
<template>
<div>
<div class="card">
<h5>Basic</h5>
<div class="p-field-checkbox">
<Checkbox id="binary" v-model="checked" :binary="true" />
@ -201,7 +200,6 @@ export default {
<label :for="category.key">{{category.name}}</label>
</div>
</div>
</div>
</template>
<script>

View File

@ -144,7 +144,7 @@ export default {
tabName: 'Source',
content: `
<template>
<div class="card">
<div>
<h5>Basic</h5>
<div class="p-d-flex p-ai-center p-flex-column p-flex-sm-row">
<Chip label="Action" class="p-mr-2 p-mb-2" />
@ -195,7 +195,7 @@ export default {
tabName: 'Composition API',
content: `
<template>
<div class="card">
<div>
<h5>Basic</h5>
<div class="p-d-flex p-ai-center p-flex-column p-flex-sm-row">
<Chip label="Action" class="p-mr-2 p-mb-2" />

View File

@ -169,16 +169,15 @@ export default {
sources: {
'options-api': {
tabName: 'Source',
content: `<template>
content: `
<template>
<div>
<div class="card">
<h5>Inline</h5>
<ColorPicker v-model="color1" :inline="true" />
<h5>Overlay</h5>
<ColorPicker v-model="color2" />
</div>
</div>
</template>
<script>
@ -195,16 +194,15 @@ export default {
},
'composition-api': {
tabName: 'Composition API',
content: `<template>
content: `
<template>
<div>
<div class="card">
<h5>Inline</h5>
<ColorPicker v-model="color1" :inline="true" />
<h5>Overlay</h5>
<ColorPicker v-model="color2" />
</div>
</div>
</template>
<script>

View File

@ -315,7 +315,7 @@ export default {
tabName: 'Source',
content: `
<template>
<div class="card">
<div>
<img alt="logo" src="https://www.primefaces.org/wp-content/uploads/2020/05/placeholder.png" @contextmenu="onImageRightClick" aria-haspopup="true">
<ContextMenu ref="menu" :model="items" />
</div>
@ -471,7 +471,7 @@ export default {
tabName: 'Composition API',
content: `
<template>
<div class="card">
<div>
<img alt="logo" src="https://www.primefaces.org/wp-content/uploads/2020/05/placeholder.png" @contextmenu="onImageRightClick" aria-haspopup="true">
<ContextMenu ref="menu" :model="items" />
</div>

View File

@ -1,5 +1,5 @@
<template>
<AppDoc name="DataTableDemo" :sources="sources" :service="['ProductService']" :data="['products-small']" />
<AppDoc name="DataTableBasicDemo" :sources="sources" :service="['ProductService']" :data="['products-small']" />
</template>
<script>
@ -12,7 +12,6 @@ export default {
content: `
<template>
<div>
<div class="card">
<DataTable :value="products" responsiveLayout="scroll">
<Column field="code" header="Code"></Column>
<Column field="name" header="Name"></Column>
@ -20,7 +19,6 @@ export default {
<Column field="quantity" header="Quantity"></Column>
</DataTable>
</div>
</div>
</template>
<script>
@ -48,7 +46,6 @@ export default {
content: `
<template>
<div>
<div class="card">
<DataTable :value="products" responsiveLayout="scroll">
<Column field="code" header="Code"></Column>
<Column field="name" header="Name"></Column>
@ -56,7 +53,6 @@ export default {
<Column field="quantity" header="Quantity"></Column>
</DataTable>
</div>
</div>
</template>
<script>

View File

@ -9,7 +9,7 @@
<div class="content-section implementation">
<div class="card">
<DataTable :value="products" class="p-datatable-sm">
<DataTable :value="products" class="p-datatable-sm" responsiveLayout="scroll">
<template #header>
Small Table
</template>
@ -21,7 +21,7 @@
</div>
<div class="card">
<DataTable :value="products">
<DataTable :value="products" responsiveLayout="scroll">
<template #header>
Normal Table
</template>
@ -33,7 +33,7 @@
</div>
<div class="card">
<DataTable :value="products" class="p-datatable-lg">
<DataTable :value="products" class="p-datatable-lg" responsiveLayout="scroll">
<template #header>
Large Table
</template>
@ -64,7 +64,7 @@ export default {
<template>
<div>
<div class="card">
<DataTable :value="products" class="p-datatable-sm">
<DataTable :value="products" class="p-datatable-sm" responsiveLayout="scroll">
<template #header>
Small Table
</template>
@ -76,7 +76,7 @@ export default {
</div>
<div class="card">
<DataTable :value="products">
<DataTable :value="products" responsiveLayout="scroll">
<template #header>
Normal Table
</template>
@ -88,7 +88,7 @@ export default {
</div>
<div class="card">
<DataTable :value="products" class="p-datatable-lg">
<DataTable :value="products" class="p-datatable-lg" responsiveLayout="scroll">
<template #header>
Large Table
</template>
@ -127,7 +127,7 @@ export default {
<template>
<div>
<div class="card">
<DataTable :value="products" class="p-datatable-sm">
<DataTable :value="products" class="p-datatable-sm" responsiveLayout="scroll">
<template #header>
Small Table
</template>
@ -139,7 +139,7 @@ export default {
</div>
<div class="card">
<DataTable :value="products">
<DataTable :value="products" responsiveLayout="scroll">
<template #header>
Normal Table
</template>
@ -151,7 +151,7 @@ export default {
</div>
<div class="card">
<DataTable :value="products" class="p-datatable-lg">
<DataTable :value="products" class="p-datatable-lg" responsiveLayout="scroll">
<template #header>
Large Table
</template>

View File

@ -74,7 +74,7 @@ export default {
tabName: 'Source',
content: `
<template>
<div class="card">
<div>
<Toast />
<div style="height: 800px">
@ -129,8 +129,9 @@ export default {
tabName: 'Composition API',
content: `
<template>
<div class="card">
<div>
<Toast />
<div style="height: 800px">
Scroll down to lazy load an image and the DataTable which initiates a query that is not executed on initial page load to speed up load performance.
</div>

View File

@ -296,7 +296,7 @@ export default {
tabName: 'Source',
content: `
<template>
<div class="card">
<div>
<h5>Basic</h5>
<Button label="Show" icon="pi pi-external-link" @click="openBasic" />
<Dialog header="Header" v-model:visible="displayBasic" :style="{width: '50vw'}">
@ -499,7 +499,7 @@ p {
tabName: 'Composition API',
content: `
<template>
<div class="card">
<div>
<h5>Basic</h5>
<Button label="Show" icon="pi pi-external-link" @click="openBasic" />
<Dialog header="Header" v-model:visible="displayBasic" :style="{width: '50vw'}">

View File

@ -464,9 +464,9 @@ export default {
sources: {
'options-api': {
tabName: 'Source',
content: `<template>
content: `
<template>
<div>
<div class="card">
<h5>Basic</h5>
<Dropdown v-model="selectedCity1" :options="cities" optionLabel="name" optionValue="code" placeholder="Select a City" />
@ -502,7 +502,6 @@ export default {
</template>
</Dropdown>
</div>
</div>
</template>
<script>
@ -579,9 +578,9 @@ export default {
},
'composition-api': {
tabName: 'Source',
content: `<template>
content: `
<template>
<div>
<div class="card">
<h5>Basic</h5>
<Dropdown v-model="selectedCity1" :options="cities" optionLabel="name" optionValue="code" placeholder="Select a City" />
@ -617,7 +616,6 @@ export default {
</template>
</Dropdown>
</div>
</div>
</template>
<script>

View File

@ -170,7 +170,6 @@ export default {
content: `
<template>
<div>
<div class="card">
<h5>Default</h5>
<Editor v-model="value1" editorStyle="height: 320px"/>
@ -185,7 +184,6 @@ export default {
</template>
</Editor>
</div>
</div>
</template>
<script>
@ -205,7 +203,6 @@ export default {
content: `
<template>
<div>
<div class="card">
<h5>Default</h5>
<Editor v-model="value1" editorStyle="height: 320px"/>
@ -220,7 +217,6 @@ export default {
</template>
</Editor>
</div>
</div>
</template>
<script>

View File

@ -35,13 +35,6 @@
import FieldsetDoc from './FieldsetDoc';
export default {
data() {
return {
value1: '',
value2: '',
value3: 'PrimeVue'
}
},
components: {
'FieldsetDoc': FieldsetDoc
}

View File

@ -180,7 +180,7 @@ export default {
tabName: 'Source',
content: `
<template>
<div class="card">
<div>
<h5>Regular</h5>
<Fieldset legend="Header">
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
@ -201,13 +201,6 @@ export default {
<script>
export default {
data() {
return {
value1: '',
value2: '',
value3: 'PrimeVue'
}
}
}
<\\/script>
@ -220,8 +213,9 @@ export default {
},
'composition-api': {
tabName: 'Composition API',
content: `<template>
<div class="card">
content: `
<template>
<div>
<h5>Regular</h5>
<Fieldset legend="Header">
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
@ -241,16 +235,7 @@ export default {
</template>
<script>
import { ref } from 'vue';
export default {
setup() {
const value1 = ref('');
const value2 = ref('');
const value3 = ref('PrimeVue');
return { value1, value2, value3 }
}
}
<\\/script>

View File

@ -341,7 +341,7 @@ export default {
tabName: 'Source',
content: `
<template>
<div class="card">
<div>
<Toast />
<h5>Advanced</h5>
@ -374,7 +374,7 @@ export default {
tabName: 'Composition API',
content: `
<template>
<div class="card">
<div>
<Toast />
<h5>Advanced</h5>

View File

@ -346,6 +346,8 @@ export default {
value9: null,
value10: null,
value11: null,
valueIconLeft: null,
valueIconRight: null,
selectedCity: null,
cascadeCountries: [
{
@ -556,7 +558,7 @@ export default {
<script>
import { ref, onMounted } from 'vue';
import CountryService from '../service/CountryService';
import CountryService from './service/CountryService';
export default {
setup() {
@ -667,10 +669,10 @@ export default {
const searchCountry = (event) => {
setTimeout(() => {
if (!event.query.trim().length) {
this.filteredCountries = [...this.countries];
filteredCountries.value = [...countries.value];
}
else {
this.filteredCountries = this.countries.filter((country) => {
filteredCountries.value = countries.value.filter((country) => {
return country.name.toLowerCase().startsWith(event.query.toLowerCase());
});
}

View File

@ -211,7 +211,7 @@ export default {
tabName: 'Source',
content: `
<template>
<div class="card">
<div>
<FullCalendar :events="events" :options="options" />
</div>
</template>
@ -262,7 +262,7 @@ export default {
tabName: 'Composition API',
content: `
<template>
<div class="card">
<div>
<FullCalendar :events="events" :options="options" />
</div>
</template>

View File

@ -194,7 +194,7 @@ export default {
tabName: 'Source',
content: `
<template>
<div class="card">
<div>
<h5>Input</h5>
<Inplace :closable="true">
<template #display>
@ -260,7 +260,7 @@ export default {
tabName: 'Composition API',
content: `
<template>
<div class="card">
<div>
<h5>Input</h5>
<Inplace :closable="true">
<template #display>

View File

@ -11,7 +11,7 @@ export default {
tabName: 'Source',
content: `
<template>
<div class="card">
<div>
<h5>Addons</h5>
<div class="p-grid p-fluid">
<div class="p-col-12 p-md-4">
@ -133,7 +133,7 @@ export default {
tabName: 'Composition API',
content: `
<template>
<div class="card">
<div>
<h5>Addons</h5>
<div class="p-grid p-fluid">
<div class="p-col-12 p-md-4">

View File

@ -1,5 +1,5 @@
<template>
<AppDoc name="InputMaskDoc" :sources="sources">
<AppDoc name="InputMaskDemo" :sources="sources">
<h5>Import</h5>
<pre v-code.script><code>
import InputMask from 'primevue/inputmask';
@ -131,7 +131,7 @@ export default {
tabName: 'Source',
content: `
<template>
<div class="card">
<div>
<div class="p-fluid p-formgrid p-grid">
<div class="p-field p-col-12 p-md-4">
<label for="basic">Basic</label>
@ -186,7 +186,7 @@ export default {
tabName: 'Composition API',
content: `
<template>
<div class="card">
<div>
<div class="p-fluid p-formgrid p-grid">
<div class="p-field p-col-12 p-md-4">
<label for="basic">Basic</label>

View File

@ -363,8 +363,7 @@ export default {
tabName : 'Source',
content: `
<template>
<div class="card">
<div>
<h5>Numerals</h5>
<div class="p-fluid p-grid p-formgrid">
<div class="p-field p-col-12 p-md-3">
@ -501,8 +500,7 @@ export default {
tabName : 'Composition API',
content: `
<template>
<div class="card">
<div>
<h5>Numerals</h5>
<div class="p-fluid p-grid p-formgrid">
<div class="p-field p-col-12 p-md-3">

View File

@ -104,7 +104,7 @@ export default {
tabName: 'Source',
content: `
<template>
<div class="card">
<div>
<h5>Basic</h5>
<InputSwitch v-model="checked1" />
@ -129,7 +129,7 @@ export default {
tabName: 'Composition API',
content: `
<template>
<div class="card">
<div>
<h5>Basic</h5>
<InputSwitch v-model="checked1" />

View File

@ -152,7 +152,7 @@ export default {
tabName: 'Source',
content:`
<template>
<div class="card">
<div>
<h5>Basic</h5>
<InputText type="text" v-model="value1" />
<span :style="{marginLeft: '.5em'}">{{value1}}</span>
@ -236,7 +236,7 @@ export default {
tabName: 'Composition API',
content:`
<template>
<div class="card">
<div>
<h5>Basic</h5>
<InputText type="text" v-model="value1" />
<span :style="{marginLeft: '.5em'}">{{value1}}</span>

View File

@ -160,7 +160,7 @@ export default {
tabName :'Source',
content: `
<template>
<div class="card">
<div>
<div class="p-fluid p-grid">
<div class="p-field p-col-12 p-md-4">
<InputText id="inputtext" type="text" v-model="value1" placeholder="InputText" class="p-invalid" />
@ -333,7 +333,7 @@ export default {
tabName :'Composition API',
content: `
<template>
<div class="card">
<div>
<div class="p-fluid p-grid">
<div class="p-field p-col-12 p-md-4">
<InputText id="inputtext" type="text" v-model="value1" placeholder="InputText" class="p-invalid" />

View File

@ -210,7 +210,7 @@ export default {
tabName: 'Source',
content: `
<template>
<div class="card">
<div>
<div class="p-grid p-formgrid p-text-center">
<div class="p-field p-col-12 p-md-4">
<h5>Basic</h5>
@ -275,7 +275,7 @@ export default {
tabName: 'Composition API',
content: `
<template>
<div class="card">
<div>
<div class="p-grid p-formgrid p-text-center">
<div class="p-field p-col-12 p-md-4">
<h5>Basic</h5>

View File

@ -358,7 +358,7 @@ export default {
tabName: 'Source',
content: `
<template>
<div class="card">
<div>
<h5>Single</h5>
<Listbox v-model="selectedCity" :options="cities" optionLabel="name" style="width:15rem" />
@ -447,7 +447,7 @@ export default {
tabName: 'Composition API',
content: `
<template>
<div class="card">
<div>
<h5>Single</h5>
<Listbox v-model="selectedCity" :options="cities" optionLabel="name" style="width:15rem" />

View File

@ -254,7 +254,7 @@ export default {
tabName: 'Source',
content: `
<template>
<div class="card">
<div>
<h5>Horizontal</h5>
<MegaMenu :model="items" />
@ -389,7 +389,7 @@ export default {
tabName: 'Composition API',
content: `
<template>
<div class="card">
<div>
<h5>Horizontal</h5>
<MegaMenu :model="items" />

View File

@ -213,7 +213,7 @@ export default {
tabName: 'Source',
content: `
<template>
<div class="card">
<div>
<Toast />
<h5>Inline</h5>
@ -281,7 +281,7 @@ export default {
tabName: 'Composition API',
content: `
<template>
<div class="card">
<div>
<Toast />
<h5>Inline</h5>

View File

@ -270,7 +270,7 @@ export default {
tabName: 'Source',
content: `
<template>
<div class="card">
<div>
<Menubar :model="items">
<template #start>
<img alt="logo" src="https://www.primefaces.org/wp-content/uploads/2020/05/placeholder.png" height="40" class="p-mr-2">
@ -424,7 +424,7 @@ export default {
tabName: 'Composition API',
content: `
<template>
<div class="card">
<div>
<Menubar :model="items">
<template #start>
<img alt="logo" src="https://www.primefaces.org/wp-content/uploads/2020/05/placeholder.png" height="40" class="p-mr-2">

View File

@ -259,7 +259,7 @@ export default {
tabName: 'Source',
content: `
<template>
<div class="card">
<div>
<h5>Severities</h5>
<Message severity="success">Success Message Content</Message>
<Message severity="info">Info Message Content</Message>
@ -340,7 +340,7 @@ button.p-button {
tabName: 'Composition API',
content: `
<template>
<div class="card">
<div>
<h5>Severities</h5>
<Message severity="success">Success Message Content</Message>
<Message severity="info">Info Message Content</Message>

View File

@ -455,7 +455,7 @@ export default {
tabName: 'Source',
content: `
<template>
<div class="card">
<div>
<h5>Basic</h5>
<MultiSelect v-model="selectedCities1" :options="cities" optionLabel="name" placeholder="Select Cities" />
@ -588,7 +588,7 @@ export default {
tabName: 'Composition API',
content: `
<template>
<div class="card">
<div>
<h5>Basic</h5>
<MultiSelect v-model="selectedCities1" :options="cities" optionLabel="name" placeholder="Select Cities" />

View File

@ -488,9 +488,10 @@ export default {
tabName: 'Source',
content: `
<template>
<div class="card">
<div>
<Toast />
<div class="card">
<h5>Advanced</h5>
<OrganizationChart :value="data1" :collapsible="true" class="company" selectionMode="single" v-model:selectionKeys="selection"
@nodeSelect="onNodeSelect" @nodeUnselect="onNodeUnselect" @nodeCollapse="onNodeCollapse" @nodeExpand="onNodeExpand">
@ -515,6 +516,7 @@ export default {
</template>
</OrganizationChart>
</div>
</div>
</template>
<script>
@ -701,9 +703,10 @@ export default {
tabName: 'Composition API',
content: `
<template>
<div class="card">
<div>
<Toast />
<div class="card">
<h5>Advanced</h5>
<OrganizationChart :value="data1" :collapsible="true" class="company" selectionMode="single" v-model:selectionKeys="selection"
@nodeSelect="onNodeSelect" @nodeUnselect="onNodeUnselect" @nodeCollapse="onNodeCollapse" @nodeExpand="onNodeExpand">
@ -728,6 +731,7 @@ export default {
</template>
</OrganizationChart>
</div>
</div>
</template>
<script>

View File

@ -175,7 +175,7 @@ export default {
tabName: 'Source',
content: `
<template>
<div class="card">
<div>
<Toast />
<Button type="button" icon="pi pi-search" :label="selectedProduct ? selectedProduct.name : 'Select a Product'" @click="toggle" aria:haspopup="true" aria-controls="overlay_panel" />
@ -245,7 +245,7 @@ button {
tabName: 'Composition API',
content: `
<template>
<div class="card">
<div>
<Toast />
<Button type="button" icon="pi pi-search" :label="selectedProduct ? selectedProduct.name : 'Select a Product'" @click="toggle" aria:haspopup="true" aria-controls="overlay_panel" />

View File

@ -277,7 +277,7 @@ export default {
tabName: 'Source',
content: `
<template>
<div class="card">
<div>
<h5>Basic</h5>
<Paginator :rows="10" :totalRecords="totalRecords" :rowsPerPageOptions="[10,20,30]"></Paginator>
@ -330,7 +330,7 @@ export default {
tabName: 'Composition API',
content: `
<template>
<div class="card">
<div>
<h5>Basic</h5>
<Paginator :rows="10" :totalRecords="totalRecords" :rowsPerPageOptions="[10,20,30]"></Paginator>

View File

@ -208,7 +208,7 @@ export default {
tabName: 'Source',
content: `
<template>
<div class="card">
<div>
<Toast />
<h5>Regular</h5>
@ -298,7 +298,7 @@ export default {
tabName: 'Composition API',
content: `
<template>
<div class="card">
<div>
<Toast />
<h5>Regular</h5>

View File

@ -227,7 +227,7 @@ export default {
tabName: 'Source',
content: `
<template>
<div class="card">
<div>
<PanelMenu :model="items" />
</div>
</template>
@ -369,7 +369,7 @@ export default {
tabName: 'Composition API',
content: `
<template>
<div class="card">
<div>
<PanelMenu :model="items" />
</div>
</template>

View File

@ -215,7 +215,7 @@ export default {
tabName: 'Source',
content: `
<template>
<div class="card">
<div>
<h5>Basic</h5>
<Password v-model="value1" :feedback="false" />
@ -269,7 +269,7 @@ export default {
tabName: 'Composition API',
content: `
<template>
<div class="card">
<div>
<h5>Basic</h5>
<Password v-model="value1" :feedback="false" />

View File

@ -268,7 +268,7 @@ export default {
tabName: 'Source',
content: `
<template>
<div class="card">
<div>
<PickList v-model="products" listStyle="height:342px" dataKey="id">
<template #sourceHeader>
Available
@ -370,7 +370,7 @@ export default {
tabName: 'Composition API',
content: `
<template>
<div class="card">
<div>
<PickList v-model="products" listStyle="height:342px" dataKey="id">
<template #sourceHeader>
Available

View File

@ -120,7 +120,7 @@ export default {
tabName: 'Source',
content: `
<template>
<div class="card">
<div>
<h5>Dynamic</h5>
<ProgressBar :value="value1" />
@ -168,8 +168,9 @@ export default {
},
'composition-api': {
tabName: 'Composition API',
content: `<template>
<div class="card">
content: `
<template>
<div>
<h5>Dynamic</h5>
<ProgressBar :value="value1" />

View File

@ -111,7 +111,7 @@ export default {
tabName: 'Source',
content: `
<template>
<div class="card">
<div>
<h5>Basic</h5>
<ProgressSpinner />
@ -130,7 +130,7 @@ export default {
tabName: 'Composition API',
content: `
<template>
<div class="card">
<div>
<h5>Basic</h5>
<ProgressSpinner />

View File

@ -112,7 +112,7 @@ export default {
tabName: 'Source',
content: `
<template>
<div class="card">
<div>
<h5>Basic</h5>
<div class="p-field-radiobutton">
<RadioButton id="city1" name="city" value="Chicago" v-model="city" />
@ -164,7 +164,7 @@ export default {
tabName: 'Composition API',
content: `
<template>
<div class="card">
<div>
<h5>Basic</h5>
<div class="p-field-radiobutton">
<RadioButton id="city1" name="city" value="Chicago" v-model="city" />

View File

@ -140,7 +140,7 @@ export default {
tabName: 'Source',
content: `
<template>
<div class="card">
<div>
<h5>Basic {{val1}}</h5>
<Rating v-model="val1" />
@ -171,7 +171,7 @@ export default {
tabName: 'Composition API',
content: `
<template>
<div class="card">
<div>
<h5>Basic {{val1}}</h5>
<Rating v-model="val1" />

View File

@ -516,7 +516,7 @@
</div>
</div>
<AppDoc name="ResponsiveDemo" :sources="sources" :service="['CustomerService', 'CountryService', 'ProductService']" :data="['countries', 'customers-large', 'products-small']"></AppDoc>
<AppDoc name="ResponsiveDemo" :sources="sources" :service="['CustomerService', 'CountryService', 'ProductService']" :data="['customers-large', 'countries', 'products-small']"></AppDoc>
</div>
</template>

View File

@ -97,7 +97,7 @@ export default {
tabName: 'Source',
content: `
<template>
<div class="card">
<div>
<div class="p-grid">
<div class="p-col-12 p-md-4 p-p-5">
<ScrollPanel style="width: 100%; height: 200px">
@ -203,7 +203,7 @@ export default {
tabName: 'Composition API',
content: `
<template>
<div class="card">
<div>
<div class="p-grid">
<div class="p-col-12 p-md-4 p-p-5">
<ScrollPanel style="width: 100%; height: 200px">

View File

@ -10,7 +10,7 @@
<div class="content-section implementation">
<div class="card">
<h5>Window</h5>
<p>Scroll down the page to display the ScrollTo component.</p>
<p>Scroll down the page to display the ScrollTop component.</p>
<ScrollTop />
<h5>Element</h5>

View File

@ -109,11 +109,7 @@ export default {
tabName: 'Source',
content: `
<template>
<div class="card">
<h5>Window</h5>
<p>Scroll down the page to display the ScrollTo component.</p>
<ScrollTop />
<div>
<h5>Element</h5>
<ScrollPanel style="width: 250px; height: 200px">
<p>
@ -161,11 +157,7 @@ export default {
tabName: 'Composition API',
content: `
<template>
<div class="card">
<h5>Window</h5>
<p>Scroll down the page to display the ScrollTo component.</p>
<ScrollTop />
<div>
<h5>Element</h5>
<ScrollPanel style="width: 250px; height: 200px">
<p>

View File

@ -179,7 +179,7 @@ export default {
tabName: 'Source',
content: `
<template>
<div class="card">
<div>
<h5>Single Selection</h5>
<SelectButton v-model="value1" :options="options" />
@ -223,7 +223,7 @@ export default {
tabName: 'Composition API',
content: `
<template>
<div class="card">
<div>
<h5>Single Selection</h5>
<SelectButton v-model="value1" :options="options" />

View File

@ -211,7 +211,7 @@ export default {
tabName: 'Source',
content: `
<template>
<div class="card">
<div>
<Button icon="pi pi-arrow-right" @click="visibleLeft = true" class="p-mr-2" />
<Button icon="pi pi-arrow-left" @click="visibleRight = true" class="p-mr-2" />
<Button icon="pi pi-arrow-down" @click="visibleTop = true" class="p-mr-2" />
@ -259,7 +259,7 @@ export default {
tabName: 'Composition API',
content: `
<template>
<div class="card">
<div>
<Button icon="pi pi-arrow-right" @click="visibleLeft = true" class="p-mr-2" />
<Button icon="pi pi-arrow-left" @click="visibleRight = true" class="p-mr-2" />
<Button icon="pi pi-arrow-down" @click="visibleTop = true" class="p-mr-2" />

View File

@ -150,7 +150,7 @@ import SkeletonDoc from './SkeletonDoc';
export default {
data() {
return {
products: new Array(5)
products: new Array(4)
}
},
components: {

View File

@ -273,7 +273,7 @@ export default {
export default {
data() {
return {
products: new Array(5)
products: new Array(4)
}
}
}
@ -432,7 +432,7 @@ import { ref } from 'vue';
export default {
setup() {
const products = ref(new Array(5));
const products = ref(new Array(4));
return { products }
}

View File

@ -183,7 +183,7 @@ export default {
tabName: 'Source',
content: `
<template>
<div class="card">
<div>
<h5>Basic: {{value1}}</h5>
<Slider v-model="value1" />
@ -229,7 +229,7 @@ export default {
tabName: 'Composition API',
content: `
<template>
<div class="card">
<div>
<h5>Basic: {{value1}}</h5>
<Slider v-model="value1" />

View File

@ -141,6 +141,12 @@ export default {
}
<\\/script>
<style scoped>
.demo-container {
border: 1px solid var(--surface-d);
}
</style>
`
},
'composition-api': {
@ -216,6 +222,12 @@ export default {
}
<\\/script>
<style scoped>
.demo-container {
border: 1px solid var(--surface-d);
}
</style>
`
}
}

View File

@ -192,7 +192,7 @@ export default {
tabName: 'Source',
content:`
<template>
<div class="card">
<div>
<Toast />
<h5>Basic</h5>
@ -260,8 +260,8 @@ export default {
'composition-api': {
tabName: 'Composition API',
content:`
<template>
<div class="card">
<template>
<div>
<Toast />
<h5>Basic</h5>

View File

@ -110,7 +110,7 @@ export default {
tabName: 'Source',
content: `
<template>
<div class="card">
<div>
<TabMenu :model="items" />
<router-view />
</div>
@ -162,7 +162,7 @@ export default {
tabName: 'Composition API',
content: `
<template>
<div class="card">
<div>
<TabMenu :model="items" />
<router-view />
</div>

View File

@ -125,7 +125,7 @@ export default {
tabName: 'Source',
content: `
<template>
<div class="card">
<div>
<h5>Tags</h5>
<Tag class="p-mr-2" value="Primary"></Tag>
<Tag class="p-mr-2" severity="success" value="Success"></Tag>
@ -159,7 +159,7 @@ export default {
tabName: 'Composition API',
content: `
<template>
<div class="card">
<div>
<h5>Tags</h5>
<Tag class="p-mr-2" value="Primary"></Tag>
<Tag class="p-mr-2" severity="success" value="Success"></Tag>

View File

@ -134,7 +134,7 @@ export default {
tabName: 'Source',
content: `
<template>
<div class="card">
<div>
<p>Enter "date" to display the current date, "greet {0}" for a message and "random" to get a random number.</p>
<Terminal welcomeMessage="Welcome to PrimeVue" prompt="primevue $" class="dark-demo-terminal" />
</div>
@ -206,7 +206,7 @@ p {
tabName: 'Composition API',
content: `
<template>
<div class="card">
<div>
<p>Enter "date" to display the current date, "greet {0}" for a message and "random" to get a random number.</p>
<Terminal welcomeMessage="Welcome to PrimeVue" prompt="primevue $" class="dark-demo-terminal" />
</div>

View File

@ -85,7 +85,7 @@ export default {
tabName: 'Source',
content: `
<template>
<div class="card">
<div>
<h5>Basic</h5>
<Textarea v-model="value1" rows="5" cols="30" />
@ -114,7 +114,7 @@ export default {
tabName: 'Composition API',
content: `
<template>
<div class="card">
<div>
<h5>Basic</h5>
<Textarea v-model="value1" rows="5" cols="30" />

View File

@ -304,7 +304,7 @@ export default {
tabName: 'Source',
content: `
<template>
<div class="card">
<div>
<h5>Inline</h5>
<TieredMenu :model="items" />
@ -464,7 +464,7 @@ export default {
tabName: 'Composition API',
content: `
<template>
<div class="card">
<div>
<h5>Inline</h5>
<TieredMenu :model="items" />

View File

@ -146,7 +146,7 @@ export default {
tabName: 'Source',
content: `
<template>
<div class="card">
<div>
<h5>Basic</h5>
<ToggleButton v-model="checked1" onIcon="pi pi-check" offIcon="pi pi-times" />
@ -171,7 +171,7 @@ export default {
tabName: 'Composition API',
content: `
<template>
<div class="card">
<div>
<h5>Basic</h5>
<ToggleButton v-model="checked1" onIcon="pi pi-check" offIcon="pi pi-times" />

View File

@ -89,7 +89,7 @@ export default {
tabName: 'Source',
content: `
<template>
<div class="card">
<div>
<Toolbar>
<template #left>
<Button label="New" icon="pi pi-plus" class="p-mr-2" />
@ -150,7 +150,7 @@ export default {
tabName: 'Composition API',
content: `
<template>
<div class="card">
<div>
<Toolbar>
<template #left>
<Button label="New" icon="pi pi-plus" class="p-mr-2" />

View File

@ -90,7 +90,7 @@ export default {
tabName: 'Source',
content: `
<template>
<div class="card">
<div>
<h5>Positions</h5>
<div class="p-grid p-fluid">
<div class="p-col-12 p-md-3">
@ -125,7 +125,7 @@ export default {
tabName: 'Composition API',
content: `
<template>
<div class="card">
<div>
<h5>Positions</h5>
<div class="p-grid p-fluid">
<div class="p-col-12 p-md-3">

View File

@ -740,7 +740,7 @@ export default {
tabName: 'Source',
content: `
<template>
<div class="card">
<div>
<h5>Basic</h5>
<Tree :value="nodes"></Tree>
@ -804,7 +804,7 @@ button {
tabName: 'Composition API',
content: `
<template>
<div class="card">
<div>
<h5>Basic</h5>
<Tree :value="nodes"></Tree>

View File

@ -34,7 +34,7 @@ export default {
tabName: 'Source',
content: `
<template>
<div class="card">
<div>
<h5>Lenient Filter</h5>
<Tree :value="nodes" :filter="true" filterMode="lenient"></Tree>
@ -88,7 +88,7 @@ export default {
tabName: 'Composition API',
content: `
<template>
<div class="card">
<div>
<h5>Lenient Filter</h5>
<Tree :value="nodes" :filter="true" filterMode="lenient"></Tree>

View File

@ -30,7 +30,7 @@ export default {
tabName: 'Source',
content: `
<template>
<div class="card">
<div>
<Tree :value="nodes" @nodeExpand="onNodeExpand" :loading="loading"></Tree>
</div>
</template>
@ -107,7 +107,7 @@ export default {
tabName: 'Composition API',
content: `
<template>
<div class="card">
<div>
<Tree :value="nodes" @nodeExpand="onNodeExpand" :loading="loading"></Tree>
</div>
</template>

View File

@ -48,7 +48,7 @@ export default {
tabName: 'Source',
content: `
<template>
<div class="card">
<div>
<Toast />
<h5>Single Selection</h5>
@ -106,7 +106,7 @@ export default {
tabName: 'Composition API',
content: `
<template>
<div class="card">
<div>
<Toast />
<h5>Single Selection</h5>

View File

@ -55,7 +55,7 @@ export default {
tabName: 'Source',
content: `
<template>
<div class="card">
<div>
<Tree :value="nodes">
<template #default="slotProps">
<b>{{slotProps.node.label}}</b>
@ -115,7 +115,7 @@ button {
tabName: 'Composition API',
content: `
<template>
<div class="card">
<div>
<Tree :value="nodes">
<template #default="slotProps">
<b>{{slotProps.node.label}}</b>

View File

@ -37,8 +37,9 @@ export default {
sources: {
'options-api': {
tabName: 'Source',
content: `<template>
<div class="card">
content: `
<template>
<div>
<TreeTable :value="nodes">
<template #header>
<div style="text-align:left">
@ -87,8 +88,9 @@ export default {
},
'composition-api': {
tabName: 'Composition API',
content: `<template>
<div class="card">
content: `
<template>
<div>
<TreeTable :value="nodes">
<template #header>
<div style="text-align:left">

View File

@ -36,7 +36,7 @@ export default {
tabName: 'Source',
content: `
<template>
<div class="card">
<div>
<TreeTable :value="nodes" :lazy="true" :paginator="true" :rows="rows" :loading="loading"
@nodeExpand="onExpand" @page="onPage" :totalRecords="totalRecords">
<Column field="name" header="Name" :expander="true"></Column>
@ -138,8 +138,9 @@ export default {
},
'composition-api': {
tabName: 'Composition API',
content: `<template>
<div class="card">
content: `
<template>
<div>
<TreeTable :value="nodes" :lazy="true" :paginator="true" :rows="rows" :loading="loading"
@nodeExpand="onExpand" @page="onPage" :totalRecords="totalRecords">
<Column field="name" header="Name" :expander="true"></Column>
@ -172,7 +173,7 @@ export default {
loading.value = true;
setTimeout(() => {
let lazyNode = {...node.value};
let lazyNode = {...node};
lazyNode.children = [
{
@ -191,7 +192,7 @@ export default {
}
];
let nodes = nodes.value.map(n => {
let newNodes = nodes.value.map(n => {
if (n.key === node.key) {
n = lazyNode;
}
@ -200,7 +201,7 @@ export default {
});
loading.value = false;
nodes.value = nodes;
nodes.value = newNodes;
}, 250);
}
};

View File

@ -31,7 +31,7 @@ export default {
tabName: 'Source',
content: `
<template>
<div class="card">
<div>
<TreeTable :value="nodes" :paginator="true" :rows="10">
<Column field="name" header="Name" :expander="true"></Column>
<Column field="size" header="Size"></Column>
@ -82,7 +82,7 @@ export default {
tabName: 'Composition API',
content: `
<template>
<div class="card">
<div>
<TreeTable :value="nodes" :paginator="true" :rows="10">
<Column field="name" header="Name" :expander="true"></Column>
<Column field="size" header="Size"></Column>

View File

@ -42,7 +42,7 @@ export default {
tabName: 'Source',
content: `
<template>
<div class="card">
<div>
<TreeTable :value="nodes" class="p-treetable-responsive">
<template #header>
Responsive
@ -100,7 +100,7 @@ export default {
tabName: 'Composition API',
content: `
<template>
<div class="card">
<div>
<TreeTable :value="nodes" class="p-treetable-responsive">
<template #header>
Responsive

View File

@ -51,7 +51,7 @@ export default {
tabName: 'Source',
content: `
<template>
<div class="card">
<div>
<TreeTable :value="nodes">
<template #header>
FileSystem
@ -101,7 +101,7 @@ export default {
tabName: 'Composition API',
content: `
<template>
<div class="card">
<div>
<TreeTable :value="nodes">
<template #header>
FileSystem

View File

@ -82,8 +82,9 @@ export default {
sources: {
'options-api': {
tabName: 'Source',
content: `<template>
<div class="card">
content: `
<template>
<div>
<div class="p-field-checkbox p-m-0">
<TriStateCheckbox v-model="value" />
<label>{{value == null ? 'null' : value}}</label>
@ -104,8 +105,9 @@ export default {
},
'composition-api': {
tabName: 'Composition API',
content: `<template>
<div class="card">
content: `
<template>
<div>
<div class="p-field-checkbox p-m-0">
<TriStateCheckbox v-model="value" />
<label>{{value == null ? 'null' : value}}</label>