UNPKG

antd-mobile

Version:

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

33 lines (32 loc) 1.05 kB
/// <reference types="react" /> import { ReactNode } from 'react'; export interface FlexProps { direction?: 'row' | 'row-reverse' | 'column' | 'column-reverse'; wrap?: 'nowrap' | 'wrap' | 'wrap-reverse'; justify?: 'start' | 'end' | 'center' | 'between' | 'around'; align?: 'top' | 'start' | 'middle' | 'center' | 'bottom' | 'end' | 'baseline' | 'stretch'; children?: ReactNode; disabled?: boolean; style?: React.CSSProperties | {} | Array<{}>; alignContent?: 'start' | 'end' | 'center' | 'between' | 'around' | 'stretch'; onClick?: () => void; prefixCls?: string; className?: string; role?: string; onPress?: (e?: any) => void; onLongPress?: any; onPressIn?: any; onPressOut?: any; } export interface FlexItemProps { disabled?: boolean; children?: ReactNode; style?: React.CSSProperties | {} | Array<{}>; prefixCls?: string; className?: string; flex?: number; onPress?: (e?: any) => void; onLongPress?: any; onPressIn?: any; onPressOut?: any; }