hilongjw / vue-slide Goto Github PK
View Code? Open in Web Editor NEWA lightweight slide component for vue
Home Page: http://hilongjw.github.io/vue-slide/demo.html
A lightweight slide component for vue
Home Page: http://hilongjw.github.io/vue-slide/demo.html
andorid ,苹果 都有这样的问题,点击图片内 ,突然就跳页了
--**我看现在父子组件都是通过broadcast和dispatch来传播的,vue2.0里面好像不建议这样做了,有迁移的计划吗?
"vue-slide": "^1.1.1"
node: 6.9.1
npm: 4.0.5
yarn: 0.19.1
Following message apeared
Module not found: Error: Can't resolve 'vue-slide' in...
Because main file has set to vue-slide.es5.vue
in package.json, which does not exists.
{
...
"main": "vue-slide.es5.vue"
...
}
这个是什么语法
,编译一直通不过。
thing like swipe.autoplay
option it's present in the code, https://github.com/hilongjw/vue-slide/blob/master/vue-slide.vue#L106 but not in the documentation example
import rdSwipe from 'vue-slide'的时候会报错,你这依赖包里根本没有index,js没有export啊
Uncaught TypeError: Cannot set property 'active' of undefined vue-slide.vue:234
异步数据报active 错误!
styleCompute (obj) {
let opacityValue = 0
if( (obj.origin + obj.current) == 0) opacityValue = 1
obj.style = {
'transform' : `translateX(${obj.origin + obj.current}%)`
}
}
这里改成
styleCompute (obj) {
let opacityValue = 0
if( (obj.origin + obj.current) == 0) opacityValue = 1
obj.style.transform = `translateX(${obj.origin + obj.current}%)`
}
就显示正常了
when import rdSwipe from 'vue-slide'
, I'm told like this:
This dependency was not found:
To install it, you can run: npm install --save vue-slide
[1] 6360 segmentation fault npm run dev
在vue文件中引入vue-slide插件,会报错 not found Module ; 查看pageage.json 文件的main字段是,指向vue-slide.es5.vue 这个文件,发现包里面没有这个文件,修改为vue-slide.vue 就好了
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.