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

60 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: {
2023-08-16 13:58:31 +00:00
basic: `<Message
2023-04-28 12:06:39 +00:00
:pt="{
root: { class: 'bg-yellow-100' }
}"
>
Message Content
</Message>`,
2023-08-16 13:58:31 +00:00
options: `<template>
2023-04-28 12:06:39 +00:00
<div class="card">
<Message
:pt="{
root: { class: 'bg-yellow-100' }
}"
>
Message Content
</Message>
</div>
</template>
<script>
<\/script>`,
2023-08-16 13:58:31 +00:00
composition: `<template>
2023-04-28 12:06:39 +00:00
<div class="card">
<Message
:pt="{
root: { class: 'bg-yellow-100' }
}"
>
Message Content
</Message>
</div>
</template>
<script setup>
<\/script>`
}
};
}
};
</script>