PT demos updated

pull/3892/head
Tuğçe Küçükoğlu 2023-04-19 11:13:06 +03:00
parent 2aee60b5db
commit f318e45f06
6 changed files with 81 additions and 36 deletions

View File

@ -7,7 +7,7 @@
:key="tab.title"
:header="tab.title"
:pt="{
headeraction: ({ props, parent }) => ({
headerAction: ({ props, parent }) => ({
class: panelClass(props, parent, index)
})
}"
@ -32,7 +32,7 @@ export default {
<Accordion :activeIndex="0">
<AccordionTab v-for="(tab, index) in tabs" :key="tab.title" :header="tab.title"
:pt="{
headeraction: ({ props, parent }) => ({
headerAction: ({ props, parent }) => ({
class: panelClass(props, parent, index)
})
}">
@ -45,7 +45,7 @@ export default {
<Accordion :activeIndex="0">
<AccordionTab v-for="(tab, index) in tabs" :key="tab.title" :header="tab.title"
:pt="{
headeraction: ({ props, parent }) => ({
headerAction: ({ props, parent }) => ({
class: panelClass(props, parent, index)
})
}">
@ -82,7 +82,7 @@ export default {
<Accordion :activeIndex="0">
<AccordionTab v-for="(tab, index) in tabs" :key="tab.title" :header="tab.title"
:pt="{
headeraction: ({ props, parent }) => ({
headerAction: ({ props, parent }) => ({
class: panelClass(props, parent, index)
})
}">

View File

@ -1,7 +1,7 @@
<template>
<DocSectionText v-bind="$attrs"> </DocSectionText>
<div class="card">
<Fieldset legend="Header" :toggleable="true" :pt="{ legend: { class: 'bg-primary' }, legendtitle: { class: 'text-white' }, togglericon: { class: 'text-white' } }">
<Fieldset legend="Header" :toggleable="true" :pt="{ legend: { class: 'bg-primary' }, legendTitle: { class: 'text-white' }, togglerIcon: { class: 'text-white' } }">
<p>
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
@ -17,11 +17,13 @@ export default {
return {
code: {
basic: `
<Fieldset legend="Header" :toggleable="true"
<Fieldset
legend="Header"
:toggleable="true"
:pt="{
legend: { class: 'bg-primary' },
legendtitle: { class: 'text-white' },
togglericon: { class: 'text-white' }
legendTitle: { class: 'text-white' },
togglerIcon: { class: 'text-white' }
}">
<p>
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
@ -31,11 +33,13 @@ export default {
options: `
<template>
<div class="card">
<Fieldset legend="Header" :toggleable="true"
<Fieldset
legend="Header"
:toggleable="true"
:pt="{
legend: { class: 'bg-primary' },
legendtitle: { class: 'text-white' },
togglericon: { class: 'text-white' }
legendTitle: { class: 'text-white' },
togglerIcon: { class: 'text-white' }
}">
<p>
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
@ -47,11 +51,13 @@ export default {
composition: `
<template>
<div class="card">
<Fieldset legend="Header" :toggleable="true"
<Fieldset
legend="Header"
:toggleable="true"
:pt="{
legend: { class: 'bg-primary' },
legendtitle: { class: 'text-white' },
togglericon: { class: 'text-white' }
legendTitle: { class: 'text-white' },
togglerIcon: { class: 'text-white' }
}">
<p>
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.

View File

@ -25,7 +25,13 @@ export default {
return {
code: {
basic: `
<ScrollPanel :pt="{ root: { style: { width: '100%', height: '200px' } }, bary: { class: 'bg-primary' } }">
<ScrollPanel
:pt="{
root: {
style: { width: '100%', height: '200px' }
},
barY: { class: 'bg-primary' }
}">
<p>
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
@ -42,7 +48,13 @@ export default {
options: `
<template>
<div class="card">
<ScrollPanel :pt="{ root: { style: { width: '100%', height: '200px' } }, bary: { class: 'bg-primary' } }">
<ScrollPanel
:pt="{
root: {
style: { width: '100%', height: '200px' }
},
barY: { class: 'bg-primary' }
}">
<p>
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
@ -61,7 +73,13 @@ export default {
composition: `
<template>
<div class="card">
<ScrollPanel :pt="{ root: { style: { width: '100%', height: '200px' } }, bary: { class: 'bg-primary' } }">
<ScrollPanel
:pt="{
root: {
style: { width: '100%', height: '200px' }
},
barY: { class: 'bg-primary' }
}">
<p>
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

View File

@ -1,7 +1,7 @@
<template>
<DocSectionText v-bind="$attrs"> </DocSectionText>
<div class="card">
<Splitter :pt="{ root: { style: { height: '300px' } }, gutterhandler: { class: 'bg-primary' } }">
<Splitter :pt="{ root: { style: { height: '300px' } }, gutterHandler: { class: 'bg-primary' } }">
<SplitterPanel :pt="{ root: { class: 'flex align-items-center justify-content-center' } }"> Panel 1 </SplitterPanel>
<SplitterPanel :pt="{ root: { class: 'flex align-items-center justify-content-center' } }"> Panel 2 </SplitterPanel>
</Splitter>
@ -15,14 +15,22 @@ export default {
return {
code: {
basic: `
<Splitter :pt="{ root: { style: { height: '300px' } }, gutterhandler: { class: 'bg-primary' } }">
<Splitter
:pt="{
root: { style: { height: '300px' } },
gutterHandler: { class: 'bg-primary' }
}">
<SplitterPanel :pt="{ root: { class: 'flex align-items-center justify-content-center' } }"> Panel 1 </SplitterPanel>
<SplitterPanel :pt="{ root: { class: 'flex align-items-center justify-content-center' } }"> Panel 2 </SplitterPanel>
</Splitter>`,
options: `
<template>
<div class="card">
<Splitter :pt="{ root: { style: { height: '300px' } }, gutterhandler: { class: 'bg-primary' } }">
<Splitter
:pt="{
root: { style: { height: '300px' } },
gutterHandler: { class: 'bg-primary' }
}">
<SplitterPanel :pt="{ root: { class: 'flex align-items-center justify-content-center' } }"> Panel 1 </SplitterPanel>
<SplitterPanel :pt="{ root: { class: 'flex align-items-center justify-content-center' } }"> Panel 2 </SplitterPanel>
</Splitter>
@ -31,7 +39,11 @@ export default {
composition: `
<template>
<div class="card">
<Splitter :pt="{ root: { style: { height: '300px' } }, gutterhandler: { class: 'bg-primary' } }">
<Splitter
:pt="{
root: { style: { height: '300px' } },
gutterHandler: { class: 'bg-primary' }
}">
<SplitterPanel :pt="{ root: { class: 'flex align-items-center justify-content-center' } }"> Panel 1 </SplitterPanel>
<SplitterPanel :pt="{ root: { class: 'flex align-items-center justify-content-center' } }"> Panel 2 </SplitterPanel>
</Splitter>

View File

@ -7,7 +7,7 @@
:key="tab.title"
:header="tab.title"
:pt="{
headeraction: ({ props, parent }) => ({
headerAction: ({ props, parent }) => ({
class: panelClass(props, parent, index)
})
}"
@ -32,7 +32,7 @@ export default {
<TabView>
<TabPanel v-for="(tab, index) in tabs" :key="tab.title" :header="tab.title"
:pt="{
headeraction: ({ props, parent }) => ({
headerAction: ({ props, parent }) => ({
class: panelClass(props, parent, index)
})
}">
@ -45,7 +45,7 @@ export default {
<TabView>
<TabPanel v-for="(tab, index) in tabs" :key="tab.title" :header="tab.title"
:pt="{
headeraction: ({ props, parent }) => ({
headerAction: ({ props, parent }) => ({
class: panelClass(props, parent, index)
})
}">

View File

@ -22,7 +22,10 @@ export default {
code: {
basic: `
<TabView>
<Toolbar :pt="{ root: { style: { background: 'linear-gradient(to right, #8e2de2, #4a00e0)', borderRadius: '24px' } } }">
<Toolbar
:pt="{
root: { style: { background: 'linear-gradient(to right, #8e2de2, #4a00e0)', borderRadius: '24px' } }
}">
<template #start>
<Button label="New" icon="pi pi-plus" class="p-button-help" />
</template>
@ -36,7 +39,10 @@ export default {
options: `
<template>
<div class="card">
<Toolbar :pt="{ root: { style: { background: 'linear-gradient(to right, #8e2de2, #4a00e0)', borderRadius: '24px' } } }">
<Toolbar
:pt="{
root: { style: { background: 'linear-gradient(to right, #8e2de2, #4a00e0)', borderRadius: '24px' } }
}">
<template #start>
<Button label="New" icon="pi pi-plus" class="p-button-help" />
</template>
@ -51,7 +57,10 @@ export default {
composition: `
<template>
<div class="card">
<Toolbar :pt="{ root: { style: { background: 'linear-gradient(to right, #8e2de2, #4a00e0)', borderRadius: '24px' } } }">
<Toolbar
:pt="{
root: { style: { background: 'linear-gradient(to right, #8e2de2, #4a00e0)', borderRadius: '24px' } }
}">
<template #start>
<Button label="New" icon="pi pi-plus" class="p-button-help" />
</template>