You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by sh...@apache.org on 2021/08/22 09:08:37 UTC
[echarts-handbook] branch master updated: fix echarts version. fix
crawler of nav not shown.
This is an automated email from the ASF dual-hosted git repository.
shenyi pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/echarts-handbook.git
The following commit(s) were added to refs/heads/master by this push:
new af33fef fix echarts version. fix crawler of nav not shown.
af33fef is described below
commit af33fefec3705e9205e1eb341c05a0d9ffe570f4
Author: pissang <bm...@gmail.com>
AuthorDate: Sun Aug 22 17:08:32 2021 +0800
fix echarts version. fix crawler of nav not shown.
---
components/markdown/Live.vue | 5 ++++-
components/partials/SidebarNavItem.vue | 2 +-
contents/zh/basics/release-note/5-2-0.md | 1 +
3 files changed, 6 insertions(+), 2 deletions(-)
diff --git a/components/markdown/Live.vue b/components/markdown/Live.vue
index 0094223..4af5545 100644
--- a/components/markdown/Live.vue
+++ b/components/markdown/Live.vue
@@ -41,7 +41,10 @@ declare const echarts: any
function ensureECharts() {
if (typeof echarts === 'undefined') {
return loadScriptsAsync([
- '//localhost/echarts/dist/echarts.js'
+ // 'https://cdn.jsdelivr.net/npm/echarts/dist/echarts.js'
+ process.env.NUXT_ENV_DEPLOY === 'asf'
+ ? 'https://cdn.jsdelivr.net/npm/echarts/dist/echarts.js'
+ : 'https://cdn.jsdelivr.net/npm/echarts-nightly/dist/echarts.min.js'
]).then(() => {})
}
return Promise.resolve()
diff --git a/components/partials/SidebarNavItem.vue b/components/partials/SidebarNavItem.vue
index da6b9b1..0c74fab 100644
--- a/components/partials/SidebarNavItem.vue
+++ b/components/partials/SidebarNavItem.vue
@@ -20,7 +20,7 @@
<ul
:class="['nav', 'bd-sidenav', 'level' + level]"
- v-if="!item.draft && item.children && !collapsed"
+ v-show="!item.draft && item.children && !collapsed"
>
<SidebarNavItem
v-for="child in item.children"
diff --git a/contents/zh/basics/release-note/5-2-0.md b/contents/zh/basics/release-note/5-2-0.md
index 5e60b6b..0eb4537 100644
--- a/contents/zh/basics/release-note/5-2-0.md
+++ b/contents/zh/basics/release-note/5-2-0.md
@@ -329,6 +329,7 @@ option = {
roundCap: true,
label: {
show: true,
+ // 试试改成 'insideStart'
position: 'start',
formatter: '{b}'
},
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org