Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

直辖市数据格式有点问题 #3

Open
netqyq opened this issue Nov 5, 2017 · 1 comment
Open

直辖市数据格式有点问题 #3

netqyq opened this issue Nov 5, 2017 · 1 comment

Comments

@netqyq
Copy link

netqyq commented Nov 5, 2017

4个直辖市的区上应该多加一级。港澳台也是2级数据。
现在的情况,如果选择北京东城区,现在返回如下

{
  "province": "北京",
  "city": "东城区",
  "area": ""
}

好点的格式例如: 北京市--> 北京城区 --> [ "东城区", "西城区"... ]
参考了amap的格式。

@savokiss
Copy link
Owner

savokiss commented Nov 8, 2017

嗯,确实你说的那种比较好,现在数据源都是在 src/cascadingAddressData.json 中,你可以直接修改里面的数据源。fork也好,直接把组件拿去用也是ok的~

有时间我考虑下嗯~

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants