diff --git a/packages/components/pagination/src/components/pager.ts b/packages/components/pagination/src/components/pager.ts new file mode 100644 index 0000000000..438e2a7026 --- /dev/null +++ b/packages/components/pagination/src/components/pager.ts @@ -0,0 +1,23 @@ +import { buildProps } from '@element-plus/utils' +import type { ExtractPropTypes } from 'vue' +import type Pager from './pager.vue' + +export const paginationPagerProps = buildProps({ + currentPage: { + type: Number, + default: 1, + }, + pageCount: { + type: Number, + required: true, + }, + pagerCount: { + type: Number, + default: 7, + }, + disabled: Boolean, +} as const) + +export type PaginationPagerProps = ExtractPropTypes + +export type PagerInstance = InstanceType diff --git a/packages/components/pagination/src/components/pager.vue b/packages/components/pagination/src/components/pager.vue index 8d0d1fe200..fd4f71901c 100644 --- a/packages/components/pagination/src/components/pager.vue +++ b/packages/components/pagination/src/components/pager.vue @@ -67,168 +67,118 @@ -