From a287262560ccd03ee5bf97744b38ddba27f928d8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Merve=20=C3=96z=C3=A7if=C3=A7i?= Date: Tue, 8 Oct 2019 14:22:32 +0300 Subject: [PATCH] Fixed #61 --- src/components/carousel/Carousel.vue | 459 ++++++++++++++++++++++ src/components/utils/UniqueComponentId.js | 6 + src/main.js | 2 + 3 files changed, 467 insertions(+) create mode 100644 src/components/carousel/Carousel.vue create mode 100644 src/components/utils/UniqueComponentId.js diff --git a/src/components/carousel/Carousel.vue b/src/components/carousel/Carousel.vue new file mode 100644 index 000000000..ef4a70861 --- /dev/null +++ b/src/components/carousel/Carousel.vue @@ -0,0 +1,459 @@ + + + + + \ No newline at end of file diff --git a/src/components/utils/UniqueComponentId.js b/src/components/utils/UniqueComponentId.js new file mode 100644 index 000000000..88d86f507 --- /dev/null +++ b/src/components/utils/UniqueComponentId.js @@ -0,0 +1,6 @@ +var lastId = 0; + +export default function (prefix = 'pr_id_') { + lastId++; + return `${prefix}${lastId}`; +} \ No newline at end of file diff --git a/src/main.js b/src/main.js index 3c490629c..2b380f3b9 100644 --- a/src/main.js +++ b/src/main.js @@ -7,6 +7,7 @@ import AccordionTab from './components/accordiontab/AccordionTab'; import Button from './components/button/Button'; import Calendar from './components/calendar/Calendar'; import Card from './components/card/Card'; +import Carousel from './components/carousel/Carousel'; import Chart from './components/chart/Chart'; import Checkbox from './components/checkbox/Checkbox'; import Chips from './components/chips/Chips'; @@ -77,6 +78,7 @@ Vue.component('AutoComplete', AutoComplete); Vue.component('Button', Button); Vue.component('Calendar', Calendar); Vue.component('Card', Card); +Vue.component('Carousel', Carousel); Vue.component('Chart', Chart); Vue.component('Checkbox', Checkbox); Vue.component('Chips', Chips);