@zscreate/zhxy-app-component 1.0.72 → 1.0.73

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.
@@ -117,7 +117,7 @@
117
117
  {{widget.name}}
118
118
  </view>
119
119
  <view class="evan-form-item-container__main" :style="mContentStyle">
120
- <form-switch :checked="dataModel" :default-value="widget.options.defaultValue" @change="switch1Change" color="#007AFF" style="transform: scale(0.8,0.8)"
120
+ <switch :checked="Boolean(dataModel)" @change="switch1Change" color="#007AFF" style="transform: scale(0.8,0.8)"
121
121
  :disabled="widget.options.disabled" />
122
122
  </view>
123
123
  </view>
@@ -469,11 +469,9 @@
469
469
  import {
470
470
  getMode
471
471
  } from './utilForForm'
472
- import FormSwitch from "../form-switch/form-switch";
473
472
  export default {
474
473
  mixins: [computedMixin, validateFormMixin, pubSubMixin, valueChangeMixin],
475
474
  components: {
476
- FormSwitch,
477
475
  UniRate,
478
476
  tColorPicker,
479
477
  unploadFile,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zscreate/zhxy-app-component",
3
- "version": "1.0.72",
3
+ "version": "1.0.73",
4
4
  "private": false,
5
5
  "description": "zhxy-app-component",
6
6
  "main": "index.js",
@@ -1,33 +0,0 @@
1
- <template>
2
- <switch :checked="dataModel" @change="change" :color="color"
3
- :disabled="disabled" />
4
- </template>
5
-
6
- <script>
7
- export default {
8
- name: "form-switch",
9
- props: {
10
- color: String,
11
- checked: Boolean,
12
- disabled: Boolean,
13
- defaultValue: Boolean,
14
- },
15
- data() {
16
- return {
17
- dataModel: false
18
- }
19
- },
20
- created() {
21
- this.dataModel = this.defaultValue
22
- },
23
- methods: {
24
- change(e) {
25
- this.$emit('change', e)
26
- }
27
- }
28
- }
29
- </script>
30
-
31
- <style scoped>
32
-
33
- </style>