@magicgol/polyjuice 0.33.6 → 0.33.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
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
|
};
|