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

官方area-data版本太低,怎么更新最新版的? #67

Open
LWD8 opened this issue Jul 17, 2019 · 4 comments
Open

官方area-data版本太低,怎么更新最新版的? #67

LWD8 opened this issue Jul 17, 2019 · 4 comments

Comments

@LWD8
Copy link

LWD8 commented Jul 17, 2019

image

官方的area-data是1.0的2016年的

现在已经更新到area-data5.0了,应该如何更新?

@LWD8
Copy link
Author

LWD8 commented Jul 17, 2019

image

查看了下area-puppeteer抓取的数据已经是分2个包了,而且没有了街道的数据

@zfn215
Copy link

zfn215 commented Dec 24, 2019

同求 解决了吗?

@xinguanhua
Copy link

如果项目也在使用iview,那建议直接把源码搞到项目中,因为iview-area会搞一套自己的iview,使得项目代码非常大。

把源码搞到本地后,具体来说,需要lib文件夹和index.js
首先执行 npm install area-data -S
然后修改 lib/components/al-cascader.vue文件或者 select文件
改为引用
import areaData from 'area-data/pcaa';

修改完代码,在main.js
import iviewArea from '本地目录' --> 即 index.js 那个目录,会自动读取index.js 中的install 方法,完成全局注册
Vue.use(iviewArea)
来完成组件注册

@RickyHeaven
Copy link

使用我改良的ar-cascader,最新的数据,更小的工程文件,支持GZip,支持点击即选中chang-on-select

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

4 participants