UNPKG
mac-vue-map
Version:
latest (1.0.2)
1.0.2
1.0.1
Baidu Map Component for Vue 2.0
github.com/Dafrok/vue-baidu-map
Dafrok/vue-baidu-map
mac-vue-map
/
test
/
util
/
util.js
13 lines
(11 loc)
•
305 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
import
Vue
from
'vue'
// import BaiduMap from '@/index.js'
export
const
createApp
= (
{template =
`<baidu-map></baidu-map>`
, methods = {}}
) => {
const
$root =
document
.
createElement
(
'div'
)
document
.
body
.
appendChild
($root)
return
new
Vue
({
el
: $root, template, methods }) }