From ed3a69d7af46c33c37a83bf426557ac9c8f8a28d Mon Sep 17 00:00:00 2001 From: Jacek Karczmarczyk Date: Thu, 25 Oct 2018 10:19:39 +0700 Subject: [PATCH] fix: add spaces to default value JSON to allow wrapping --- src/components/helpers/Parameters.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/helpers/Parameters.vue b/src/components/helpers/Parameters.vue index 4a3fbcf7f..29e5ddf8e 100644 --- a/src/components/helpers/Parameters.vue +++ b/src/components/helpers/Parameters.vue @@ -231,7 +231,7 @@ return this.genTypescriptDef(props) }, genDefault (value) { - if (typeof value !== 'string') return JSON.stringify(value) + if (typeof value !== 'string') return JSON.stringify(value, null, 2) else return value }, genTypescriptDef (obj) {