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 2020/06/19 13:20:36 UTC
[incubator-echarts-doc] branch live-example updated: example: make
the code more looking like uneditable.
This is an automated email from the ASF dual-hosted git repository.
shenyi pushed a commit to branch live-example
in repository https://gitbox.apache.org/repos/asf/incubator-echarts-doc.git
The following commit(s) were added to refs/heads/live-example by this push:
new 1ad786c example: make the code more looking like uneditable.
1ad786c is described below
commit 1ad786cfb65a4aa0aa205cf086e26229dd53757f
Author: pissang <bm...@gmail.com>
AuthorDate: Fri Jun 19 21:20:21 2020 +0800
example: make the code more looking like uneditable.
---
src/components/LiveExample.vue | 12 ++++++++++--
zh/option/component/tooltip.md | 2 +-
2 files changed, 11 insertions(+), 3 deletions(-)
diff --git a/src/components/LiveExample.vue b/src/components/LiveExample.vue
index 576e648..35d7943 100644
--- a/src/components/LiveExample.vue
+++ b/src/components/LiveExample.vue
@@ -151,7 +151,6 @@ function updateOption(option, isRefreshForce) {
value: this.formattedOptionCodeStr,
mode: 'javascript',
theme: 'paraiso-dark',
- lineNumbers: true,
readOnly: true
});
}
@@ -379,11 +378,16 @@ export default {
// }
.codemirror-main {
- height: 100%;
+ position: absolute;
+ left: 10px;
+ top: 10px;
+ right: 0;
+ bottom: 10px;
.CodeMirror {
height: 100%;
overflow-y: scroll;
+ border-radius: 5px;
// font-family: Monaco, 'Source Code Pro', monospace;
::-webkit-scrollbar-thumb {
@@ -399,6 +403,10 @@ export default {
background: rgba(255, 255, 255, 0.1);
// border-left: 3px solid #32dde6;
}
+
+ .CodeMirror-cursor {
+ display: none;
+ }
}
}
}
diff --git a/zh/option/component/tooltip.md b/zh/option/component/tooltip.md
index e36d53e..2602897 100644
--- a/zh/option/component/tooltip.md
+++ b/zh/option/component/tooltip.md
@@ -140,7 +140,7 @@ const option = {
## triggerOn(string) = 'mousemove|click'
-<ExampleUIControlEnum options="mousemove|click,mousemove,click" />
+<ExampleUIControlEnum options="mousemove,click" />
提示框触发的条件,可选:
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org