alanchenchen / cascadingpicker Goto Github PK
View Code? Open in Web Editor NEW基于vue2的三级联动选择器,支持自定义数据,默认提供地址三级联动数据
License: MIT License
基于vue2的三级联动选择器,支持自定义数据,默认提供地址三级联动数据
License: MIT License
你好,Alan Chen,我使用了你的基于vue的address-picker库,遇到了问题,我是新手vue入门,在复制你的代码移植到项目的组件中使用,发现滑动事件失效了,请问怎么排查?
环境是vue2
除了列表首个item能显示之外,其他都是空白的。希望能得到帮助。
<template>
<div id="test">
<address-picker :addressShow="addressShow" @ok="mapInfo" @cancel="addressShow=false"></address-picker>
</div>
</template>
<script>
import addressPicker from './address-picker.vue'
import mapInfo from './address-data'
export default {
components:{addressPicker },
name:'test',
data(){
return{
mapInfo:mapInfo,
addressShow:true
}
}
}
</script>
<style>
</style>
将代码用到demo中,发现touchMove事件会引发多出来的Y方向距离滑动,如图,选中地址往上滑动后,地址列表向上移动了一段距离,一瞬间就看不到原来选择的辽宁省,这个如何解决呢?重现de'mo链接
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.