UNPKG

duoyun-ui

Version:

A lightweight desktop UI component library, implemented using Gem

32 lines (31 loc) 1.43 kB
import { HTMLAttributes, RefAttributes } from 'react'; import { ForwardRefExoticComponent } from 'react'; import { DuoyunListElement } from '../elements/list'; export * from '../elements/list'; export type DyListProps = HTMLAttributes<HTMLDivElement> & RefAttributes<DuoyunListElement> & { /**@deprecated */ data?: DuoyunListElement['data']; items?: DuoyunListElement['items']; 'onbackward'?: (event: CustomEvent<Parameters<DuoyunListElement['backward']>[0]>) => void; key?: DuoyunListElement['key']; renderItem?: DuoyunListElement['renderItem']; debug?: DuoyunListElement['debug']; itemexportparts?: DuoyunListElement['itemexportparts']; infinite?: DuoyunListElement['infinite']; getKey?: DuoyunListElement['getKey']; 'onforward'?: (event: CustomEvent<Parameters<DuoyunListElement['forward']>[0]>) => void; 'onitemshow'?: (event: CustomEvent<Parameters<DuoyunListElement['itemshow']>[0]>) => void; persistentState?: DuoyunListElement['persistentState']; persistentState?: DuoyunListElement['persistentState']; scrollContainer?: DuoyunListElement['scrollContainer']; }; export type DyListExpose = {}; declare global { namespace JSX { interface IntrinsicElements { 'dy-list': DyListProps; } } } export declare const DyList: ForwardRefExoticComponent<Omit<DyListProps, "ref"> & RefAttributes<DyListExpose>>; export default DyList;