其他分享
首页 > 其他分享> > uview懒加载

uview懒加载

作者:互联网

	<view class="">
			<view class="p">
				<u-lazy-load class="pq" img-mode="scaleToFill" :image="image" height="300" :loading-img="loadingImg"></u-lazy-load>
			</view>
			<view class="p">
				<u-lazy-load class="pq" img-mode="scaleToFill" :image="image" height="300" :loading-img="loadingImg"></u-lazy-load>
			</view>
	</view>
<script>
	export default {
		data() {
			return {
				image: "https://gtd.alicdn.com/sns_logo/i1/TB124_3NXXXXXasXVXXSutbFXXX.jpg_240x240xz.jpg",
				loadingImg: "https://cdn.uviewui.com/uview/resources/456481858555415.png"
			}
		}
	}
</script>
<style lang="less">
	.pq{
		float: left;
		width: 300rpx;
		height: 300rpx;
	}
</style>

标签:300rpx,TB124,uview,jpg,https,com,加载
来源: https://blog.csdn.net/yhd1998/article/details/121742132