@@ -46,7 +46,7 @@ Also we have **props** - `:settings="settings”` which has two main objects - `
4646` PaginationPageSettings ` contains settings related to the page, the spinner and animation of the content change.
4747
4848
49- Array ** array_data ** serves to output data to the page and ` is required to fill ` .
49+ Array ** arrayData ** serves to output data to the page and ` is required to fill ` .
5050
5151** Example:**
5252``` js
@@ -55,10 +55,9 @@ Array **array_data** serves to output data to the page and `is required to fill`
5555 < pagination- page : settings= " settings" >
5656 < div slot= " page" slot- scope= " item" >
5757 < div> {{item .originalEvent .data }}< / div>
58- < components : is= " item.originalEvent.component" >< / components>
5958 < / div>
6059 < / pagination- page>
61- < pagination- control : settings= " settings" @callMethod = " test " / >
60+ < pagination- control : settings= " settings" / >
6261 < / div>
6362< / template>
6463
@@ -73,76 +72,23 @@ export default {
7372 },
7473 data : function () {
7574 return {
76- array_data : [
75+ arrayData : [
7776 {
78- data: ' Page № 1' ,
79- components: ' test1'
77+ data: ' Page № 1'
8078 },
8179 {
82- data: ' Page № 2' ,
83- components: ' test2'
80+ data: ' Page № 2'
8481 },
8582 {
86- data: ' Page № 3' ,
87- components: ' test3'
83+ data: ' Page № 3'
8884 },
8985 ]
9086 }
9187 },
92- methods: {
93- test : function (e ) {
94- console .log (e)
95- }
96- },
9788 computed: {
9889 settings : function () {
9990 return {
100- array_data: this .array_data ,
101- PaginationControlSettings: {
102- buttonsSettings: {
103- controlClass: ' ' ,
104- controlStyle: ' ' ,
105- maxButtons: 5 ,
106- allPageButtonsStyle: {
107- ' background' : ' ' ,
108- ' borderColor' : ' ' ,
109- ' color' : ' ' ,
110- ' backgroundHover' : ' ' ,
111- ' borderColorHover' : ' ' ,
112- ' colorHover' : ' ' ,
113- ' fontFamily' : ' '
114- },
115- currentPageButtonStyle: {
116- ' backgroundActive' : ' ' ,
117- ' borderColorActive' : ' ' ,
118- ' colorActive' : ' '
119- }
120- },
121- arrowsSettings: {
122- hideArrows: false ,
123- arrowStyle: ' ' ,
124- arrowStyleColor: ' #02C8F3' ,
125- arrowStyleColorHover: ' '
126- },
127- dotsSettings: {
128- controlDotsStyle: ' ' ,
129- controlDotsColor: ' '
130- },
131- pageStarted: 1
132- },
133- PaginationPageSettings: {
134- pageSettings: {
135- pageClass: ' '
136- },
137- spinnerSettings: {
138- spinner: false ,
139- spinnerStyle: ' ' ,
140- spinnerColor: ' '
141- },
142- animationSettings: {
143- animationPage: ' '
144- }
145- }
91+ arrayData: this .arrayData
14692 }
14793 }
14894 }
@@ -151,14 +97,14 @@ export default {
15197```
15298** Adding Data to a Component:**
15399
154- In the array ` array_data ` we add data and output them to the ` <pagination-page> ` . When referring to an array of elements, specify the ` originalEvent ` property to display the current data.
100+ In the array ` arrayData ` we add data and output them to the ` <pagination-page> ` . When referring to an array of elements, specify the ` originalEvent ` property to display the current data.
155101To display simple data, use ` <div> ` , and for components use ` <component> ` .
156102
157103` <div slot =" page "slot-scope =" item "> </ div> ` is required.
158104
159105** Example:**
160106```
161- array_data : [
107+ arrayData : [
162108 {
163109 data: 'apple',
164110 component: 'testComponent'
@@ -222,11 +168,11 @@ Name | Type | All values | Default value | Description
222168
223169** Example:**
224170```
225- <pagination-control @callMethod =" test "/>
171+ <pagination-control @callMethod =" showText "/>
226172```
227173```
228174methods: {
229- test : function (e) {
175+ showText : function (e) {
230176 console.log (e)
231177 }
232178}
0 commit comments