UNPKG
vue-offline-baidu-map
Version:
latest (0.1.3)
0.1.3
0.1.2
0.1.1
0.1.0
Baidu Map Component for Vue 2.0
vue-offline-baidu-map
/
test
/
util
/
util.js
13 lines
(11 loc)
•
293 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 }) }