From 20885d3dea8819ba8c682dab0a3a2cecbfaf905d Mon Sep 17 00:00:00 2001 From: luoawai <32483950+luoawai@users.noreply.github.com> Date: Thu, 6 Apr 2023 15:05:40 +0800 Subject: [PATCH] fix(ui/pagination): fix pagination not require props (#946) --- packages/varlet-ui/types/pagination.d.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/varlet-ui/types/pagination.d.ts b/packages/varlet-ui/types/pagination.d.ts index 064ae92cd36..eb841297ac3 100644 --- a/packages/varlet-ui/types/pagination.d.ts +++ b/packages/varlet-ui/types/pagination.d.ts @@ -18,8 +18,8 @@ export interface PaginationProps extends BasicAttributes { sizeOption?: Array showTotal?: (total: number, range: Range) => string onChange?: ListenerProp<(current: number, size: number) => void> - 'onUpdate:current': ListenerProp<(current: number) => void> - 'onUpdate:size': ListenerProp<(size: number) => void> + 'onUpdate:current'?: ListenerProp<(current: number) => void> + 'onUpdate:size'?: ListenerProp<(size: number) => void> } export class Pagination extends VarComponent {