Update radio samples
parent
35cff68607
commit
a05ce64d72
|
@ -30,7 +30,6 @@ export default {
|
|||
<RadioButton v-model="selectedCategory" :inputId="category.key" name="dynamic" :value="category.name" />
|
||||
<label :for="category.key" class="ml-2">{{ category.name }}</label>
|
||||
</div>
|
||||
|
||||
`,
|
||||
options: `
|
||||
<template>
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
<p>Specify the <i>variant</i> property as <i>filled</i> to display the component with a higher visual emphasis than the default <i>outlined</i> style.</p>
|
||||
</DocSectionText>
|
||||
<div class="card flex justify-center">
|
||||
<RadioButton v-model="checked" variant="filled" binary />
|
||||
<RadioButton v-model="value" value="1" variant="filled" />
|
||||
</div>
|
||||
<DocSectionCode :code="code" />
|
||||
</template>
|
||||
|
@ -12,15 +12,15 @@
|
|||
export default {
|
||||
data() {
|
||||
return {
|
||||
checked: false,
|
||||
value: null,
|
||||
code: {
|
||||
basic: `
|
||||
<RadioButton v-model="checked" variant="filled" binary />
|
||||
<RadioButton v-model="value" value="1" variant="filled" />
|
||||
`,
|
||||
options: `
|
||||
<template>
|
||||
<div class="card flex justify-center">
|
||||
<RadioButton v-model="checked" variant="filled" binary />
|
||||
<RadioButton v-model="value" value="1" variant="filled" />
|
||||
</div>
|
||||
</template>
|
||||
|
||||
|
@ -28,7 +28,7 @@ export default {
|
|||
export default {
|
||||
data() {
|
||||
return {
|
||||
checked: true
|
||||
value: null
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -37,14 +37,14 @@ export default {
|
|||
composition: `
|
||||
<template>
|
||||
<div class="card flex justify-center">
|
||||
<RadioButton v-model="checked" variant="filled" binary />
|
||||
<RadioButton v-model="value" value="1" variant="filled" />
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
import { ref } from "vue";
|
||||
|
||||
const checked = ref(false);
|
||||
const value = ref(null);
|
||||
<\/script>
|
||||
`
|
||||
}
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
<p>Invalid state is displayed using the <i>invalid</i> prop to indicate a failed validation. You can use this style when integrating with form validation libraries.</p>
|
||||
</DocSectionText>
|
||||
<div class="card flex justify-center">
|
||||
<RadioButton invalid binary />
|
||||
<RadioButton v-model="value" value="1" :invalid="value === null" />
|
||||
</div>
|
||||
<DocSectionCode :code="code" />
|
||||
</template>
|
||||
|
@ -12,29 +12,39 @@
|
|||
export default {
|
||||
data() {
|
||||
return {
|
||||
checked: false,
|
||||
value: null,
|
||||
code: {
|
||||
basic: `
|
||||
<RadioButton invalid binary />
|
||||
<RadioButton v-model="value" value="1" :invalid="value === null" />
|
||||
`,
|
||||
options: `
|
||||
<template>
|
||||
<div class="card flex justify-center">
|
||||
<RadioButton invalid binary />
|
||||
<RadioButton v-model="value" value="1" :invalid="value === null" />
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
val: null
|
||||
}
|
||||
}
|
||||
};
|
||||
<\/script>
|
||||
`,
|
||||
composition: `
|
||||
<template>
|
||||
<div class="card flex justify-center">
|
||||
<RadioButton invalid binary />
|
||||
<RadioButton v-model="value" value="1" :invalid="value === null" />
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
import { ref } from 'vue';
|
||||
|
||||
const val = ref(null);
|
||||
<\/script>
|
||||
`
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue