vant
HarryHY
从入门到放弃
展开
-
vue2.0——vue-cropper结合element、vant
由于是内网限制了复制的功能 所以只能是图片了 vue-cropper配置——element vue-cropper页面——element vue-cropper页面绑定——element vue-cropper上传的两个函数——element elementUI上传部分——element vue-cropper结合vant vue-cropper——vant上传功能 vant图片上传 vue-cropper裁剪页面——vant vue-cropper配置data(option)——v原创 2021-11-01 09:36:32 · 457 阅读 · 0 评论 -
VUE中按需加载vantUI库
安装vant npm i vant -S 安装按需加载模块 npm i babel-plugin-import -D 在.babelrc中配置 "plugins": [ "transform-vue-jsx", "transform-runtime", ["import",{"libraryName":"vant","style":true}] ] 在babel...原创 2019-08-30 15:15:14 · 545 阅读 · 0 评论 -
vant中的swipe
我是在Vue中使用的vant 会做一点点小改动 <van-swipe @change="onChange" ref="swiper"> <van-swipe-item v-for="(item,index,key) in List" :key="index"> </van-swipe-item> </van-swipe> 通过onChang...原创 2019-11-21 09:07:38 · 7814 阅读 · 0 评论 -
vant中的toast轻提示
在main.js中按需引入 import { Toast } from 'vant Vue.use(Toast) 页面中的methods中使用 send(name, img) { let msg = `${this.Cname}送${name}1`; this.$toast({ message: msg, icon: img ...原创 2019-09-30 13:24:52 · 8530 阅读 · 0 评论