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/31 02:59:07 UTC

[echarts-handbook] branch master updated: fix type

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 25ada8a  fix type
25ada8a is described below

commit 25ada8a017852fa18e620d66208ab4e9c03de95b
Author: pissang <bm...@gmail.com>
AuthorDate: Tue Aug 31 10:58:16 2021 +0800

    fix type
---
 components/partials/Sidebar.vue | 3 ++-
 pages/_.vue                     | 3 +++
 2 files changed, 5 insertions(+), 1 deletion(-)

diff --git a/components/partials/Sidebar.vue b/components/partials/Sidebar.vue
index 487adda..87a0365 100644
--- a/components/partials/Sidebar.vue
+++ b/components/partials/Sidebar.vue
@@ -145,6 +145,7 @@ export default Vue.extend({
   overflow: visible;
   border-right: 1px solid #eee;
   border-bottom: none;
+  max-width: 350px;
 
   .open-sidebar {
     display: none;
@@ -152,7 +153,7 @@ export default Vue.extend({
 
   .bd-docs-nav {
     overflow-x: hidden;
-    overflow-y: scroll;
+    overflow-y: auto;
     height: calc(100vh - 50px);
   }
 
diff --git a/pages/_.vue b/pages/_.vue
index 9f2db52..cd13342 100644
--- a/pages/_.vue
+++ b/pages/_.vue
@@ -98,11 +98,14 @@ export default {
     }
   },
   mounted() {
+    // @ts-ignore
     this.toc = []
     const headers =
+      // @ts-ignore
       this.$el.querySelector('.post-inner')?.querySelectorAll(' h2,h3') || []
     for (let i = 0; i < headers.length; i++) {
       const title = (headers[i] as HTMLHeadingElement).innerText
+      // @ts-ignore
       this.toc.push({
         title,
         depth: +headers[i].nodeName.replace(/\D/g, ''),

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org