@enso-ui/switch 2.0.7 → 2.0.8

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@enso-ui/switch",
3
- "version": "2.0.7",
3
+ "version": "2.0.8",
4
4
  "description": "Vue Switch",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -1,5 +1,9 @@
1
1
  <template>
2
2
  <label class="vue-switch">
3
+ <label class="control-label"
4
+ @click="toggle">
5
+ <slot name="before"/>
6
+ </label>
3
7
  <input class="checkbox"
4
8
  type="checkbox"
5
9
  :value="modelValue"
@@ -13,7 +17,7 @@
13
17
  @click="toggle"/>
14
18
  <label class="control-label"
15
19
  @click="toggle">
16
- <slot/>
20
+ <slot name="after"/>
17
21
  </label>
18
22
  </label>
19
23
  </template>
@@ -119,7 +123,6 @@ export default {
119
123
  }
120
124
 
121
125
  .control-label {
122
- padding-left: 0.5rem;
123
126
  cursor: pointer;
124
127
  font-size: calc(0.9 * var(--height));
125
128
  }