-
Notifications
You must be signed in to change notification settings - Fork 185
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
【意见收集】欢迎你对vue-slider 提出自己的建议及问题 #1
Comments
无法npm到项目里面 |
首先谢谢,嗯,同意放到npm,写东西的时候,这个作为一个插件,肯定不放到代码库上,不在npm上,每次clone代码还需要自己拷一份这个 |
谢谢你提的意见,最近找工作比较忙,下个版本会放到npm上 |
vue2.0? |
@bulolo it is based on vue 1.0 |
在android手机图片轮播,为啥布局会出现混乱。。。。求教 |
@LeiWang12 嗯,最好有图片说明下,混乱的情况是什么 |
@Foreverww 你说的是img插入图片吗,目前实现的方法是style属性background |
怎么没有package.json文件呢,没法通过npm install 安装依赖包 |
我是新人,请问一下demo是写在app.vue里,然后引入slider组件就可以了吗? |
@kukujbb 是的,文档的结构请看 https://github.com/warpcgd/vue-slider/tree/gh-pages |
嗨,这个只支持图片么。会支持组件么,需要做成类似tab间的切换 |
@MurWhite 嗨,slider初衷只是想建立一个简单的幻灯片,tab切换可以在这基础上二次开发,晚些提供案例 |
新年好!今天发现一个问题,我在项目里使用了这个组件(横向滑动的),高度设置的比较大,在移动端浏览时发现,组件阻止了触摸事件的默认行为,只能左右滑动,导致我无法通过触摸纵向滑动这个页面,造成不方便。这个问题该如何解决呢,如何保证水平滑动时触发Slider左右滑动,而纵向滑动时,触发浏览器默认的页面滚动? |
@mengchen129 你好,我在组件里写了注释,将调用阻止全屏滚动的方法注释掉即可 |
能插入 dom 或 vue component 吗? 我看文档好像只有 style |
@zhangjun 暂时只有文本插入,dom我稍后加上去 |
挺实用的插件,然而现在还没有在npm发布,只能拷贝代码使用,想npm install via git也不合适,因为项目名称是my-project。。。。发布一下也就1分钟的事~,LZ快去发布了吧,用户量肯定上来 |
@chairuosen 谢谢你的建议,今天我添加到npm上 |
@warpcgd 正好今天看到了这个插件 正好回复时间是 5 hours ago |
如何给每张图片加一个链接,点击即可进入相应界面啊 |
@tangziqing 比如: <template lang="pug">
.page.p-home
.banenr
slider(:pages='pages', :sliderinit='sliderinit'
@click.native='myalert'
@slide='onSliderChange'
)
</template>
<script>
import slider from 'vue-concise-slider'
export default {
data() {
return {
sliderAt: 0,
pages: [
{title: '红', style: {backgroundColor: '#FF0000'}},
{title: '蓝', style: {backgroundColor: '#0000FF'}},
{title: '绿色', style: {backgroundColor: '#00FF00'}}
],
sliderinit: {
...
}
}
},
methods: {
onSliderChange(pagenum) {
this.sliderAt = pagenum
},
myalert() {
console.log('Click on ' + this.sliderAt)
}
},
components: {
slider
}
}
</script> |
@Riant 谢谢提供的思路,有个问题,click能在移动端适用吗? |
您好,这个插件很好用,就是slider-pagination-bullet不能自定义样式,以及当active的时候的样式,希望能加入这个自定义样式的功能,因为遇到用白色的背景图,然后active的时候完全看不到了。希望能加入这一功能 |
@kang558 分页的小点是css控制的样式,可以直接另写覆盖,稍后我添加自定义的样式名进去吧 |
@warpcgd 当然是可以用的,不过部分 Android 和 iOS 会有300ms的延迟,建议配合 fastclick 使用 |
在移动端点击不了, pc端是可以的 .. emmm |
@MrRiven 我估计应该是开启了移动调试,使用tap去测试click吧, |
好. 辛苦楼主 |
@MrRiven 更新v3.2.0版本解决之前提到的问题 |
Uncaught TypeError: Cannot read property 'offsetLeft' of undefined 报这个错误是什么意思呢 |
@Mrangmaomao 使用场景是什么,可以开一个issue贴一下 |
请问分页页标可以自定义吗?比如 1、2、3、4类似页码那种 |
Hi, Good job! |
@leandroramirez Thank you for your suggestion, I will add it as soon as possible. |
SSR 有计划吗 |
怎么加载网络图片,demo里也没有 |
@gqf1995 网络图片,直接把demo里面的图片地址改成网络的就好了 |
请问3.4.1版本,不支持解析html标签的嘛?demo里面的 |
@zengjm 已经不支持v-html指令,现在直接使用slot即可 |
支不支持 SSR ? |
@iizhangchao 暂不支持,可以看下issue里面讨论的 |
你好,我有看过issue讨论,并且在我的项目中也是按照那位同学的使用方法去使用,但是会报 The client-side rendered virtual DOM tree is not matching server-rendered content. This is likely caused by incorrect HTML markup, for example nesting block-level elements inside , or missing . Bailing hydration and performing full client-side render. |
稍后我做个demo |
您好,请问swiperitem的内容如何设置滚动;我注意到在 |
当轮播数组是三条时,然后动态变成两条,就会出现offsetLeft' of undefined,通过监听slide,发现还是会但会第三项数据 |
Hi, great job on this project. There is something missing that would be great if it was added. An event when the user starts sliding and when sliding ends (i.e. when the user starts dragging the slider item and when the user stops sliding the it goes to the other slider item). Any thoughts? |
设置自动播放时,能同时设置播放方向吗?比如在水平滚动下,大部分地区的习惯是往左滑动播放,但在阿拉伯地区是相反的,习惯往右滑动播放。 |
目前还不支持 |
有计划支持吗? |
暂时没有,可以fork一下仓库改造下 |
@tap是点击事件吗?为什么点击轮播时候 slide函数会走两遍,还有初始化时候移动轮播图卡片会导致样式变更 |
原意是不是想要绑定这俩事件,写成了移除了 |
我怎么感觉这个左右滑动的时候,不顺畅,感觉有卡顿,或者是左右滑动的距离设置有问题,麻烦查看一下,谢谢 |
在这里可以提出你的建议,帮助改进组件
The text was updated successfully, but these errors were encountered: