duoyun-ui
Version:
A lightweight desktop UI component library, implemented using Gem
24 lines (23 loc) • 1.1 kB
TypeScript
import { HTMLAttributes, RefAttributes } from 'react';
import { ForwardRefExoticComponent } from 'react';
import { DuoyunPaginationElement } from '../elements/pagination';
export * from '../elements/pagination';
export type DyPaginationProps = HTMLAttributes<HTMLDivElement> & RefAttributes<DuoyunPaginationElement> & {
align?: DuoyunPaginationElement['align'];
page?: DuoyunPaginationElement['page'];
total?: DuoyunPaginationElement['total'];
size?: DuoyunPaginationElement['size'];
'onpagechange'?: (event: CustomEvent<Parameters<DuoyunPaginationElement['pagechange']>[0]>) => void;
'onsizechange'?: (event: CustomEvent<Parameters<DuoyunPaginationElement['sizechange']>[0]>) => void;
sizes?: DuoyunPaginationElement['sizes'];
};
export type DyPaginationExpose = {};
declare global {
namespace JSX {
interface IntrinsicElements {
'dy-pagination': DyPaginationProps;
}
}
}
export declare const DyPagination: ForwardRefExoticComponent<Omit<DyPaginationProps, "ref"> & RefAttributes<DyPaginationExpose>>;
export default DyPagination;