rc-bmap
Version:
<p align="center"> <img src="https://bmap.jser-club.com/home.png" width="200px"> </p> <p align="center">基于 React 的百度地图组件</p>
18 lines (14 loc) • 390 B
JavaScript
import React from 'react';
import { CityList as BCityList } from '../../core';
import BaseControl from './BaseControl';
class CityList extends BaseControl {
getRealControl = () => new BCityList(this.config, this.mapInstance)
render() {
const { children } = this.props;
if (children) {
return <div>{children}</div>;
}
return null;
}
}
export default CityList;