mpvue自定义组不支持循环,且slot中的作用域不对,目前该如何实现呢?
来源:5-2 腾讯云后台代码介绍
香饽饽0
2018-06-28
<div v-for="index of 3" :key="index">
<swipe-out :checkedArr="checkedArr">
<div class="selected_product" @click="toggleChecked">
<div class="customCheck" @click.stop="handleClick(0)">
<img class="checkStyle" v-if="checkedArr[0]" src="/static/img/checked.png" mode="aspectFit">
<img class="checkStyle" v-if="!checkedArr[0]" src="/static/img/unchecked.png" mode="aspectFit">
</div>
<img class="product_img" src="/static/temp/swiper1.png" mode="aspectFill" />
<div class="text_right">
<div class="product_name">休闲复古家具</div>
<div class="sku">蓝色 胡桃木</div>
<div class="count_price">
<div class="price">2000</div>
<step-input></step-input>
</div>
</div>
</div>
</swipe-out>
<split></split>
</div>
1回答
-
mpvue现在支持slot了 但是部支持scoped
012018-07-02
相似问题