mirror of
https://gitee.com/element-plus/element-plus.git
synced 2024-12-05 04:37:47 +08:00
6256189100
* refactor(components): refactor pagination * fix: tests * fix: emits * refactor: improve props
13 lines
375 B
TypeScript
13 lines
375 B
TypeScript
import type { InjectionKey, ComputedRef } from 'vue'
|
|
|
|
export interface ElPaginationContext {
|
|
currentPage?: ComputedRef<number>
|
|
pageCount?: ComputedRef<number>
|
|
disabled?: ComputedRef<boolean>
|
|
changeEvent?: (val: number) => void
|
|
handleSizeChange?: (val: number) => void
|
|
}
|
|
|
|
export const elPaginationKey: InjectionKey<ElPaginationContext> =
|
|
Symbol('elPaginationKey')
|