@magicgol/polyjuice 0.33.6 → 0.33.7
Sign up to get free protection for your applications and to get access to all the features.
package/package.json
CHANGED
@@ -17,7 +17,10 @@
|
|
17
17
|
<span class="mg-checkbox-check align-middle d-inline-block position-relative"></span>
|
18
18
|
<!-- end of THE SQUARE -->
|
19
19
|
<!-- TEXT AS LABEL -->
|
20
|
-
<span
|
20
|
+
<span
|
21
|
+
v-if="slotVisibility"
|
22
|
+
class="align-middle pl-2"
|
23
|
+
>
|
21
24
|
<slot></slot>
|
22
25
|
</span>
|
23
26
|
<!-- end of TEXT AS LABEL -->
|
@@ -48,6 +51,9 @@ export default {
|
|
48
51
|
'mg-checkbox': true,
|
49
52
|
'mg-checkbox--disabled': this.disabled,
|
50
53
|
};
|
54
|
+
},
|
55
|
+
slotVisibility() {
|
56
|
+
return 'default' in this.$slots && !!this.$slots.default;
|
51
57
|
}
|
52
58
|
},
|
53
59
|
};
|