Comments (3)
city-picker的回调是通过事件派发来完成的
当控制值发生变化时,会trigger事件cp:updated
你只需要监听cp:updated事件并作出相应处理即可
from city-picker.
close和open的事件回调没写进去,因为我没想明白什么场景会需要用到这样的回调
from city-picker.
@tshi0912 比如说点击某个市后需要ajax 去加载一些数据,这种场景还是比较多的吧;
from city-picker.
Related Issues (20)
- 不是demo吧。
- 能否添加一个resize()方法!或是setwidth()方法
- 当input city-picker在<section/>内的时候单击选中无效 HOT 1
- 怎么添加change event HOT 3
- 怎么清空选择的城市 HOT 1
- 能否增加热门城市标签页
- cp:updated 使用方法
- vue项目中报错的问题
- react中通过npm安装后,一直不能找到module
- IOS下问题
- $(...).citypicker is not a function HOT 1
- 行政区划少了**省
- 大佬你好,省市区json麻烦更新下谢谢 HOT 1
- 操作界面很不错,赞一个,就是数据有些问题 HOT 1
- 地区数据同步微信小程序
- 怎么获取选中的文本? 比如选中浙江省宁波市 我怎么得到“浙江省宁波市”? HOT 1
- 这个项目以前是有四级联动的吧 HOT 2
- 缺少设置 值的解决方法 添加多 setValue方法
- 城市怎么多选
- 数据太老了,作者也不维护
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from city-picker.