Splitter pt tab added

pull/3852/head
Tuğçe Küçükoğlu 2023-04-10 17:01:21 +03:00
parent d9e769cddd
commit 3a09904e8d
4 changed files with 105 additions and 2 deletions

44
doc/splitter/pt/PTDoc.vue Normal file
View File

@ -0,0 +1,44 @@
<template>
<DocSectionText v-bind="$attrs"> </DocSectionText>
<div class="card">
<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>
</div>
<DocSectionCode :code="code" />
</template>
<script>
export default {
data() {
return {
code: {
basic: `
<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' } }">
<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>
</div>
</template>`,
composition: `
<template>
<div class="card">
<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>
</div>
</template>`
}
};
}
};
</script>

View File

@ -0,0 +1,8 @@
<template>
<DocSectionText v-bind="$attrs">
<p>{{ $attrs.description }}</p>
</DocSectionText>
<div>
<img class="w-full" src="/images/pt/splitter.jpg" />
</div>
</template>

49
doc/splitter/pt/index.vue Normal file
View File

@ -0,0 +1,49 @@
<template>
<div class="doc-main">
<div class="doc-intro">
<h1>Splitter Pass Through</h1>
</div>
<DocSections :docs="docs" />
</div>
<DocSectionNav :docs="docs" />
</template>
<script>
import DocApiTable from '@/components/doc/DocApiTable.vue';
import { getPTOption } from '@/components/doc/helpers/PTHelper.js';
import PtDoc from './PTDoc.vue';
import PTImage from './PTImage.vue';
export default {
data() {
return {
docs: [
{
id: 'pt.image',
label: 'WireFrame',
component: PTImage
},
{
id: 'pt.doc.splitter',
label: 'Splitter PT Options',
description: 'Pass Through Splitter',
component: DocApiTable,
data: getPTOption('Splitter')
},
{
id: 'pt.doc.tab',
label: 'SplitterPanel PT Options',
description: 'Pass Through SplitterPanel',
component: DocApiTable,
data: getPTOption('SplitterPanel')
},
{
id: 'pt.demo',
label: 'Example',
component: PtDoc
}
]
};
}
};
</script>

View File

@ -1,5 +1,5 @@
<template>
<DocComponent title="Vue Splitter Component" header="Splitter" description="Splitter is utilized to separate and resize panels." :componentDocs="docs" :apiDocs="['Splitter', 'SplitterPanel']" />
<DocComponent title="Vue Splitter Component" header="Splitter" description="Splitter is utilized to separate and resize panels." :componentDocs="docs" :apiDocs="['Splitter', 'SplitterPanel']" :ptTabComponent="ptComponent" />
</template>
<script>
@ -10,6 +10,7 @@ import NestedDoc from '@/doc/splitter/NestedDoc.vue';
import SizeDoc from '@/doc/splitter/SizeDoc.vue';
import StyleDoc from '@/doc/splitter/StyleDoc';
import VerticalDoc from '@/doc/splitter/VerticalDoc.vue';
import PTComponent from '@/doc/splitter/pt/index.vue';
export default {
data() {
@ -50,7 +51,8 @@ export default {
label: 'Accessibility',
component: AccessibilityDoc
}
]
],
ptComponent: PTComponent
};
}
};