UNPKG

hongluan-ui

Version:
1 lines 684 B
{"version":3,"file":"pagination.mjs","sources":["../../../../packages/tokens/pagination.ts"],"sourcesContent":["import type { ComponentSize } from '@hongluan-ui/constants'\nimport type { InjectionKey, ComputedRef, WritableComputedRef } from 'vue'\n\nexport interface PaginationContext {\n currentPage?: WritableComputedRef<number>\n pageCount?: ComputedRef<number>\n disabled?: ComputedRef<boolean>\n size?: ComputedRef<ComponentSize>\n changeEvent?: (val: number) => void\n handleSizeChange?: (val: number) => void\n}\n\nexport const paginationKey: InjectionKey<PaginationContext> =\n Symbol('PaginationKey')\n"],"names":[],"mappings":"AAAY,MAAC,aAAa,GAAG,MAAM,CAAC,eAAe;;;;"}