diff --git a/docs/.vuepress/config.js b/docs/.vuepress/config.js index 5dff59f865f69565b22ef6b4e5da759dddfd5df2..aa1a14d9d5008caff46f91dc1d330080cdca8ba5 100644 --- a/docs/.vuepress/config.js +++ b/docs/.vuepress/config.js @@ -1,3 +1,4 @@ +const path = require('path'); const { slugify } = require('@vuepress/shared-utils') const translatePlugin = require('./markdown/translate') const headerPlugin = require('./markdown/header') @@ -74,6 +75,12 @@ const config = { .use(require('./markdown/normallizeLink')) } }, + chainWebpack(config, isServer) { + config.resolve.alias.set( + '@theme-config', + path.resolve(process.cwd(), 'docs/.vuepress/config') + ) + }, plugins: [ ["vuepress-plugin-juejin-style-copy", copyOptions] ] diff --git a/docs/.vuepress/config/siderbar/uni-app.js b/docs/.vuepress/config/siderbar/uni-app.js index e402811140da2da5c7530afbd21c69a2b8f9759b..89882859731fd58ab967b2395673e13c5d21f97f 100644 --- a/docs/.vuepress/config/siderbar/uni-app.js +++ b/docs/.vuepress/config/siderbar/uni-app.js @@ -140,6 +140,11 @@ export default { "state": 1, "prefix": "群22" }, + { + "number": "599958679", + "state": 1, + "prefix": "群23" + }, { "number": "672494800", "state": 1, @@ -180,11 +185,6 @@ export default { "state": 1, "prefix": "群31" }, - { - "number": "166188631", - "state": 1, - "prefix": "群32" - }, { "number": "498071674", "state": 1, @@ -201,10 +201,11 @@ export default { "prefix": "群35" }, { - "number": "599958679", + "number": "166188631", "state": 0, - "prefix": "群23" + "prefix": "群32" } + ], - joinQQGroupHref: 'https://qm.qq.com/cgi-bin/qm/qr?k=JpUEAl4qkVGeAihWvgbzHRUoeZ_xBF5S&jump_from=webapi' + joinQQGroupHref: 'https://qm.qq.com/cgi-bin/qm/qr?k=LXbfShA9QaL21SAH6Wi-W69w8baKLDCU&jump_from=webapi' } diff --git a/docs/.vuepress/public/js/redirect.js b/docs/.vuepress/public/js/redirect.js index 2e1984b518c3a864e934b348a420bffd357cf14f..b9f1ea91abe0d4180af7d4640a6ad150ac72ad9e 100644 --- a/docs/.vuepress/public/js/redirect.js +++ b/docs/.vuepress/public/js/redirect.js @@ -5,6 +5,7 @@ var website_ZH_host = 'uniapp.dcloud.net.cn' var website_EN_host = 'en.uniapp.dcloud.io' var website_ZH = 'https://' + website_ZH_host; var website_EN = 'https://' + website_EN_host; +var _hmt = _hmt || []; // window.__UNI_DOCS_ZH_KEY__ = 'unidocs-zh-language' diff --git a/docs/api/location/map.md b/docs/api/location/map.md index 67360db8b8773191477e7fd16749a628c129363c..68904d9e58c7a649f96ea4bc1549ebee7f1ef084 100644 --- a/docs/api/location/map.md +++ b/docs/api/location/map.md @@ -48,6 +48,7 @@ mapContext - 在组件中,必须在 `mounted` 中调用。 - nvue没有`$getAppMap()`,请使用`createMapContext` - `uni-app`中使用原生地图无需提供占位div,得到`$getAppMap()`后直接js使用即可。 +- `openMapApp` iOS 暂不支持,后续补充 **getCenterLocation 的 OBJECT 参数列表** @@ -252,7 +253,7 @@ mapContext 示例代码 -``` +```js MapContext.on('markerClusterCreate', (res) => {}) MapContext.on('markerClusterClick', (res) => {}) ``` @@ -262,7 +263,7 @@ mapContext 缩小地图可看到多个 marker 合并为 1 个并显示聚合数量,放大地图后恢复 -``` +```html