diff --git a/packages/components/pagination/src/components/next.ts b/packages/components/pagination/src/components/next.ts new file mode 100644 index 0000000000..eee895d7a5 --- /dev/null +++ b/packages/components/pagination/src/components/next.ts @@ -0,0 +1,22 @@ +import { buildProps } from '@element-plus/utils' +import type { ExtractPropTypes } from 'vue' +import type Next from './next.vue' + +export const paginationNextProps = buildProps({ + disabled: Boolean, + currentPage: { + type: Number, + default: 1, + }, + pageCount: { + type: Number, + default: 50, + }, + nextText: { + type: String, + }, +} as const) + +export type PaginationNextProps = ExtractPropTypes + +export type NextInstance = InstanceType diff --git a/packages/components/pagination/src/components/next.vue b/packages/components/pagination/src/components/next.vue index c2a1aea97d..da4ddd7518 100644 --- a/packages/components/pagination/src/components/next.vue +++ b/packages/components/pagination/src/components/next.vue @@ -11,48 +11,24 @@ -