mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-01-26 18:00:43 +01:00
chore(Pagination): update defaults
This commit is contained in:
@@ -44,17 +44,17 @@ export interface PaginationProps extends Pick<PaginationRootProps, 'defaultPage'
|
|||||||
ellipsisIcon?: string
|
ellipsisIcon?: string
|
||||||
/**
|
/**
|
||||||
* The color of the pagination controls.
|
* The color of the pagination controls.
|
||||||
* @defaultValue 'white'
|
* @defaultValue 'gray'
|
||||||
*/
|
*/
|
||||||
color?: ButtonProps['color']
|
color?: ButtonProps['color']
|
||||||
/**
|
/**
|
||||||
* The variant of the pagination controls.
|
* The variant of the pagination controls.
|
||||||
* @defaultValue 'solid'
|
* @defaultValue 'outline'
|
||||||
*/
|
*/
|
||||||
variant?: ButtonProps['variant']
|
variant?: ButtonProps['variant']
|
||||||
/**
|
/**
|
||||||
* The color of the active pagination control.
|
* The color of the active pagination control.
|
||||||
* @defaultValue 'black'
|
* @defaultValue 'primary'
|
||||||
*/
|
*/
|
||||||
activeColor?: ButtonProps['color']
|
activeColor?: ButtonProps['color']
|
||||||
/**
|
/**
|
||||||
@@ -105,11 +105,16 @@ import { reactivePick } from '@vueuse/core'
|
|||||||
import { useAppConfig } from '#imports'
|
import { useAppConfig } from '#imports'
|
||||||
|
|
||||||
const props = withDefaults(defineProps<PaginationProps>(), {
|
const props = withDefaults(defineProps<PaginationProps>(), {
|
||||||
|
size: 'md',
|
||||||
color: 'gray',
|
color: 'gray',
|
||||||
activeColor: 'primary',
|
|
||||||
variant: 'outline',
|
variant: 'outline',
|
||||||
|
activeColor: 'primary',
|
||||||
activeVariant: 'solid',
|
activeVariant: 'solid',
|
||||||
showControls: true
|
showControls: true,
|
||||||
|
showEdges: false,
|
||||||
|
itemsPerPage: 10,
|
||||||
|
siblingCount: 2,
|
||||||
|
total: 0
|
||||||
})
|
})
|
||||||
const emits = defineEmits<PaginationEmits>()
|
const emits = defineEmits<PaginationEmits>()
|
||||||
const slots = defineSlots<PaginationSlots>()
|
const slots = defineSlots<PaginationSlots>()
|
||||||
|
|||||||
Reference in New Issue
Block a user