Skip to content

Commit f9a3098

Browse files
committed
fix(uiControl): fix UIControlVector throw error if no dims declared.
1 parent c1746a4 commit f9a3098

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/controls/ControlVector.vue

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,9 @@ export default {
4242
4343
computed: {
4444
dimsArr() {
45-
return this.dims.split(',').map(dim => dim.trim());
45+
return this.dims
46+
? this.dims.split(',').map(dim => dim.trim())
47+
: this.value.split(',').map(_ => '');
4648
}
4749
},
4850

0 commit comments

Comments
 (0)