本文整理一些自己比较常用的UI库和插件
一.vue相关的UI库
自己比较常用的ui库,后台系统还有vue-element-admin,后台效果请看
https://panjiachen.gitee.io/vue-element-admin/#/dashboard
https://panjiachen.github.io/vue-admin-template/#/dashboard
这是移动端的一个ui库,还不错,滴滴出品
暂时就介绍这两个,若满足不了需求可以再查看其它的ui库:https://www.jianshu.com/p/0a3efa80e322
二.vue相关的插件
注:对于一些基本的插件这里不列举,比如css相关的预处理器less/sass/stylus,数据请求的axios等
1.fastclick
解决移动端点击事件300ms延迟问题
GitHub:https://github.com/ftlabs/fastclick
demo:
import fastClick from 'fastclick'
fastClick.attach(document.body)
2.better-scroll
滚动处理插件,主要是处理移动端滚动,现在也支持pc端
GitHub:https://github.com/ustbhuangyi/better-scroll
文档:
1.X https://ustbhuangyi.github.io/better-scroll/#/zh
2.X https://better-scroll.github.io/docs/zh-CN/
demo:
import BScroll from 'better-scroll'
let scroll = new BScroll('.wrapper')
3.vue-awesome-swiper
基于swiper的轮播组件
GitHub:https://github.com/surmon-china/vue-awesome-swiper
4.vue-lazyload
图片懒加载
GitHub:https://github.com/hilongjw/vue-lazyload
5.vue-video-player
基于video.js的视频播放插件
GitHub:https://github.com/surmon-china/vue-video-player
6.jsonp
处理jsonp相关的请求
GitHub:https://github.com/webmodules/jsonp
7.create-keyframe-animation
js操作css3动画
GitHub:https://github.com/HenrikJoreteg/create-keyframe-animation
// ...