@eturnity/eturnity_reusable_components 1.2.31-3d-master.10 → 1.2.31-3d-master.11

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": "@eturnity/eturnity_reusable_components",
3
- "version": "1.2.31-3d-master.10",
3
+ "version": "1.2.31-3d-master.11",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "dev": "vue-cli-service serve",
package/src/App.vue CHANGED
@@ -30,7 +30,19 @@
30
30
  </div>
31
31
  </template>
32
32
  </input-number>
33
-
33
+
34
+ <SwitchField
35
+ @on-switch-change="onInputChange($event)"
36
+ :options="[{value:0,content:'zero'},{value:1,content:'one'},{value:2,content:'two'}]"
37
+ :value="value"
38
+ label="label"
39
+ toggleColor="red"
40
+ size="large"
41
+ backgroundColor="blue"
42
+ labelAlign="left"
43
+ fontColor="black"
44
+ :disabled="false"
45
+ />
34
46
 
35
47
  <Select
36
48
  :value="value"
@@ -64,6 +76,7 @@ import theme from "./assets/theme"
64
76
  import styled from "vue-styled-components"
65
77
  import InputNumber from "@/components/inputs/inputNumber"
66
78
  import Select from "@/components/inputs/select"
79
+ import SwitchField from "@/components/inputs/switchField"
67
80
  import Option from "@/components/inputs/select/option"
68
81
  import Modal from "@/components/modals/modal"
69
82
 
@@ -88,6 +101,7 @@ export default {
88
101
  Modal,
89
102
  Option,
90
103
  Select,
104
+ SwitchField
91
105
  },
92
106
  data() {
93
107
  return {
@@ -234,6 +234,11 @@ import styled from "vue-styled-components"
234
234
  this.$emit("on-switch-change", this.selectedValue)
235
235
  },
236
236
  },
237
+ watch:{
238
+ value(val){
239
+ this.selectedValue=val
240
+ }
241
+ }
237
242
  }
238
243
  </script>
239
244