@@ -62,41 +62,38 @@ Array **array_data** serves to output data to the page and `is required to fill`
6262< / template>
6363
6464< script>
65- import PaginationPage from ' ./components/PaginationPage '
66- import PaginationControl from ' ./components/PaginationControl '
65+ import PaginationPage from ' vue-smart-pagination '
66+ import PaginationControl from ' vue-smart-pagination '
6767
6868export default {
6969 name: ' App' ,
7070 components: {
7171 PaginationPage,
7272 PaginationControl
7373 },
74-
7574 data : function () {
7675 return {
7776 array_data: [
7877 {
79- data: ' apple ' ,
78+ data: ' Page № 1 ' ,
8079 components: ' test1'
8180 },
8281 {
83- data: ' banana ' ,
82+ data: ' Page № 2 ' ,
8483 components: ' test2'
8584 },
8685 {
87- data: ' orange ' ,
86+ data: ' Page № 3 ' ,
8887 components: ' test3'
89- }
88+ },
9089 ]
9190 }
9291 },
93-
9492 methods: {
9593 test : function (e ) {
9694 console .log (e)
9795 }
9896 },
99-
10097 computed: {
10198 settings : function () {
10299 return {
@@ -105,39 +102,40 @@ export default {
105102 buttonsSettings: {
106103 controlClass: ' ' ,
107104 controlStyle: ' ' ,
108- maxButtons: 3 ,
105+ maxButtons: 5 ,
109106 allPageButtonsStyle: {
110- ' background' : ' ' ,
111- ' borderColor' : ' ' ,
112- ' color' : ' ' ,
113- ' backgroundHover' : ' ' ,
114- ' borderColorHover' : ' ' ,
115- ' colorHover' : ' ' ,
116- ' fontFamily' : ' '
117- },
118- currentPageButtonStyle: {
119- ' backgroundActive' : ' ' ,
120- ' borderColorActive' : ' ' ,
121- ' colorActive' : ' '
107+ ' background' : ' ' ,
108+ ' borderColor' : ' ' ,
109+ ' color' : ' ' ,
110+ ' backgroundHover' : ' ' ,
111+ ' borderColorHover' : ' ' ,
112+ ' colorHover' : ' ' ,
113+ ' fontFamily' : ' '
114+ },
115+ currentPageButtonStyle: {
116+ ' backgroundActive' : ' ' ,
117+ ' borderColorActive' : ' ' ,
118+ ' colorActive' : ' '
119+ }
122120 },
123121 arrowsSettings: {
124122 hideArrows: false ,
125- arrowStyle: ' ' ,
126- arrowStyleColor: ' ' ,
127- arrowStyleColorHover: ' '
123+ arrowStyle: ' styleArrow-2 ' ,
124+ arrowStyleColor: ' #02C8F3 ' ,
125+ arrowStyleColorHover: ' #fff '
128126 },
129127 dotsSettings: {
130128 controlDotsStyle: ' ' ,
131129 controlDotsColor: ' '
132130 },
133131 pageStarted: 1
134- },
132+ },
135133 PaginationPageSettings: {
136134 pageSettings: {
137135 pageClass: ' '
138136 },
139137 spinnerSettings: {
140- spinner: true ,
138+ spinner: false ,
141139 spinnerStyle: ' ' ,
142140 spinnerColor: ' '
143141 },
@@ -148,6 +146,7 @@ export default {
148146 }
149147 }
150148 }
149+ }
151150< / script>
152151```
153152** Adding Data to a Component:**
0 commit comments