sadais-piui 1.2.7-beta37 → 1.2.7-beta38
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.
|
@@ -68,7 +68,7 @@
|
|
|
68
68
|
</slot>
|
|
69
69
|
</view>
|
|
70
70
|
<pi-icon v-if="selectedIds.includes(item[keyField])" name="blod-check" />
|
|
71
|
-
<pi-icon v-if="item
|
|
71
|
+
<pi-icon v-if="item[childrenField] && item[childrenField].length > 0" name="right" />
|
|
72
72
|
</view>
|
|
73
73
|
</scroll-view>
|
|
74
74
|
</scroll-view>
|
|
@@ -345,12 +345,16 @@ export default {
|
|
|
345
345
|
this.$nextTick(this.syncScrollLeft)
|
|
346
346
|
return
|
|
347
347
|
}
|
|
348
|
-
if (
|
|
348
|
+
if (
|
|
349
|
+
item &&
|
|
350
|
+
item[this.childrenField]?.length &&
|
|
351
|
+
this.currentItem[this.keyField] !== item[this.keyField]
|
|
352
|
+
) {
|
|
349
353
|
this.currentItem = item
|
|
350
354
|
this.$nextTick(this.syncScrollLeft)
|
|
351
355
|
return
|
|
352
356
|
}
|
|
353
|
-
if (item?.
|
|
357
|
+
if (item && item[this.childrenField]?.length === 0) {
|
|
354
358
|
// 点击的是叶子节点
|
|
355
359
|
if (this.selectedIds.includes(item[this.keyField])) {
|
|
356
360
|
this.handleRemoveItem(item[this.keyField])
|