This is an automated email from the ASF dual-hosted git repository.

wangzx pushed a commit to branch gh-pages
in repository https://gitbox.apache.org/repos/asf/echarts-examples.git


The following commit(s) were added to refs/heads/gh-pages by this push:
     new d2603792 remove v4 link in editor & view page
d2603792 is described below

commit d260379298363a21f9426ee9faa7ef970d5b9f24
Author: plainheart <y...@all-my-life.cn>
AuthorDate: Tue May 3 02:53:09 2022 +0800

    remove v4 link in editor & view page
---
 src/editor/Editor.vue | 4 ----
 src/main.js           | 8 +++++++-
 2 files changed, 7 insertions(+), 5 deletions(-)

diff --git a/src/editor/Editor.vue b/src/editor/Editor.vue
index 88a056bf..49b49497 100644
--- a/src/editor/Editor.vue
+++ b/src/editor/Editor.vue
@@ -440,10 +440,6 @@ $control-panel-height: 30px;
 $pd-basic: 10px;
 $handler-width: 5px;
 
-#v4-link {
-  display: none !important;
-}
-
 #main-container {
   .handler {
     position: absolute;
diff --git a/src/main.js b/src/main.js
index 7f6bcf2c..24ba141f 100644
--- a/src/main.js
+++ b/src/main.js
@@ -38,6 +38,12 @@ export function init(el, option) {
   const container = document.createElement('div');
   el.appendChild(container);
 
+  const page = option.page;
+  if (page && page !== 'explore') {
+    const v4Link = document.getElementById('v4-link');
+    v4Link && v4Link.remove();
+  }
+
   new Vue({
     i18n,
     el: container,
@@ -47,7 +53,7 @@ export function init(el, option) {
           editor: EditorPage,
           explore: ExplorePage,
           view: ViewPage
-        }[option.page] || ExplorePage
+        }[page] || ExplorePage
       );
     }
   });


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

Reply via email to