vantUI组件:van-card 自定义内容 - 踩坑篇

vantUI组件:van-card 自定义内容 - 踩坑篇


特别说明:

自定义用法,格式必须:

<van-card>
	<template #tags> 
		····自定义内容·· 
	</template>
</van-card>

必须在它的标签中间位置自定义代码。


自定义内容

 <section>
   <van-card class="s-card">
     <template #tags>
       <van-image
         round
         width="65px"
         height="65px"
         fit="cover"
         lazy-load
         src="https://img.yzcdn.cn/vant/cat.jpeg"
         alt="缺省图"
       />
       <p>秋天的风 </p>
       <p>180****2258</p>
     </template>
   </van-card>
 </section>

以上就是关于“vantUI组件:van-card 自定义内容 - 踩坑篇” 的全部内容。

猜你喜欢

转载自blog.csdn.net/qq_35393869/article/details/106407350