+16
-3
lines changedFilter options
+16
-3
lines changed Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
1
1
<template>
2
2
<div class="md-file">
3
-
<md-file-icon @click.native="openPicker" />
3
+
<md-file-icon class="md-file-icon" :class="iconClass" @click.native="openPicker" />
4
4
5
5
<input
6
6
class="md-input"
@@ -31,6 +31,13 @@
31
31
},
32
32
name: String
33
33
},
34
+
computed: {
35
+
iconClass () {
36
+
return {
37
+
'md-disabled': this.disabled
38
+
}
39
+
}
40
+
},
34
41
mixins: [MdFieldMixin],
35
42
inject: ['MdField'],
36
43
methods: {
@@ -95,8 +102,14 @@
95
102
border: 0;
96
103
}
97
104
98
-
.md-icon {
99
-
cursor: pointer;
105
+
.md-file-icon {
106
+
&:not(.md-disabled) {
107
+
cursor: pointer;
108
+
}
109
+
110
+
&.md-disabled {
111
+
pointer-events: none;
112
+
}
100
113
}
101
114
}
102
115
</style>
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