fix: loading.throttle can not be 0

This commit is contained in:
Clark Du 2019-01-03 13:24:56 +00:00
parent 33f4d2621f
commit 2d7480457d

View File

@ -9,8 +9,8 @@ export default {
reversed: false,
skipTimerCount: 0,
rtl: <%= Boolean(loading.rtl) %>,
throttle: <%= Number(loading.throttle) ? loading.throttle : 200 %>,
duration: <%= Number(loading.duration) ? loading.duration : 3000 %>,
throttle: <%= typeof loading.throttle == 'number' ? loading.throttle : 200 %>,
duration: <%= typeof loading.throttle == 'number' ? loading.duration : 3000 %>,
continuous: <%= Boolean(loading.continuous) %>
}
},