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

78 lines
1.8 KiB
Vue
Raw Normal View History

2023-08-07 13:34:41 +00:00
<template>
<DocSectionText v-bind="$attrs"></DocSectionText>
<div class="card flex justify-content-center align-items-center">
<div
v-ripple="{
pt: {
root: 'bg-yellow-400'
}
}"
2024-01-24 10:57:05 +00:00
class="p-ripple bg-primary flex select-none justify-content-center align-items-center border-round p-6 font-bold"
2023-08-07 13:34:41 +00:00
>
Default
</div>
</div>
<DocSectionCode :code="code" />
</template>
<script>
export default {
data() {
return {
code: {
2023-09-22 12:54:14 +00:00
basic: `
<div
2023-08-07 13:34:41 +00:00
v-ripple="{
pt: {
root: 'bg-yellow-400'
}
}"
2024-01-24 10:57:05 +00:00
class="p-ripple bg-primary flex select-none justify-content-center align-items-center border-round p-6 font-bold"
2023-08-07 13:34:41 +00:00
>
Default
2023-10-15 09:38:39 +00:00
</div>
`,
2023-09-22 12:54:14 +00:00
options: `
<template>
2023-08-07 13:34:41 +00:00
<div class="card card-container flex justify-content-center align-items-center">
<div
v-ripple="{
pt: {
root: 'bg-yellow-400'
}
}"
2024-01-24 10:57:05 +00:00
class="p-ripple bg-primary flex select-none justify-content-center align-items-center border-round p-6 font-bold"
2023-08-07 13:34:41 +00:00
>
Default
</div>
</div>
</template>
<script>
2023-10-15 09:38:39 +00:00
<\/script>
`,
2023-09-22 12:54:14 +00:00
composition: `
<template>
2023-08-07 13:34:41 +00:00
<div class="card card-container flex justify-content-center align-items-center">
<div
v-ripple="{
pt: {
root: 'bg-yellow-400'
}
}"
2024-01-24 10:57:05 +00:00
class="p-ripple bg-primary flex select-none justify-content-center align-items-center border-round p-6 font-bold"
2023-08-07 13:34:41 +00:00
>
Default
</div>
</div>
</template>
<script setup>
2023-10-15 09:38:39 +00:00
<\/script>
`
2023-08-07 13:34:41 +00:00
}
};
}
};
</script>