@@ -76,56 +76,30 @@ exports.default = {
7676 } ,
7777
7878 render : function render ( h ) {
79- var template = h (
80- "ul" ,
81- { "class" : "v-page-ul" } ,
82- [ ]
83- ) ;
79+ var template = h ( "ul" , { "class" : "v-page-ul" } ) ;
8480
8581 var comps = {
86- 'total' : h (
87- "total" ,
88- null ,
89- [ ]
90- ) ,
91- 'prev' : h (
92- "prev" ,
93- null ,
94- [ ]
95- ) ,
96- 'pager' : h (
97- "pager" ,
98- {
99- attrs : { pageCount : this . pageCount , pageIndex : this . newPageIndex ,
100- showPagingCount : this . showPagingCount
101- } ,
102- on : {
103- "jumpPageHandler" : this . jumpPageHandler
104- }
105- } ,
106- [ ]
107- ) ,
108- 'next' : h (
109- "next" ,
110- null ,
111- [ ]
112- ) ,
113- 'sizer' : h (
114- "sizer" ,
115- null ,
116- [ ]
117- ) ,
118- 'jumper' : h (
119- "jumper" ,
120- {
121- on : {
122- "jumpPageHandler" : this . jumpPageHandler
123- }
82+ 'total' : h ( "total" , null ) ,
83+ 'prev' : h ( "prev" , null ) ,
84+ 'pager' : h ( "pager" , {
85+ attrs : { pageCount : this . pageCount , pageIndex : this . newPageIndex ,
86+ showPagingCount : this . showPagingCount
12487 } ,
125- [ ]
126- )
88+ on : {
89+ "jumpPageHandler" : this . jumpPageHandler
90+ }
91+ } ) ,
92+ 'next' : h ( "next" , null ) ,
93+ 'sizer' : h ( "sizer" , null ) ,
94+ 'jumper' : h ( "jumper" , {
95+ on : {
96+ "jumpPageHandler" : this . jumpPageHandler
97+ }
98+ } )
12799 } ;
128100
101+ template . children = template . children || [ ] ;
102+
129103 this . layout . forEach ( function ( item ) {
130104 template . children . push ( comps [ item ] ) ;
131105 } ) ;
@@ -165,11 +139,7 @@ exports.default = {
165139 [ h (
166140 "a" ,
167141 null ,
168- [ h (
169- "i" ,
170- { "class" : "v-icon-angle-left" } ,
171- [ ]
172- ) ]
142+ [ h ( "i" , { "class" : "v-icon-angle-left" } ) ]
173143 ) ]
174144 ) ;
175145 }
@@ -191,11 +161,7 @@ exports.default = {
191161 [ h (
192162 "a" ,
193163 null ,
194- [ h (
195- "i" ,
196- { "class" : "v-icon-angle-right" } ,
197- [ ]
198- ) ]
164+ [ h ( "i" , { "class" : "v-icon-angle-right" } ) ]
199165 ) ]
200166 ) ;
201167 }
@@ -207,22 +173,18 @@ exports.default = {
207173 } ,
208174
209175 render : function render ( h ) {
210- return h (
211- "v-select" ,
212- {
213- attrs : { size : this . $parent . size ,
214- value : this . $parent . newPageSizeOption
215- } ,
216- "class" : "v-page-select" , on : {
217- "input" : this . handleChange
218- } ,
219- directives : [ {
220- name : "model" ,
221- value : this . $parent . newPageSizeOption
222- } ]
176+ return h ( "v-select" , {
177+ attrs : { size : this . $parent . size ,
178+ value : this . $parent . newPageSizeOption
223179 } ,
224- [ ]
225- ) ;
180+ "class" : "v-page-select" , on : {
181+ "input" : this . handleChange
182+ } ,
183+ directives : [ {
184+ name : "model" ,
185+ value : this . $parent . newPageSizeOption
186+ } ]
187+ } ) ;
226188 } ,
227189
228190
@@ -259,22 +221,18 @@ exports.default = {
259221 return h (
260222 "span" ,
261223 { "class" : "v-page-goto" } ,
262- [ "\xA0\u524D\u5F80\xA0" , h (
263- "input" ,
264- {
265- "class" : "v-page-goto-input" ,
266- domProps : {
267- "value" : this . $parent . newPageIndex
268- } ,
269- on : {
270- "keyup" : this . jumperEnter
271- } ,
272- attrs : {
273- type : "input"
274- }
224+ [ "\xA0\u524D\u5F80\xA0" , h ( "input" , {
225+ "class" : "v-page-goto-input" ,
226+ domProps : {
227+ "value" : this . $parent . newPageIndex
228+ } ,
229+ on : {
230+ "keyup" : this . jumperEnter
275231 } ,
276- [ ]
277- ) , "\xA0\u9875\xA0" ]
232+ attrs : {
233+ type : "input"
234+ }
235+ } ) , "\xA0\u9875\xA0" ]
278236 ) ;
279237 }
280238 }
0 commit comments