component-map-web
Version:
web端电子地图组件-基于leaflet实现的2D地图效果
18 lines (16 loc) • 352 B
JavaScript
import mapBasic from "./map-basic"
import mapTool from "./map-tool"
const components = {
mapBasic,
mapTool,
}
const install = function (Vue) {
if (install.installed) return
Object.keys(components).forEach((key) => {
Vue.component(components[key].name, components[key])
})
}
const API = {
install,
}
export default API