|
|
@ -1,6 +1,6 @@ |
|
|
|
<template> |
|
|
|
<view class="" style="background-color: #fff;"> |
|
|
|
<uni-collapse ref="collapse1" @change=""> |
|
|
|
<uni-collapse ref="collapse1" > |
|
|
|
<uni-collapse-item :open="true"> |
|
|
|
<template v-slot:title> |
|
|
|
<uni-swipe-action ref="swipeAction"> |
|
|
@ -88,13 +88,17 @@ |
|
|
|
dataContent: { |
|
|
|
handler(newName, oldName) { |
|
|
|
if (this.dataContent.subList.length > 0) { |
|
|
|
if (this.$refs.collapse1 != undefined && this.$refs.collapse1 != null) { |
|
|
|
this.$nextTick(res => { |
|
|
|
this.$refs.collapse1.resize() |
|
|
|
}) |
|
|
|
} |
|
|
|
this.$nextTick(res => { |
|
|
|
setTimeout(() => { |
|
|
|
if (this.$refs.collapse1) { |
|
|
|
this.$refs.collapse1.resize(); |
|
|
|
} |
|
|
|
}, 500) |
|
|
|
}) |
|
|
|
} |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
immediate: true, |
|
|
|
deep: true |
|
|
|
} |
|
|
|