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/15 02:43:02 UTC
[incubator-echarts-doc] branch live-example updated: fix vector ui
component
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 ba004c5 fix vector ui component
ba004c5 is described below
commit ba004c516002b46dfb3cd0541ffb10c651c51108
Author: pissang <bm...@gmail.com>
AuthorDate: Mon Jun 15 10:42:49 2020 +0800
fix vector ui component
---
src/components/LiveExample.vue | 4 ++--
src/controls/ControlVector.vue | 4 ++--
zh/option/partial/component-common-style.md | 2 +-
3 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/src/components/LiveExample.vue b/src/components/LiveExample.vue
index c4d5b92..fc49942 100644
--- a/src/components/LiveExample.vue
+++ b/src/components/LiveExample.vue
@@ -47,14 +47,14 @@ function updateOption(option) {
if (!this.echartsInstance) {
this.chartInstance = echarts.init(viewport);
}
- this.chartInstance.setOption(option);
+ this.chartInstance.setOption(option, true);
})
}
else {
if (!this.echartsInstance) {
this.chartInstance = echarts.init(viewport);
}
- this.chartInstance.setOption(option);
+ this.chartInstance.setOption(option, true);
}
if (!this.cmInstance) {
diff --git a/src/controls/ControlVector.vue b/src/controls/ControlVector.vue
index 8559d02..13c2bb1 100644
--- a/src/controls/ControlVector.vue
+++ b/src/controls/ControlVector.vue
@@ -4,7 +4,7 @@
:key="index">
<label>{{dim}}:</label>
<el-input-number
- v-model="value[index]"
+ v-model="innerValue[index]"
controls-position="right"
:min="+min"
:max="max == null ? 1e4 : +max"
@@ -23,7 +23,7 @@ export default {
data() {
return {
- innerValue: this.value
+ innerValue: this.value.slice()
};
},
diff --git a/zh/option/partial/component-common-style.md b/zh/option/partial/component-common-style.md
index 3a83d8c..57b25b5 100644
--- a/zh/option/partial/component-common-style.md
+++ b/zh/option/partial/component-common-style.md
@@ -42,7 +42,7 @@ ${componentName}的边框线宽。
#${prefix} ${propName|default('borderRadius')}(number|Array) = 0
-<ExampleUIControlVector value="0" min="0" dims="LT, RT, RB, LB" />
+<ExampleUIControlVector min="0" dims="LT, RT, RB, LB" />
圆角半径,单位px,支持传入数组分别指定 4 个圆角半径。
如:
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org