@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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@magicgol/polyjuice",
3
- "version": "0.33.6",
3
+ "version": "0.33.7",
4
4
  "scripts": {
5
5
  "serve": "vue-cli-service serve",
6
6
  "build": "vue-cli-service build",
@@ -94,7 +94,7 @@ export default {
94
94
  return 'col-' + ((this.secondColVisibility ? 8 : 10) - this.actionsCol);
95
95
  },
96
96
  thirdColClass () {
97
- return this.actionsColVisibility ? 'col-2' : 'col-3 pr-2'
97
+ return this.actionsColVisibility ? 'col-2' : 'col-3'
98
98
  }
99
99
  },
100
100
 
@@ -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 class="align-middle pl-2">
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
  };