mirror of
https://github.com/element-plus/element-plus.git
synced 2024-12-21 02:50:11 +08:00
13 lines
404 B
TypeScript
13 lines
404 B
TypeScript
import type { ComputedRef, InjectionKey, WritableComputedRef } from 'vue'
|
|
|
|
export interface ElPaginationContext {
|
|
currentPage?: WritableComputedRef<number>
|
|
pageCount?: ComputedRef<number>
|
|
disabled?: ComputedRef<boolean>
|
|
changeEvent?: (val: number) => void
|
|
handleSizeChange?: (val: number) => void
|
|
}
|
|
|
|
export const elPaginationKey: InjectionKey<ElPaginationContext> =
|
|
Symbol('elPaginationKey')
|