File tree Expand file tree Collapse file tree 6 files changed +44
-13
lines changed Expand file tree Collapse file tree 6 files changed +44
-13
lines changed Original file line number Diff line number Diff line change 89
89
background-color: #{'BACKGROUND-CONTRAST-0.4'};
90
90
}
91
91
}
92
+
93
+ .md-card-header,
94
+ .md-card-actions {
95
+ .md-icon-button:not(.md-primary):not(.md-warn):not(.md-accent) {
96
+ .md-icon {
97
+ color: #fff;
98
+ }
99
+ }
100
+ }
92
101
}
93
102
94
103
.md-card-expand {
Original file line number Diff line number Diff line change 14
14
},
15
15
computed: {
16
16
classes () {
17
- let classes = {
18
- ' md-16-9' : this .mdRatio === ' 16:9' || this .mdRatio === ' 16/9' ,
19
- ' md-4-3' : this .mdRatio === ' 4:3' || this .mdRatio === ' 4/3' ,
20
- ' md-1-1' : this .mdRatio === ' 1:1' || this .mdRatio === ' 1/1'
21
- };
17
+ let classes = {};
18
+
19
+ if (this .mdRatio ) {
20
+ let ratio = [];
21
+
22
+ if (this .mdRatio .indexOf (' :' ) !== - 1 ) {
23
+ ratio = this .mdRatio .split (' :' );
24
+ } else if (this .mdRatio .indexOf (' /' ) !== - 1 ) {
25
+ ratio = this .mdRatio .split (' /' );
26
+ }
27
+
28
+ if (ratio .length === 2 ) {
29
+ classes[' md-' + ratio[0 ] + ' -' + ratio[1 ]] = true ;
30
+ }
31
+ }
22
32
23
33
if (this .mdMedium || this .mdBig ) {
24
34
classes = {
Original file line number Diff line number Diff line change @@ -8,7 +8,14 @@ $checkbox-touch-size: 48px;
8
8
margin : 16px 8px 16px 0 ;
9
9
display : inline-flex ;
10
10
position : relative ;
11
- cursor : pointer ;
11
+
12
+ & :not (.md-disabled ) {
13
+ cursor : pointer ;
14
+
15
+ .md-checkbox-label {
16
+ cursor : pointer ;
17
+ }
18
+ }
12
19
13
20
.md-checkbox-container {
14
21
width : $checkbox-size ;
@@ -78,7 +85,6 @@ $checkbox-touch-size: 48px;
78
85
height : $checkbox-size ;
79
86
padding-left : 8px ;
80
87
line-height : $checkbox-size ;
81
- cursor : pointer ;
82
88
}
83
89
}
84
90
Original file line number Diff line number Diff line change @@ -8,7 +8,14 @@ $radio-touch-size: 48px;
8
8
margin : 16px 8px 16px 0 ;
9
9
display : inline-flex ;
10
10
position : relative ;
11
- cursor : pointer ;
11
+
12
+ & :not (.md-disabled ) {
13
+ cursor : pointer ;
14
+
15
+ .md-radio-label {
16
+ cursor : pointer ;
17
+ }
18
+ }
12
19
13
20
.md-radio-container {
14
21
width : $radio-size ;
@@ -71,7 +78,6 @@ $radio-touch-size: 48px;
71
78
height : $radio-size ;
72
79
padding-left : 8px ;
73
80
line-height : $radio-size ;
74
- cursor : pointer ;
75
81
}
76
82
}
77
83
Original file line number Diff line number Diff line change 1
1
<template >
2
2
<div class =" md-radio" :class =" [themeClass, classes]" >
3
- <div class =" md-radio-container" @click =" toggleCheck" >
4
- <input type =" radio" :name =" name" :id =" id" :disabled =" disabled" :value =" value" @click = " toggleCheck " >
3
+ <div class =" md-radio-container" @click.stop =" toggleCheck" >
4
+ <input type =" radio" :name =" name" :id =" id" :disabled =" disabled" :value =" value" >
5
5
<md-ink-ripple :md-disabled =" disabled" />
6
6
</div >
7
7
8
- <label :for =" id || name" class =" md-radio-label" v-if =" $slots.default" >
8
+ <label :for =" id || name" class =" md-radio-label" v-if =" $slots.default" @click = " toggleCheck " >
9
9
<slot ></slot >
10
10
</label >
11
11
</div >
Original file line number Diff line number Diff line change 65
65
},
66
66
handleSingleSelection (value ) {
67
67
this .parentTable .setRowSelection (value, this .mdItem );
68
- this .parentTable .$children [0 ].checkbox = this .parentTable .numberOfSelected === this .parentTable .rowsCounter ;
68
+ this .parentTable .$children [0 ].checkbox = this .parentTable .numberOfSelected === this .parentTable .numberOfRows ;
69
69
},
70
70
handleMultipleSelection (value ) {
71
71
if (this .parentTable .numberOfRows > 25 ) {
You can’t perform that action at this time.
0 commit comments