vue2-client 1.15.55 → 1.15.57

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": "vue2-client",
3
- "version": "1.15.55",
3
+ "version": "1.15.57",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "serve": "SET NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service serve --no-eslint",
@@ -1093,8 +1093,15 @@ export default {
1093
1093
  this.show = obj
1094
1094
  } else if (obj && typeof obj === 'object') {
1095
1095
  // obj 是一个对象,并且不是数组
1096
- this.show = obj?.show
1097
- this.readOnly = obj?.readOnly
1096
+ if (obj.hasOwnProperty('show')) {
1097
+ this.show = obj?.show
1098
+ }
1099
+ if (obj.hasOwnProperty('readOnly')) {
1100
+ this.readOnly = obj?.readOnly
1101
+ }
1102
+ if (obj.hasOwnProperty('disabled')) {
1103
+ this.disabled = obj?.disabled
1104
+ }
1098
1105
  }
1099
1106
  } else {
1100
1107
  this.show = true
@@ -1108,8 +1115,15 @@ export default {
1108
1115
  this.show = obj
1109
1116
  } else if (obj && typeof obj === 'object') {
1110
1117
  // obj 是一个对象,并且不是数组
1111
- this.show = obj?.show
1112
- this.readOnly = obj?.readOnly
1118
+ if (obj.hasOwnProperty('show')) {
1119
+ this.show = obj?.show
1120
+ }
1121
+ if (obj.hasOwnProperty('readOnly')) {
1122
+ this.readOnly = obj?.readOnly
1123
+ }
1124
+ if (obj.hasOwnProperty('disabled')) {
1125
+ this.disabled = obj?.disabled
1126
+ }
1113
1127
  }
1114
1128
  } else {
1115
1129
  this.show = true