pull/6449/head
Cagatay Civici 2024-09-20 14:22:38 +03:00
commit d8b4cdf6ef
5 changed files with 51 additions and 26 deletions

View File

@ -1,8 +0,0 @@
<template>
<DocSectionText v-bind="$attrs">
<p>{{ $attrs.description }}</p>
</DocSectionText>
<div class="card">
<img class="w-full" src="https://primefaces.org/cdn/primevue/images/pt/wireframe-placeholder.jpg" />
</div>
</template>

View File

@ -11,17 +11,11 @@
<script> <script>
import DocApiTable from '@/components/doc/DocApiTable.vue'; import DocApiTable from '@/components/doc/DocApiTable.vue';
import { getPTOptions } from '@/components/doc/helpers'; import { getPTOptions } from '@/components/doc/helpers';
import PTImage from './PTImage.vue';
export default { export default {
data() { data() {
return { return {
docs: [ docs: [
{
id: 'pt.image',
label: 'Wireframe',
component: PTImage
},
{ {
id: 'pt.doc.ripple', id: 'pt.doc.ripple',
label: 'Ripple PT Options', label: 'Ripple PT Options',

View File

@ -1,8 +0,0 @@
<template>
<DocSectionText v-bind="$attrs">
<p>{{ $attrs.description }}</p>
</DocSectionText>
<div class="card">
<img class="w-full" src="https://primefaces.org/cdn/primevue/images/pt/toast.jpg" />
</div>
</template>

View File

@ -0,0 +1,47 @@
<template>
<DocSectionText v-bind="$attrs" />
<DocPTViewer :docs="docs">
<div class="p-toast p-component" data-pc-name="toast">
<div>
<div class="p-toast-message p-toast-message-info" data-pc-section="message">
<div class="p-toast-message-content" data-pc-section="messagecontent">
<InfoCircleIcon class="p-toast-message-icon" data-pc-section="messageicon" />
<div class="p-toast-message-text" data-pc-section="messagetext">
<span class="p-toast-summary" data-pc-section="summary">Message Summary</span>
<div class="p-toast-detail" data-pc-section="detail">Message Detail</div>
</div>
<div data-pc-section="buttoncontainer">
<button class="p-toast-close-button" type="button" data-pc-section="closebutton">
<TimesIcon class="p-toast-close-icon" data-pc-section="closeicon" />
</button>
</div>
</div>
</div>
</div>
</div>
</DocPTViewer>
</template>
<script>
import { getPTOptions } from '@/components/doc/helpers';
import InfoCircleIcon from '@primevue/icons/infocircle';
import TimesIcon from '@primevue/icons/times';
import { markRaw } from 'vue';
export default {
data() {
return {
docs: [
{
data: getPTOptions('Toast'),
key: 'Toast'
}
]
};
},
components: {
InfoCircleIcon: markRaw(InfoCircleIcon),
TimesIcon: markRaw(TimesIcon)
}
};
</script>

View File

@ -11,16 +11,16 @@
<script> <script>
import DocApiTable from '@/components/doc/DocApiTable.vue'; import DocApiTable from '@/components/doc/DocApiTable.vue';
import { getPTOptions } from '@/components/doc/helpers'; import { getPTOptions } from '@/components/doc/helpers';
import PTImage from './PTImage.vue'; import PTViewer from './PTViewer.vue';
export default { export default {
data() { data() {
return { return {
docs: [ docs: [
{ {
id: 'pt.image', id: 'pt.viewer',
label: 'Wireframe', label: 'Viewer',
component: PTImage component: PTViewer
}, },
{ {
id: 'pt.doc.toast', id: 'pt.doc.toast',