wip: refactor(client): migrate paging components to composition api
This commit is contained in:
		
							parent
							
								
									186a9e3b41
								
							
						
					
					
						commit
						06125e6820
					
				
					 15 changed files with 51 additions and 122 deletions
				
			
		| 
						 | 
				
			
			@ -7,7 +7,7 @@
 | 
			
		|||
</template>
 | 
			
		||||
 | 
			
		||||
<script lang="ts">
 | 
			
		||||
import { defineComponent } from 'vue';
 | 
			
		||||
import { computed, defineComponent } from 'vue';
 | 
			
		||||
import XColumn from './column.vue';
 | 
			
		||||
import XNotes from '@/components/notes.vue';
 | 
			
		||||
import * as os from '@/os';
 | 
			
		||||
| 
						 | 
				
			
			@ -34,9 +34,9 @@ export default defineComponent({
 | 
			
		|||
			pagination: {
 | 
			
		||||
				endpoint: 'notes/mentions',
 | 
			
		||||
				limit: 10,
 | 
			
		||||
				params: () => ({
 | 
			
		||||
				params: computed(() => ({
 | 
			
		||||
					visibility: 'specified'
 | 
			
		||||
				})
 | 
			
		||||
				})),
 | 
			
		||||
			},
 | 
			
		||||
		}
 | 
			
		||||
	},
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue