UNPKG

ngx-address

Version:

A simple address picker in angular.

37 lines (36 loc) 1.06 kB
import { Result } from './interfaces/result'; import { DataItem } from './interfaces/data-item'; import { Options } from './interfaces/options'; import 'rxjs/add/observable/forkJoin'; export declare class AddressService { private options; inited: boolean; opened: boolean; hd: any[]; bd: any[]; title: string; result: Result; max: number; constructor(); /** * 初始化数据 */ initData(options: Options): Options; /** * 设置选项卡选中状态 */ setHead(index: number): void; private findItem(index, id); private parseAddress(data); private putResult(bdIndex, id, item, isClear?); /** * 设置地址 * * @param {any} 字符串数组,数组数量必须与 {options.types.length} 一致 */ setAddress(data: any): void; onSelected(bdIndex: number, id: string, item: DataItem): void; private load(index, id, defaultValue?); private _renderData(index, res, defaultValue?); private jump(index); }