fix(progress-bar): allow 0 for values and remove duplicate defaults (#4397)

This commit is contained in:
Alexander Lichter 2018-11-24 18:30:28 +00:00 committed by Pooya Parsa
parent 54d273720c
commit 8030ca1a3d

View File

@ -8,10 +8,10 @@ export default {
canSucceed: true, canSucceed: true,
reversed: false, reversed: false,
skipTimerCount: 0, skipTimerCount: 0,
rtl: <%= loading.rtl || false %>, rtl: <%= Boolean(loading.rtl) %>,
throttle: <%= loading.throttle || 200 %>, throttle: <%= Number(loading.throttle) ? loading.throttle : 200 %>,
duration: <%= loading.duration || 3000 %>, duration: <%= Number(loading.duration) ? loading.duration : 3000 %>,
continuous: <%= loading.continuous || false %> continuous: <%= Boolean(loading.continuous) %>
} }
}, },
computed: { computed: {