ionic2-city-picker
Advanced tools
Comparing version 0.0.4 to 0.0.5
@@ -96,2 +96,3 @@ import { Component, EventEmitter, forwardRef, HostListener, Input, Optional, Output, ViewEncapsulation } from '@angular/core'; | ||
picker.ionChange.subscribe(function () { | ||
_this._pickerColumnCmps = picker && picker.instance && picker.instance._cols && picker.instance._cols.toArray(); | ||
_this.validate(picker); | ||
@@ -101,4 +102,2 @@ }); | ||
this._isOpen = true; | ||
this._pickerCmp = picker.instance; | ||
this._pickerColumnCmps = this._pickerCmp._cols.toArray(); | ||
picker.onDidDismiss(function () { | ||
@@ -105,0 +104,0 @@ _this._isOpen = false; |
{ | ||
"name": "ionic2-city-picker", | ||
"version": "0.0.4", | ||
"version": "0.0.5", | ||
"description": "ionic2 ", | ||
@@ -5,0 +5,0 @@ "main": "./dist/index.js", |
# ionic2-city-picker | ||
[![Dependency Status](https://david-dm.org/HsuanXyz/ionic2-city-picker.svg)](https://david-dm.org/HsuanXyz/ionic2-city-picker) | ||
[![NPM version][npm-image]][npm-url] [![Downloads][downloads-image]][downloads-url] [![MIT License][license-image]][license-url] | ||
ionic2 的省市区选择插件 | ||
@@ -8,3 +12,3 @@ 灵感(抄袭😄)来自于 | ||
![](https://github.com/HsuanXyz/hsuan.github.io/blob/master/assets/ionic2-city-picker/%E5%9C%B0%E5%8C%BA%E9%80%89%E6%8B%A9.gif?raw=true) | ||
![](https://github.com/HsuanXyz/hsuanxyz.github.io/blob/master/assets/ionic2-city-picker/%E5%9C%B0%E5%8C%BA%E9%80%89%E6%8B%A9.gif?raw=true) | ||
@@ -15,3 +19,3 @@ ## Install | ||
## Json 下载 | ||
https://raw.githubusercontent.com/HsuanXyz/hsuan.github.io/master/assets/ionic2-city-picker/city-data.json.zip | ||
https://raw.githubusercontent.com/HsuanXyz/hsuanxyz.github.io/master/assets/ionic2-city-picker/city-data.json.zip | ||
@@ -25,3 +29,3 @@ ## Use | ||
... | ||
import { CityPickerModule } from "ionic2-city-picker/dist/city-picker.module" | ||
import { CityPickerModule } from "ionic2-city-picker" | ||
@@ -164,1 +168,10 @@ @NgModule({ | ||
|ionChange | 城市选择器被改变时触发的事件 | | ||
[npm-url]: https://www.npmjs.com/package/ionic2-city-picker | ||
[npm-image]: https://img.shields.io/npm/v/ionic2-city-picker.svg | ||
[downloads-image]: https://img.shields.io/npm/dm/ionic2-city-picker.svg | ||
[downloads-url]: http://badge.fury.io/js/ionic2-city-picker | ||
[license-image]: http://img.shields.io/badge/license-MIT-blue.svg?style=flat | ||
[license-url]: LICENSE |
Sorry, the diff of this file is not supported yet
174
38334
18
502