三级地址联动,支持(app)nvue、小程序、H5 - 更新日志
1.0.4(2020-04-20)
重要
插件扩展名由原来的simple-address.nvue
改成 simple-address.vue
升级后 不影响在nvue中使用,如果是nvue中使用 引入方式和vue一样。
插件支持vue doc,写代码时可提示,在其它文件,使用组件的时候,弹出代码提示。
,具体vue doc好处可参考:https://ask.dcloud.net.cn/article/35814
优化
1.新增 btnFontSize、fontSize、cancelColor、confirmColor参数。
2. 上个版本新增了 queryIndex
方法
1.0.3(2020-04-01)
修复 queryIndex
返回数据错误BUG
1.0.2(2020-03-17)
新增queryIndex
自定义信息获取指定数据的索引。
1.根据label
获取对应的index
var index = this.$refs.simpleAddress.queryIndex(['湖北省', '随州市', '曾都区'], 'label');
console.log(index);
this.cityPickerValueDefault = index.index;
this.$refs.simpleAddress.open();
2.根据value
获取对应的index
var index = this.$refs.simpleAddress.queryIndex([13, 1302, 130203], 'value');
console.log(index);
this.cityPickerValueDefault = index.index;
this.$refs.simpleAddress.open();
1.0.1(2019-12-11)
修复HX2.4.6.20191210
报错
1.0.0(2019-12-10)
发布第一版,目前已测试支持 app、微信小程序、H5