-
+
- fa-arrow-circle-left
+ @click="moveLeft">
+ {{ leftArrowIcon }}
-
+
-
+
- fa-arrow-circle-right
+ @click="moveRight">
+ {{ rightArrowIcon }}
-
+
@@ -68,6 +70,14 @@ export default {
computing: false,
initialized: false,
}),
+ computed: {
+ leftArrowIcon() {
+ return this.$vuetify.rtl && 'fa-arrow-circle-right' || 'fa-arrow-circle-left';
+ },
+ rightArrowIcon() {
+ return this.$vuetify.rtl && 'fa-arrow-circle-left' || 'fa-arrow-circle-right';
+ },
+ },
mounted() {
this.scrollElement = this.$el && this.$el.children && this.$el.children.length > 1 && this.$el.children[1];
@@ -111,14 +121,9 @@ export default {
const contentWidth = this.scrollElement.firstChild.offsetWidth;
const children = this.scrollElement.firstChild.children;
const childrenCount = children.length;
- const firstElementLocation = this.scrollElement.firstChild.children[0].getBoundingClientRect();
- const lastElementLocation = this.scrollElement.lastChild.children[9].getBoundingClientRect();
- const carouselLocation = this.scrollElement.parentElement.getBoundingClientRect();
- const visibilityIconArrowNext = (this.$vuetify.rtl) ? lastElementLocation.right