antd-mobile
Version:
基于 React 的移动设计规范实现
35 lines (34 loc) • 1.16 kB
TypeScript
/// <reference types="react" />
import { ReactNode } from 'react';
import { NativeProps, WebProps } from '../baseType';
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;
}
export interface FlexWebProps extends WebProps, FlexProps {
alignContent?: 'start' | 'end' | 'center' | 'between' | 'around' | 'stretch';
onClick?: () => void;
}
export interface FlexNativeProps extends NativeProps, FlexProps {
onPress?: (e?: any) => void;
onLongPress?: any;
onPressIn?: any;
onPressOut?: any;
}
export interface FlexItemProps {
disabled?: boolean;
children?: ReactNode;
}
export interface FlexItemWebProps extends WebProps, FlexItemProps {
}
export interface FlexItemNativeProps extends NativeProps, FlexItemProps {
flex?: number;
onPress?: (e?: any) => void;
onLongPress?: any;
onPressIn?: any;
onPressOut?: any;
}