UNPKG

antd-mobile-alita

Version:

基于 React 的移动设计规范实现

46 lines (45 loc) 3.11 kB
import * as React from 'react'; import { ListViewProps } from './index'; export default function handleProps(props: ListViewProps, isIndexed: boolean): { restProps: { onQuickSearch?: ((sectionID: any, topId?: any) => void) | undefined; quickSearchBarStyle?: React.CSSProperties | undefined; quickSearchBarTop?: { value: string; label: string; } | undefined; delayTime?: number | undefined; delayActivityIndicator?: any; dataSource: any; initialListSize?: number | undefined; onEndReached?: ((e?: any) => void) | undefined; onEndReachedThreshold?: number | undefined; pageSize?: number | undefined; renderRow: (rowData: any, sectionID: string | number, rowID: string | number, highlightRow?: boolean | undefined) => React.ReactElement<any, string | ((props: any) => React.ReactElement<any, string | any | (new (props: any) => React.Component<any, any, any>)> | null) | (new (props: any) => React.Component<any, any, any>)>; renderScrollComponent?: ((p: any) => React.ReactElement<any, string | ((props: any) => React.ReactElement<any, string | any | (new (props: any) => React.Component<any, any, any>)> | null) | (new (props: any) => React.Component<any, any, any>)>) | undefined; renderSeparator?: ((sectionID: string | number, rowID: string | number, adjacentRowHighlighted?: boolean | undefined) => React.ReactElement<any, string | ((props: any) => React.ReactElement<any, string | any | (new (props: any) => React.Component<any, any, any>)> | null) | (new (props: any) => React.Component<any, any, any>)>) | undefined; scrollRenderAheadDistance?: number | undefined; horizontal?: boolean | undefined; onContentSizeChange?: ((w: number, h: number) => void) | undefined; onScroll?: ((e?: any) => void) | undefined; scrollEventThrottle?: number | undefined; onLayout?: ((event: any) => void) | undefined; style?: React.CSSProperties | undefined; contentContainerStyle?: React.CSSProperties | undefined; renderSectionWrapper?: (() => React.ReactElement<any, string | ((props: any) => React.ReactElement<any, string | any | (new (props: any) => React.Component<any, any, any>)> | null) | (new (props: any) => React.Component<any, any, any>)>) | undefined; renderSectionBodyWrapper?: (() => React.ReactElement<any, string | ((props: any) => React.ReactElement<any, string | any | (new (props: any) => React.Component<any, any, any>)> | null) | (new (props: any) => React.Component<any, any, any>)>) | undefined; useBodyScroll?: boolean | undefined; pullToRefresh?: React.ReactNode; className?: string | undefined; prefixCls?: string | undefined; listPrefixCls?: string | undefined; listViewPrefixCls?: string | undefined; sectionBodyClassName?: string | undefined; }; extraProps: { renderHeader: any; renderFooter: any; renderSectionHeader: any; renderBodyComponent: () => JSX.Element; }; };