Name Last Update
..
README.md Loading commit data...
cascading-address.js Loading commit data...
check.js Loading commit data...
dialog.js Loading commit data...
share.js Loading commit data...
slider.js Loading commit data...
tips.js Loading commit data...
upload.js Loading commit data...

组件使用手册

  1. 地址选择组件

    全局安装json-server模拟服务端返回数据

    npm i -g json-server

    启动

    json-server --watch mock/address.json

    API使用:

    var address = cascadingAddress({el: '#address'});

    获取选择地址文本:

    address.getAreaLabels()

    获取选择地址areaId:

     address.getAreaIds()

    设置地址:

    address.setAddress({
        province: '32', // 省
        city: '3201',   // 市
        dist: '320102'  // 区县
    });
    
    或者
    
    address.setAddress("320102");

    重置地址:

    address.reset();

    开发者: 董金虎