Vue第三方插件
1.滚动条 vuescroll
- 引入插件
- 初始化并传入默认配置
Vue.use(vuescroll,{
ops: {
vuescroll: {
},
scrollPanel: {},
rail: {
size: '4px',//滚动条容器宽度
},
bar: {
background:"rgba(120,120,120,0.4)",
size: '4px',//滚动条宽度
}
} // 在这里设置全局默认配置
})
- 使用
内容
2.httpVueLoader
- 引入插件
- 模版编写
Hello {{who}}
- 使用httpVueLoader注册组件
components:{
ep-test': httpVueLoader('/assets/test.vue?time='+new Date().getTime()),//高度100%的容器组件
},