From 1435856586cc7591d8ff758ee024d1aa229d7e5b Mon Sep 17 00:00:00 2001 From: rogepi Date: Wed, 23 Aug 2023 18:46:30 +0800 Subject: [PATCH] docs: add colon before numeric props (#564) Co-authored-by: rogepi --- docs/components/content/ComponentCard.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/components/content/ComponentCard.vue b/docs/components/content/ComponentCard.vue index c847ff79..59008939 100644 --- a/docs/components/content/ComponentCard.vue +++ b/docs/components/content/ComponentCard.vue @@ -165,7 +165,7 @@ const code = computed(() => { continue } - code += ` ${(typeof value === 'boolean' && value !== true) || typeof value === 'object' ? ':' : ''}${key === 'modelValue' ? 'value' : useKebabCase(key)}${typeof value === 'boolean' && !!value && key !== 'modelValue' ? '' : `="${typeof value === 'object' ? renderObject(value) : value}"`}` + code += ` ${(typeof value === 'boolean' && value !== true) || typeof value === 'object' || typeof value === 'number' ? ':' : ''}${key === 'modelValue' ? 'value' : useKebabCase(key)}${typeof value === 'boolean' && !!value && key !== 'modelValue' ? '' : `="${typeof value === 'object' ? renderObject(value) : value}"`}` } if (props.slots) {