![](https://img-blog.csdnimg.cn/20201014180756922.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
vant
不靠谱的作曲家
这个作者很懒,什么都没留下…
展开
-
vant-ui使用picker选择器渲染自定义数组
官方文档中提供的渲染数组案例是以下这种形式。如果想渲染这种格式需要怎么解决?增加value-key参数。原创 2023-05-18 14:35:10 · 462 阅读 · 0 评论 -
小程序中使用vant组件
步骤一npm i vant-weapp -S --production步骤二打开微信小程序 > 工具 > 构建npm出现以下提示表示构建成功,这时项目根目录中出现 miniprogram_npm,这是第三方库步骤三打开小程序对应页面中的xx.json,引入相对应的组件路径{"usingComponents":{ "van-button":"/miniprogram_npm/vant-weapp/button/index" }}在对应的wxml中引入相关组件原创 2020-11-19 11:21:41 · 312 阅读 · 1 评论 -
vant vue单张图片上传
上传组件 <template #input> <van-uploader accept="file" :max-count="1" v-model="photo" :after-read="afterPhoto" /> </template>datadata() { return { photo: [], }},事件绑定,组装成file文件 afterPhoto(file) { const tempFile = file.file原创 2020-11-19 10:58:17 · 795 阅读 · 0 评论