公告板
版本库
filestore
活动
搜索
登录
张晓旭
/
platform4cloud-pad
峰峰执法平台简易案件程序板块 pad端
概况
操作记录
提交次数
目录
文档
派生
对比
blame
|
历史
|
原始文档
'第一次提交'
yang
2022-10-17
4107256a8d1fa9a2db0969122bfc760994b12421
[~zhangxiaoxu/platform4cloud-pad.git]
/
src
/
components
/
vue-bai-map
/
components
/
base
/
util.js
1
2
3
4
5
6
import {createPoint} from './factory'
export const isPoint = obj => obj.lng && obj.lat
export const checkType = val => Object.prototype.toString.call(val).slice(8, -1)
export const getPosition = (BMap, point) => isPoint(point) ? createPoint(BMap, point) : point