2023-05-07 11:38:47 +00:00
|
|
|
<template>
|
|
|
|
<DocSectionText v-bind="$attrs"> </DocSectionText>
|
|
|
|
<div class="card flex justify-content-center">
|
2023-05-08 13:01:44 +00:00
|
|
|
<ToggleButton
|
|
|
|
v-model="checked"
|
|
|
|
:pt="{
|
2023-05-09 08:57:03 +00:00
|
|
|
root: {
|
|
|
|
class: ['w-8rem', { 'bg-teal-400 border-white': checked }]
|
|
|
|
}
|
2023-05-08 13:01:44 +00:00
|
|
|
}"
|
|
|
|
/>
|
2023-05-07 11:38:47 +00:00
|
|
|
</div>
|
|
|
|
<DocSectionCode :code="code" />
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
export default {
|
|
|
|
data() {
|
|
|
|
return {
|
|
|
|
checked: false,
|
|
|
|
code: {
|
2023-09-22 12:54:14 +00:00
|
|
|
basic: `
|
|
|
|
<ToggleButton
|
2023-05-08 13:01:44 +00:00
|
|
|
v-model="checked"
|
|
|
|
:pt="{
|
2023-05-09 08:57:03 +00:00
|
|
|
root: {
|
|
|
|
class: ['w-8rem', { 'bg-teal-400 border-white': checked }]
|
|
|
|
}
|
2023-05-08 13:01:44 +00:00
|
|
|
}"
|
|
|
|
/>`,
|
2023-09-22 12:54:14 +00:00
|
|
|
options: `
|
|
|
|
<template>
|
2023-05-07 11:38:47 +00:00
|
|
|
<div class="card flex justify-content-center">
|
2023-05-08 13:01:44 +00:00
|
|
|
<ToggleButton
|
|
|
|
v-model="checked"
|
|
|
|
:pt="{
|
2023-05-09 08:57:03 +00:00
|
|
|
root: {
|
|
|
|
class: ['w-8rem', { 'bg-teal-400 border-white': checked }]
|
|
|
|
}
|
2023-05-08 13:01:44 +00:00
|
|
|
}"
|
|
|
|
/>
|
2023-05-07 11:38:47 +00:00
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
export default {
|
|
|
|
data() {
|
|
|
|
return {
|
|
|
|
checked: false
|
|
|
|
}
|
|
|
|
}
|
|
|
|
};
|
|
|
|
<\/script>`,
|
2023-09-22 12:54:14 +00:00
|
|
|
composition: `
|
|
|
|
<template>
|
2023-05-07 11:38:47 +00:00
|
|
|
<div class="card flex justify-content-center">
|
2023-05-08 13:01:44 +00:00
|
|
|
<ToggleButton
|
|
|
|
v-model="checked"
|
|
|
|
:pt="{
|
2023-05-09 08:57:03 +00:00
|
|
|
root: {
|
|
|
|
class: ['w-8rem', { 'bg-teal-400 border-white': checked }]
|
|
|
|
}
|
2023-05-08 13:01:44 +00:00
|
|
|
}"
|
|
|
|
/>
|
2023-05-07 11:38:47 +00:00
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script setup>
|
|
|
|
import { ref } from 'vue';
|
|
|
|
|
|
|
|
const checked = ref(false);
|
|
|
|
<\/script>`
|
|
|
|
}
|
|
|
|
};
|
|
|
|
}
|
|
|
|
};
|
|
|
|
</script>
|