primevue-mirror/doc/message/pt/PTDoc.vue

63 lines
1.1 KiB
Vue
Raw Normal View History

2023-04-28 12:06:39 +00:00
<template>
<DocSectionText v-bind="$attrs"></DocSectionText>
<div class="card">
<Message
:pt="{
root: { class: 'bg-yellow-100' }
}"
>
Message Content
</Message>
</div>
<DocSectionCode :code="code" />
</template>
<script>
export default {
data() {
return {
code: {
basic: `
<Message
:pt="{
root: { class: 'bg-yellow-100' }
}"
>
Message Content
</Message>`,
options: `
<template>
<div class="card">
<Message
:pt="{
root: { class: 'bg-yellow-100' }
}"
>
Message Content
</Message>
</div>
</template>
<script>
<\/script>`,
composition: `
<template>
<div class="card">
<Message
:pt="{
root: { class: 'bg-yellow-100' }
}"
>
Message Content
</Message>
</div>
</template>
<script setup>
<\/script>`
}
};
}
};
</script>