diff --git a/docs/.vitepress/config.ts b/docs/.vitepress/config.ts
index 41d60109..fbda0f3e 100644
--- a/docs/.vitepress/config.ts
+++ b/docs/.vitepress/config.ts
@@ -4,71 +4,75 @@ import sidebarConfigZh from './sidebar.config.zh'
import { version } from '../../package.json'
export default defineConfig({
- lang: 'zh-CN',
- title: 'Vue3 BaiduMap GL',
- description: 'Vite & Vue powered static site generator.',
- lastUpdated: true,
- base: '/vue3-baidu-map-gl/',
- head: heads,
- themeConfig: {
- nav: [
- {
- text: '指南',
- link: '/zh/guide/'
- },
- {
- text: '相关链接',
- items: [
- {
- text: '百度拾取坐标系统',
- link: 'https://api.map.baidu.com/lbsapi/getpoint/index.html'
- },
- {
- text: '百度地图开放平台',
- link: 'https://lbsyun.baidu.com/index.php?title=%E9%A6%96%E9%A1%B5'
- },
- {
- text: '个性化地图编辑器',
- link: 'https://lbsyun.baidu.com/index.php?title=open/custom'
- },
- {
- text: '百度地图JSAPI WebGL v1.0类参考',
- link: 'https://mapopen-pub-jsapi.bj.bcebos.com/jsapi/reference/jsapi_webgl_1_0.html'
- }
- ]
- },
- {
- text: `v${version}`,
- items: [
- {
- text: '历史版本',
- link: 'https://github.com/yue1123/vue3-baidu-map-gl/releases'
- }
- ]
- }
- ],
- localeLinks: {
- text: '简体中文',
- items: [
- // { text: 'English', link: '/es' }
- ]
- },
- algolia: {
- appId: 'RT4OHPUGD1',
- apiKey: '76ba0d807534197fb89a2644c412240b',
- indexName: 'vue3-baidu-map-gl-zh'
- },
- footer: {
- message: 'Released under the MIT License.',
- copyright: 'Copyright © 2022-present dh and all contributors'
- },
- socialLinks: [{ icon: 'github', link: 'https://github.com/yue1123/vue3-baidu-map-gl' }],
- sidebar: sidebarConfigZh,
- editLink: {
- pattern: 'https://github.com/yue1123/vue3-baidu-map-gl/edit/main/docs/:path',
- text: 'Suggest changes to this page'
- }
- }
+ lang: 'zh-CN',
+ title: 'Vue3 BaiduMap GL',
+ description: 'Vite & Vue powered static site generator.',
+ lastUpdated: true,
+ base: '/vue3-baidu-map-gl/',
+ head: heads,
+ themeConfig: {
+ nav: [
+ {
+ text: '指南',
+ link: '/zh/guide/'
+ },
+ {
+ text: '相关链接',
+ items: [
+ {
+ text: '百度拾取坐标系统',
+ link: 'https://api.map.baidu.com/lbsapi/getpoint/index.html'
+ },
+ {
+ text: '百度地图开放平台',
+ link: 'https://lbsyun.baidu.com/index.php?title=%E9%A6%96%E9%A1%B5'
+ },
+ {
+ text: '个性化地图编辑器',
+ link: 'https://lbsyun.baidu.com/index.php?title=open/custom'
+ },
+ {
+ text: '百度地图JSAPI WebGL v1.0类参考',
+ link: 'https://mapopen-pub-jsapi.bj.bcebos.com/jsapi/reference/jsapi_webgl_1_0.html'
+ }
+ ]
+ },
+ {
+ text: `v${version}`,
+ items: [
+ {
+ text: '历史版本',
+ link: 'https://github.com/yue1123/vue3-baidu-map-gl/releases'
+ }
+ ]
+ },
+ {
+ text: '赞助',
+ link: '/sponsor/'
+ }
+ ],
+ localeLinks: {
+ text: '简体中文',
+ items: [
+ // { text: 'English', link: '/es' }
+ ]
+ },
+ algolia: {
+ appId: 'RT4OHPUGD1',
+ apiKey: '76ba0d807534197fb89a2644c412240b',
+ indexName: 'vue3-baidu-map-gl-zh'
+ },
+ footer: {
+ message: 'Released under the MIT License.',
+ copyright: 'Copyright © 2022-present dh and all contributors'
+ },
+ socialLinks: [{ icon: 'github', link: 'https://github.com/yue1123/vue3-baidu-map-gl' }],
+ sidebar: sidebarConfigZh,
+ editLink: {
+ pattern: 'https://github.com/yue1123/vue3-baidu-map-gl/edit/main/docs/:path',
+ text: 'Suggest changes to this page'
+ }
+ }
})
// // 主题和它的配置
diff --git a/docs/.vitepress/theme/index.ts b/docs/.vitepress/theme/index.ts
index 5de527b9..8ff3a6fa 100644
--- a/docs/.vitepress/theme/index.ts
+++ b/docs/.vitepress/theme/index.ts
@@ -1,11 +1,13 @@
import { watch } from 'vue'
-import DefaultTheme from 'vitepress/theme'
+import defaultTheme from 'vitepress/theme'
import baiduMapInit from '../../../packages/index'
import '../styles/main.css'
export default {
- ...DefaultTheme,
+ ...defaultTheme,
+ // FIXME: vitepress bug: default theme with user config
enhanceApp(ctx) {
+ defaultTheme.enhanceApp(ctx)
const { app, router } = ctx
if (process.env.NODE_ENV === 'production') {
if (typeof window !== 'undefined') {
diff --git a/docs/public/aliPay.jpg b/docs/public/aliPay.jpg
new file mode 100644
index 00000000..891cd06a
Binary files /dev/null and b/docs/public/aliPay.jpg differ
diff --git a/docs/public/weiCharPay.jpeg b/docs/public/weiCharPay.jpeg
new file mode 100644
index 00000000..1221fe55
Binary files /dev/null and b/docs/public/weiCharPay.jpeg differ
diff --git a/docs/sponsor/index.md b/docs/sponsor/index.md
new file mode 100644
index 00000000..74d64bca
--- /dev/null
+++ b/docs/sponsor/index.md
@@ -0,0 +1,36 @@
+# 成为 Vue3 BaiduMap GL 的赞助者 🙌
+
+
+
+Vue3 BaiduMap GL 是采用 MIT 许可的开源项目,使用完全免费。
+
+维护项目和开发新功能需要大量的时间和精力。如果您觉得该项目还不错,请不要吝啬您的大方,您的赞助就是支持作者持续更新,熬夜肝代码的最强动力!!
+
+## 如何赞助
+
+你可以通过微信赞赏码或者支付宝进行赞助,赞助后会在下面列表中显示赞助者信息。
+
+
+
+
+
+
+
+
+
+
+
+## 当前赞助者
+
+- 虚位以待...
+
+┭┮﹏┭┮,还没有小伙伴赞助,快抢沙发
diff --git a/docs/zh/context-menu/index.md b/docs/zh/context-menu/index.md
index 56bf7dc6..0cdb0d8a 100644
--- a/docs/zh/context-menu/index.md
+++ b/docs/zh/context-menu/index.md
@@ -1,4 +1,4 @@
-# 上下文菜单
+# 上下文菜单
在地图上添加自定义内容的右键菜单
diff --git a/package.json b/package.json
index 069974df..6747060c 100644
--- a/package.json
+++ b/package.json
@@ -72,7 +72,7 @@
"tslib": "^2.4.0",
"typescript": "^4.6.3",
"vite": "3.1.8",
- "vitepress": "1.0.0-alpha.21",
+ "vitepress": "1.0.0-alpha.27",
"vue-tsc": "^1.0.0"
},
"sideEffects": false,
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index c01901b5..ace2cc40 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -29,7 +29,7 @@ specifiers:
tslib: ^2.4.0
typescript: ^4.6.3
vite: 3.1.8
- vitepress: 1.0.0-alpha.21
+ vitepress: 1.0.0-alpha.27
vue: ^3.2.40
vue-tsc: ^1.0.0
@@ -65,32 +65,32 @@ devDependencies:
tslib: 2.4.0
typescript: 4.8.4
vite: 3.1.8
- vitepress: 1.0.0-alpha.21
+ vitepress: 1.0.0-alpha.27
vue-tsc: 1.0.8_typescript@4.8.4
packages:
- /@algolia/autocomplete-core/1.7.1:
- resolution: {integrity: sha512-eiZw+fxMzNQn01S8dA/hcCpoWCOCwcIIEUtHHdzN5TGB3IpzLbuhqFeTfh2OUhhgkE8Uo17+wH+QJ/wYyQmmzg==}
+ /@algolia/autocomplete-core/1.7.2:
+ resolution: {integrity: sha512-eclwUDC6qfApNnEfu1uWcL/rudQsn59tjEoUYZYE2JSXZrHLRjBUGMxiCoknobU2Pva8ejb0eRxpIYDtVVqdsw==}
dependencies:
- '@algolia/autocomplete-shared': 1.7.1
+ '@algolia/autocomplete-shared': 1.7.2
dev: true
- /@algolia/autocomplete-preset-algolia/1.7.1_algoliasearch@4.14.2:
- resolution: {integrity: sha512-pJwmIxeJCymU1M6cGujnaIYcY3QPOVYZOXhFkWVM7IxKzy272BwCvMFMyc5NpG/QmiObBxjo7myd060OeTNJXg==}
+ /@algolia/autocomplete-preset-algolia/1.7.2_algoliasearch@4.14.2:
+ resolution: {integrity: sha512-+RYEG6B0QiGGfRb2G3MtPfyrl0dALF3cQNTWBzBX6p5o01vCCGTTinAm2UKG3tfc2CnOMAtnPLkzNZyJUpnVJw==}
peerDependencies:
- '@algolia/client-search': ^4.9.1
- algoliasearch: ^4.9.1
+ '@algolia/client-search': '>= 4.9.1 < 6'
+ algoliasearch: '>= 4.9.1 < 6'
peerDependenciesMeta:
'@algolia/client-search':
optional: true
dependencies:
- '@algolia/autocomplete-shared': 1.7.1
+ '@algolia/autocomplete-shared': 1.7.2
algoliasearch: 4.14.2
dev: true
- /@algolia/autocomplete-shared/1.7.1:
- resolution: {integrity: sha512-eTmGVqY3GeyBTT8IWiB2K5EuURAqhnumfktAEoHxfDY2o7vg2rSnO16ZtIG0fMgt3py28Vwgq42/bVEuaQV7pg==}
+ /@algolia/autocomplete-shared/1.7.2:
+ resolution: {integrity: sha512-QCckjiC7xXHIUaIL3ektBtjJ0w7tTA3iqKcAE/Hjn1lZ5omp7i3Y4e09rAr9ZybqirL7AbxCLLq0Ra5DDPKeug==}
dev: true
/@algolia/cache-browser-local-storage/4.14.2:
@@ -546,14 +546,14 @@ packages:
'@jridgewell/trace-mapping': 0.3.9
dev: true
- /@docsearch/css/3.2.2:
- resolution: {integrity: sha512-VB0Evx4ikS1ZlW1YVUw+vI9b3H/UXMCo4W/ZWy+n56Sho4KOqyCHcINVays91TJt7HTV/CKO3FCbm2VJg5Wipw==}
+ /@docsearch/css/3.3.0:
+ resolution: {integrity: sha512-rODCdDtGyudLj+Va8b6w6Y85KE85bXRsps/R4Yjwt5vueXKXZQKYw0aA9knxLBT6a/bI/GMrAcmCR75KYOM6hg==}
dev: true
- /@docsearch/js/3.2.2:
- resolution: {integrity: sha512-YQQFsrKdvLjI9yvDBh7EuxnrLDElY5SofK1pvyHPvnGE5iB75uIXHC7w7I2zUL5Kj5Crv2L7jVq5j1TwX6Ho5A==}
+ /@docsearch/js/3.3.0:
+ resolution: {integrity: sha512-oFXWRPNvPxAzBhnFJ9UCFIYZiQNc3Yrv6912nZHw/UIGxsyzKpNRZgHq8HDk1niYmOSoLKtVFcxkccpQmYGFyg==}
dependencies:
- '@docsearch/react': 3.2.2
+ '@docsearch/react': 3.3.0
preact: 10.11.2
transitivePeerDependencies:
- '@algolia/client-search'
@@ -562,8 +562,8 @@ packages:
- react-dom
dev: true
- /@docsearch/react/3.2.2:
- resolution: {integrity: sha512-1Hn2SNQUFVPrzqvaj+vxXZfsfn3rnW8CoyGAJ1LqXMY9py8GbxK8VfmJ5Z6z4LwG9849tGru/N6dp0cQO6r9Ag==}
+ /@docsearch/react/3.3.0:
+ resolution: {integrity: sha512-fhS5adZkae2SSdMYEMVg6pxI5a/cE+tW16ki1V0/ur4Fdok3hBRkmN/H8VvlXnxzggkQIIRIVvYPn00JPjen3A==}
peerDependencies:
'@types/react': '>= 16.8.0 < 19.0.0'
react: '>= 16.8.0 < 19.0.0'
@@ -576,9 +576,9 @@ packages:
react-dom:
optional: true
dependencies:
- '@algolia/autocomplete-core': 1.7.1
- '@algolia/autocomplete-preset-algolia': 1.7.1_algoliasearch@4.14.2
- '@docsearch/css': 3.2.2
+ '@algolia/autocomplete-core': 1.7.2
+ '@algolia/autocomplete-preset-algolia': 1.7.2_algoliasearch@4.14.2
+ '@docsearch/css': 3.3.0
algoliasearch: 4.14.2
transitivePeerDependencies:
- '@algolia/client-search'
@@ -1119,24 +1119,24 @@ packages:
/@vue/shared/3.2.41:
resolution: {integrity: sha512-W9mfWLHmJhkfAmV+7gDjcHeAWALQtgGT3JErxULl0oz6R6+3ug91I7IErs93eCFhPCZPHBs4QJS7YWEV7A3sxw==}
- /@vueuse/core/9.3.1_vue@3.2.41:
- resolution: {integrity: sha512-xriyD+v3D2ObH/UtnkEl+1sbcLBVHNaZaLi/rqoNEe/B92hggDEFQIGXoQUjdRzYOjASHSezf9uCDtmd7LeWyA==}
+ /@vueuse/core/9.4.0_vue@3.2.41:
+ resolution: {integrity: sha512-JzgenGj1ZF2BHOen5rsFiAyyI9sXAv7aKhNLlm9b7SwYQeKTcxTWdhudonURCSP3Egl9NQaRBzes2lv/1JUt/Q==}
dependencies:
'@types/web-bluetooth': 0.0.16
- '@vueuse/metadata': 9.3.1
- '@vueuse/shared': 9.3.1_vue@3.2.41
+ '@vueuse/metadata': 9.4.0
+ '@vueuse/shared': 9.4.0_vue@3.2.41
vue-demi: 0.13.11_vue@3.2.41
transitivePeerDependencies:
- '@vue/composition-api'
- vue
dev: true
- /@vueuse/metadata/9.3.1:
- resolution: {integrity: sha512-G1BPhtx3OHaL/y4OZBofh6Xt02G1VA9PuOO8nac9sTKMkMqfyez5VfkF3D9GUjSRNO7cVWyH4rceeGXfr2wdMg==}
+ /@vueuse/metadata/9.4.0:
+ resolution: {integrity: sha512-7GKMdGAsJyQJl35MYOz/RDpP0FxuiZBRDSN79QIPbdqYx4Sd0sVTnIC68KJ6Oln0t0SouvSUMvRHuno216Ud2Q==}
dev: true
- /@vueuse/shared/9.3.1_vue@3.2.41:
- resolution: {integrity: sha512-YFu3qcnVeu0S2L4XdQJtBpDcjz6xwqHZtTv/XRhu66/yge1XVhxskUcc7VZbX52xF9A34V6KCfwncP9YDqYFiw==}
+ /@vueuse/shared/9.4.0_vue@3.2.41:
+ resolution: {integrity: sha512-fTuem51KwMCnqUKkI8B57qAIMcFovtGgsCtAeqxIzH3i6nE9VYge+gVfneNHAAy7lj8twbkNfqQSygOPJTm4tQ==}
dependencies:
vue-demi: 0.13.11_vue@3.2.41
transitivePeerDependencies:
@@ -3273,15 +3273,15 @@ packages:
fsevents: 2.3.2
dev: true
- /vitepress/1.0.0-alpha.21:
- resolution: {integrity: sha512-D/tkoDW16uUZ9pnWd28Kk1vX26zNiTml3m9oGbfx2pAfYg99PHd1GceZyEm4jZsJU0+n9S++1ctFxoQvsq376A==}
+ /vitepress/1.0.0-alpha.27:
+ resolution: {integrity: sha512-7/PwlIRZANvB2uyi8oi4oMXuH84g2/pAaoymb+ObBCs60m0oVxKMPO28w7R/svqSnnE+bNDOuLzTCXt7gn513g==}
hasBin: true
dependencies:
- '@docsearch/css': 3.2.2
- '@docsearch/js': 3.2.2
+ '@docsearch/css': 3.3.0
+ '@docsearch/js': 3.3.0
'@vitejs/plugin-vue': 3.1.2_vite@3.1.8+vue@3.2.41
'@vue/devtools-api': 6.4.5
- '@vueuse/core': 9.3.1_vue@3.2.41
+ '@vueuse/core': 9.4.0_vue@3.2.41
body-scroll-lock: 4.0.0-beta.0
shiki: 0.11.1
vite: 3.1.8