lw-cdp-ui 1.3.23 → 1.3.25

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.
@@ -35,6 +35,7 @@
35
35
  :size="config?.size || 'default'"
36
36
  element-loading-text="Loading...">
37
37
  <div class="lw-form-mini-card"
38
+ :class="{ hide: !isAllHide(card) }"
38
39
  v-for="(card, index) in formItems">
39
40
  <el-row v-show="activeIndex == index || blackType === 'card'"
40
41
  :gutter="15">
@@ -386,6 +387,10 @@ export default {
386
387
  this.scrollObserver.disconnect()
387
388
  }
388
389
  this.scrollObserver = observer
390
+ },
391
+ // 是否全隐藏
392
+ isAllHide(card) {
393
+ return card.some(item => !this.hideHandle(item) && !(this.blackType == 'tabs' && item.component == 'divider'))
389
394
  }
390
395
  }
391
396
  }
@@ -414,4 +419,7 @@ export default {
414
419
  display: none !important;
415
420
  }
416
421
  }
422
+ .hide {
423
+ display: none;
424
+ }
417
425
  </style>
@@ -262,8 +262,9 @@ export default {
262
262
  setTimeout(() => {
263
263
  this.isLock = false
264
264
  }, 1000)
265
- this.$emit('update:modelValue', this.defaultValue)
266
- this.$emit('change', this.defaultValue)
265
+ let value = this.multiple ? this.defaultValue : { ...this.modelValue, ...this.defaultValue }
266
+ this.$emit('update:modelValue', value)
267
+ this.$emit('change', value)
267
268
  },
268
269
  // 初始化回显
269
270
  initValue(val = this.modelValue) {