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

通用组件需要接受外界发来的数据 #29

Closed
tongshuangwu opened this issue Jan 29, 2020 · 3 comments
Closed

通用组件需要接受外界发来的数据 #29

tongshuangwu opened this issue Jan 29, 2020 · 3 comments
Assignees
Labels
enhancement New feature or request general-map

Comments

@tongshuangwu
Copy link
Collaborator

@shadowings-zy 朋友现在的组件是直接拿到mockup数据的,作为通用组件我们得给外面留个接口?
参照之前的数据设计讨论 #3 以及 @Ritaotao 创建的带地理数据的mockup #5

@shadowings-zy
Copy link
Collaborator

这个好说,我的BaiduMap.tsx已经留出了所有的配置参数,InformationMap.tsx只是做了一个取mock数据的操作。
如果现在mock数据已有,我就可以针对现有mock数据在InformationMap.tsx上再做一层封装。
这个我来弄吧。

@tongshuangwu
Copy link
Collaborator Author

蟹蟹!

@tongshuangwu tongshuangwu moved this from To do to In progress in Map Visualization Jan 30, 2020
@tongshuangwu
Copy link
Collaborator Author

其实我仍然没有懂这个map的api lol
这个object有点笼统,最好能展开写一下,就把现在mock数据的格式接入就可以:

interface InformationMapProps {
  options: Object
}

@yarray 如果对数据格式有想法的话也可以提~
或者明天我来改一下也可以~

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request general-map
Projects
Development

No branches or pull requests

2 participants