Skip to content

Commit

Permalink
feat: publish 0.0.7 release
Browse files Browse the repository at this point in the history
  • Loading branch information
yue1123 committed Sep 11, 2022
1 parent 7f43ea9 commit 3b78c48
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 31 deletions.
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "vue3-baidu-map-gl",
"version": "0.0.6",
"version": "0.0.7",
"main": "./dist/index.js",
"typings": "./lib/index.d.ts",
"exports": {
Expand Down Expand Up @@ -44,8 +44,8 @@
},
"packageManager": "pnpm",
"engines": {
"pnpm": "<=7.0.0",
"node": ">=12.0.0"
"pnpm": ">=7.0.0",
"node": ">=16.0.0"
},
"keywords": [
"vue3",
Expand Down
29 changes: 14 additions & 15 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

28 changes: 15 additions & 13 deletions src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
:enable-keyboard="false"
:zoom="zoom"
enableDragging
:center="position"
:minZoom="10"
>
<Control style="display: flex; background-color: #f90; padding: 10px" :offset="{ x: 0, y: 0 }">
Expand All @@ -20,7 +21,7 @@
icon="../docs/.vuepress/public/logo.png"
dragging
/> -->
<Marker :icon="markerIcon" :position="position" :rotation="180"/>
<!-- <Marker :icon="markerIcon" :position="position" :rotation="180"/> -->
<Label
content="123123"
:position="{
Expand Down Expand Up @@ -87,6 +88,7 @@
{ lng: 116.405, lat: 39.92 },
{ lng: 116.423493, lat: 39.907445 }
])
console.log(show);
// setTimeout(() => {
// show.value = false
// console.log('yingcang');
Expand All @@ -111,18 +113,18 @@
let index = 0
const icon = ['simple_blue', 'simple_red', 'loc_red']
const markerIcon = ref(icon[index])
setInterval(() => {
console.log('gaib')
if (index < 2) {
index++
} else {
index = 0
}
// markerIcon.value = icon[index]
// key.value = Math.random() * 0.01
// polylinePath.value.push({ lng: 116.423493, lat: 39.907445 + key.value })
position.value.lng += 0.0001
}, 1000)
// setInterval(() => {
// console.log('gaib')
// if (index < 2) {
// index++
// } else {
// index = 0
// }
// // markerIcon.value = icon[index]
// // key.value = Math.random() * 0.01
// // polylinePath.value.push({ lng: 116.423493, lat: 39.907445 + key.value })
// position.value.lng += 0.0001
// }, 1000)
;(window as any).toggle = cal
</script>
<style>
Expand Down

0 comments on commit 3b78c48

Please sign in to comment.