-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
/
ExRadioButton.vue
44 lines (40 loc) · 1.08 KB
/
ExRadioButton.vue
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
<template>
<section>
<b-field>
<b-radio-button v-model="radioButton"
native-value="Nope"
type="is-danger">
<b-icon icon="close"></b-icon>
<span>Nope</span>
</b-radio-button>
<b-radio-button v-model="radioButton"
native-value="Yep"
type="is-success">
<b-icon icon="check"></b-icon>
<span>Yep</span>
</b-radio-button>
<b-radio-button v-model="radioButton"
native-value="Default">
Default
</b-radio-button>
<b-radio-button v-model="radioButton"
native-value="Disabled"
disabled>
Disabled
</b-radio-button>
</b-field>
<p class="content">
<b>Selection:</b>
{{ radioButton }}
</p>
</section>
</template>
<script>
export default {
data() {
return {
radioButton: ''
}
}
}
</script>