Update disabled radio demo

pull/5880/head
Cagatay Civici 2024-06-13 10:26:25 +03:00
parent d90e1388a2
commit b268a9819a
1 changed files with 7 additions and 7 deletions

View File

@ -3,7 +3,7 @@
<p>When <i>disabled</i> is present, the element cannot be edited and focused.</p> <p>When <i>disabled</i> is present, the element cannot be edited and focused.</p>
</DocSectionText> </DocSectionText>
<div class="card flex justify-center"> <div class="card flex justify-center">
<RadioButton v-model="checked" disabled :value="checked" /> <RadioButton v-model="value" :value="1" disabled />
</div> </div>
<DocSectionCode :code="code" /> <DocSectionCode :code="code" />
</template> </template>
@ -12,15 +12,15 @@
export default { export default {
data() { data() {
return { return {
checked: true, value: null,
code: { code: {
basic: ` basic: `
<RadioButton v-model="checked" disabled :value="checked" /> <RadioButton v-model="value" :value="1" disabled />
`, `,
options: ` options: `
<template> <template>
<div class="card flex justify-center"> <div class="card flex justify-center">
<RadioButton v-model="checked" disabled :value="checked" /> <RadioButton v-model="value" :value="1" disabled />
</div> </div>
</template> </template>
@ -28,7 +28,7 @@ export default {
export default { export default {
data() { data() {
return { return {
checked: true value: null
} }
} }
} }
@ -37,14 +37,14 @@ export default {
composition: ` composition: `
<template> <template>
<div class="card flex justify-center"> <div class="card flex justify-center">
<RadioButton v-model="checked" disabled :value="checked" /> <RadioButton v-model="value" :value="1" disabled />
</div> </div>
</template> </template>
<script setup> <script setup>
import { ref } from "vue"; import { ref } from "vue";
const checked = ref(false); const value = ref(null);
<\/script> <\/script>
` `
} }