You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by su...@apache.org on 2025/08/05 19:57:21 UTC

(echarts-doc) 01/04: Support no dims in PercentVector

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

sushuang pushed a commit to branch v6-doc-supplement-2
in repository https://gitbox.apache.org/repos/asf/echarts-doc.git

commit 0f9e007b7a37c061f6528614260cda3320c0af44
Author: 100pah <su...@gmail.com>
AuthorDate: Wed Aug 6 01:35:51 2025 +0800

    Support no dims in PercentVector
---
 src/controls/ControlPercentVector.vue | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/controls/ControlPercentVector.vue b/src/controls/ControlPercentVector.vue
index 2a2123d6..010d5d77 100644
--- a/src/controls/ControlPercentVector.vue
+++ b/src/controls/ControlPercentVector.vue
@@ -35,7 +35,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: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org