+8
-4
lines changedFilter options
+8
-4
lines changed Original file line number Diff line number Diff line change
@@ -37,13 +37,13 @@
37
37
props: [
38
38
{
39
39
name: 'value',
40
-
type: 'String|Number|Boolean',
40
+
type: 'String|Number|Boolean|Object',
41
41
description: 'The value of the radio',
42
42
defaults: 'on'
43
43
},
44
44
{
45
45
name: 'v-model',
46
-
type: 'String|Number|Boolean',
46
+
type: 'String|Number|Boolean|Object',
47
47
description: 'The model variable to bind the selection value. If no value is assigned, then it will use the same behaviour of a regular input[type="radio"].',
48
48
defaults: 'null'
49
49
},
Original file line number Diff line number Diff line change
@@ -2,6 +2,8 @@
2
2
<div>
3
3
<md-radio v-model="radio" :value="false">Boolean</md-radio>
4
4
<md-radio v-model="radio" value="my-radio">String</md-radio>
5
+
<md-radio v-model="radio" :value="objA">Object A</md-radio>
6
+
<md-radio v-model="radio" :value="objB">Object B</md-radio>
5
7
<md-radio v-model="radio">No Value</md-radio>
6
8
<md-radio v-model="radio" disabled>Disabled</md-radio>
7
9
@@ -13,6 +15,8 @@
13
15
export default {
14
16
name: 'RegularRadio',
15
17
data: () => ({
18
+
objA: { name: 'a' },
19
+
objB: { name: 'b' },
16
20
radio: false
17
21
})
18
22
}
Original file line number Diff line number Diff line change
@@ -23,9 +23,9 @@
23
23
MdRipple
24
24
},
25
25
props: {
26
-
model: [String, Number, Boolean],
26
+
model: [String, Number, Boolean, Object],
27
27
value: {
28
-
type: [String, Number, Boolean],
28
+
type: [String, Number, Boolean, Object],
29
29
default: 'on'
30
30
},
31
31
id: {
You can’t perform that action at this time.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4