From ecdc7bcc25b0ea557c1593614644c58649015f08 Mon Sep 17 00:00:00 2001 From: Alexander Lichter Date: Sat, 24 Nov 2018 18:30:28 +0000 Subject: [PATCH] fix(progress-bar): allow 0 for values and remove duplicate defaults (#4397) --- packages/vue-app/template/components/nuxt-loading.vue | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/vue-app/template/components/nuxt-loading.vue b/packages/vue-app/template/components/nuxt-loading.vue index a6d69a4e1f..72e8d29850 100644 --- a/packages/vue-app/template/components/nuxt-loading.vue +++ b/packages/vue-app/template/components/nuxt-loading.vue @@ -8,10 +8,10 @@ export default { canSucceed: true, reversed: false, skipTimerCount: 0, - rtl: <%= loading.rtl || false %>, - throttle: <%= loading.throttle || 200 %>, - duration: <%= loading.duration || 3000 %>, - continuous: <%= loading.continuous || false %> + rtl: <%= Boolean(loading.rtl) %>, + throttle: <%= Number(loading.throttle) ? loading.throttle : 200 %>, + duration: <%= Number(loading.duration) ? loading.duration : 3000 %>, + continuous: <%= Boolean(loading.continuous) %> } }, computed: {