@monoui/vuejs 1.1.38 → 1.1.39

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": "@monoui/vuejs",
3
- "version": "1.1.38",
3
+ "version": "1.1.39",
4
4
  "description": "This project will contain MonoFor UI Framework",
5
5
  "main": "./dist/main.js",
6
6
  "repository": "git@gitlab.com:monoui/vuejs.git",
@@ -6,6 +6,7 @@
6
6
  :value="checkedValue"
7
7
  :unchecked-value="uncheckedValue"
8
8
  :class="innerClass"
9
+ :switch="switchValue()"
9
10
  >
10
11
  <slot></slot>
11
12
  </b-checkbox>
@@ -53,6 +54,11 @@ export default {
53
54
  */
54
55
  uncheckedValue: {
55
56
  required: false
57
+ },
58
+ switch: {
59
+ type: Boolean,
60
+ default: false,
61
+ required: false
56
62
  }
57
63
  },
58
64
  watch: {
@@ -67,6 +73,12 @@ export default {
67
73
  },
68
74
  mounted() {
69
75
  this.tempValue = this.value;
76
+ },
77
+ methods: {
78
+ switchValue() {
79
+ if (this.switch) return true;
80
+ return false;
81
+ }
70
82
  }
71
83
  };
72
84
  </script>