浏览器里正常显示。APP上报错 Uncaught TypeError: Cannot read property 'height' of null at components/uni-collapse-item/uni-collapse-item.vue:125
uni-collapse-item里修改14L
<view class="uni-collapse-cellcontent" :class="animation==='outer' ? 'uni-collapse-cell--animation' : ''" :style="{height:isOpen==='true' || isOpen=== true ? height + 'px' : '0px'}">修改为 <view class="uni-collapse-cellcontent" :class="animation==='outer' ? 'uni-collapse-cell--animation' : ''" :style="{height:isOpen==='true' || isOpen=== true ? 'auto' : '0px'}">
依然报错。求助
3***@qq.com (作者)
<view>
<view style="margin: 30upx;">
<uni-collapse accordion="true" v-for="(fpxx,index) in depts_fpxx" :key="index">
<uni-collapse-item :title="fpxx.deptname">
<view class="tickets-msg" style="padding: 20upx 30upx;">
<view>
名称:<text>{{fpxx.deptname}}</text>
</view>
<view>
税号:<text>{{fpxx.sh}}</text>
</view>
<button @click="copyToClip('名称:'+fpxx.deptname+' 税号:'+fpxx.sh)">复制</button>
</view>
</uni-collapse-item>
</uni-collapse>
</view>
</view>
2019-02-28 17:31
3***@qq.com (作者)
不使用for就正常了
2019-02-28 17:38