This is an automated email from the ASF dual-hosted git repository.
sushuang pushed a commit to branch dev
in repository https://gitbox.apache.org/repos/asf/echarts-doc.git
The following commit(s) were added to refs/heads/dev by this push:
new f9a3098b fix(uiControl): fix UIControlVector throw error if no dims
declared.
f9a3098b is described below
commit f9a3098bda139e2417b221aa493480a2a0bdecfc
Author: 100pah <[email protected]>
AuthorDate: Thu Jul 3 16:20:36 2025 +0800
fix(uiControl): fix UIControlVector throw error if no dims declared.
---
src/controls/ControlVector.vue | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/src/controls/ControlVector.vue b/src/controls/ControlVector.vue
index 2336dfc3..b4950af6 100644
--- a/src/controls/ControlVector.vue
+++ b/src/controls/ControlVector.vue
@@ -42,7 +42,9 @@ export default {
computed: {
dimsArr() {
- return this.dims.split(',').map(dim => dim.trim());
+ return this.dims
+ ? this.dims.split(',').map(dim => dim.trim())
+ : this.value.split(',').map(_ => '');
}
},
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]