antd-mobile
Version:
基于 React 的移动设计规范实现
44 lines (43 loc) • 1.13 kB
TypeScript
import * as React from 'react';
export interface ListItemProps {
/** web only */
prefixCls?: string;
style?: React.CSSProperties;
/** web only */
className?: string;
thumb: React.ReactNode;
extra?: React.ReactNode;
arrow?: 'horizontal' | 'down' | 'up' | 'empty' | '';
align?: string;
onClick?: Function;
error?: boolean;
multipleLine?: boolean;
children?: any;
wrap?: boolean;
}
export interface ListItemState {
hover: boolean;
}
export declare class Brief extends React.Component<any, any> {
render(): JSX.Element;
}
export default class ListItem extends React.Component<ListItemProps, ListItemState> {
static Brief: typeof Brief;
static defaultProps: {
prefixCls: string;
thumb: string;
arrow: string;
children: string;
extra: string;
error: boolean;
multipleLine: boolean;
align: string;
wrap: boolean;
};
static myName: string;
constructor(props: any);
onClick: (e: any) => void;
onTouchStart: () => void;
onTouchEnd: () => void;
render(): JSX.Element;
}