From f65b2b80e1918e57b779284537cb75cedf01fa95 Mon Sep 17 00:00:00 2001 From: Sebastien Chopin Date: Tue, 29 Aug 2017 13:58:45 +0200 Subject: [PATCH] Add rtl option to loading --- lib/app/components/nuxt-loading.vue | 2 +- lib/common/options.js | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/app/components/nuxt-loading.vue b/lib/app/components/nuxt-loading.vue index f7d0e91cae..1569db0496 100644 --- a/lib/app/components/nuxt-loading.vue +++ b/lib/app/components/nuxt-loading.vue @@ -91,7 +91,7 @@ export default { .progress { position: fixed; top: 0px; - left: 0px; + left: <%= loading.rtl === true ? 'auto' : '0px' %>; right: 0px; height: 2px; width: 0%; diff --git a/lib/common/options.js b/lib/common/options.js index 0fc0beba43..80b9e789f5 100755 --- a/lib/common/options.js +++ b/lib/common/options.js @@ -231,7 +231,8 @@ Options.defaults = { color: 'black', failedColor: 'red', height: '2px', - duration: 5000 + duration: 5000, + rtl: false }, loadingIndicator: {}, transition: {