k186 / pd-select Goto Github PK
View Code? Open in Web Editor NEWvue components ,like ios 3D picker style,vue 3d 选择器组件,3D滚轮
Home Page: https://k186.github.io/pd-select/
License: Apache License 2.0
vue components ,like ios 3D picker style,vue 3d 选择器组件,3D滚轮
Home Page: https://k186.github.io/pd-select/
License: Apache License 2.0
大佬,刚才用了你的2.0版本,发现在触摸拨动时,拨动时有时会拨不动,取值有问题,有时候会突然跳回之前拨动的值位置。
我在点击按钮之后重新对绑定的值赋值,接着执行init()方法,希望能够将对应的值显示为选中效果
<pd-select-item ref="year" :listData="YearArr" v-model="year" type="cycle">
this.year = this.getDateYear(date) + '年';
this.$refs.year.init()
结果每次执行之后都会发现位置出错,@k186 希望能够解答一下
应该改成 "main": "src/components/pdSelect/index.js"
mounted() { // 事件綁定 this.$el.addEventLister('touchstart',this.itemTouchStart) this.$el.addEventLister('touchmove',this.itemTouchMove) this.$el.addEventLister('touchend',this.itemTouchEnd)
这样写好像是不对的,获取不到dom,导致addEventLister undefined
log了一下$el、el、this.$el都undefined
当前初始值不存在,请检查后listData范围!!
这个报错能改进吗
初始化值总是出现找不到该值
pd-select-item 组件 v-model的值改变时,页面上的选中项仍旧没变
调用组件时,浏览器报Maximum call stack size exceeded。
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.