File tree Expand file tree Collapse file tree 1 file changed +22
-2
lines changed Expand file tree Collapse file tree 1 file changed +22
-2
lines changed Original file line number Diff line number Diff line change @@ -62,8 +62,6 @@ const render = async (pagination, setting) => {
6262	const  size  =  parseInt ( pagination . attr ( ATTR_SIZE )  ||  "10" ) ; 
6363	const  data  =  toData ( page ,  count ,  size ) ; 
6464
65- 	console . log ( {  data } ) ; 
66- 
6765	setting . renderer . render ( {  data,  container : pagination  } ) ; 
6866} ; 
6967
@@ -87,6 +85,28 @@ class Pagination extends Component {
8785			render ( this ,  data ) ; 
8886		} ) ; 
8987	} 
88+ 
89+ 	get  page ( ) { 
90+ 		return  parseInt ( this . attr ( ATTR_PAGE ) ) ; 
91+ 	} 
92+ 	set  page ( page ) { 
93+ 		this . attr ( ATTR_PAGE ,  page ) ; 
94+ 	} 
95+ 
96+ 	get  count ( ) { 
97+ 		return  parseInt ( this . attr ( ATTR_COUNT ) ) ; 
98+ 	} 
99+ 	set  count ( count ) { 
100+ 		this . attr ( ATTR_COUNT ,  count ) ; 
101+ 	} 
102+ 
103+ 	get  size ( ) { 
104+ 		return  parseInt ( this . attr ( ATTR_SIZE ) ) ; 
105+ 	} 
106+ 	set  size ( size ) { 
107+ 		this . attr ( ATTR_SIZE ,  size ) ; 
108+ 	} 
109+ 
90110} 
91111
92112defineComponent ( "pagination" ,  Pagination ) ; 
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments