uniapp代码
<share-element key="type" :duration="300" :transform="transformIdx === i">
<view class="service-item-box">
<image v-for="(m, k) in n.list" :key="k" src="/static/image/ls/fenlei.jpg" />
</view>
</share-element>
编译后的wxml代码
<share-element vue-id="{{''+i}}" duration="{{300}}" transform="{{transformIdx===i}}" bind:__l="__l"
vue-slots="{{['default']}}">
<view class="service-item-box">
<block wx:for="{{n.list}}" wx:for-item="m" wx:for-index="k" wx:key="k">
<image src="/static/image/ls/fenlei.jpg"></image>
</block>
</view>
</share-element>
曾小晨
还没好吗,一年了
2022-07-11 15:25
DCloud_UNI_GSQ
回复 7***@qq.com: 目前 Vue2 可以采用的方案
:key.props
2022-07-18 17:30