概述


目录


EProps (接口)

签名

interface EProps {}

v0.2.0 中添加

FlexContainerProps (接口)

签名

interface FlexContainerProps {
  /**
   *Align the flex items
   */
  mkFlexAlign?: 'flex-start' | 'flex-end' | 'center' | 'space-between' | 'space-around' | 'inherit'
  /**
   *Align the flex lines.
   */
  mkFlexAlignLines?:
    | 'space-around'
    | 'space-between'
    | 'space-evenly'
    | 'stretch'
    | 'center'
    | 'end'
    | 'flex-end'
    | 'flex-start'
    | 'start'
    | 'inherit'
  /**
   *Align the flex items vertically.
   */
  mkFlexAlignV?: 'flex-start' | 'flex-end' | 'center' | 'stretch' | 'baseline' | 'inherit'
  /**
   *The direction to stack the flex items.
   */
  mkFlexDirection?: 'row' | 'row-reverse' | 'column' | 'column-reverse' | 'inherit'
  /**
   *Items should wrap or not.
   */
  mkFlexWrap?: 'nowrap' | 'wrap' | 'wrap-reverse' | 'inherit'
}

v0.2.0 中添加

FlexItemProps (接口)

签名

interface FlexItemProps {
  /**
   *Align the flex item
   */
  mkFlexItemAlign?:
    | 'center'
    | 'end'
    | 'flex-end'
    | 'flex-start'
    | 'self-end'
    | 'self-start'
    | 'start'
    | 'auto'
    | 'baseline'
    | 'left'
    | 'normal'
    | 'right'
    | 'stretch'
    | 'inherit'
  /**
   *Align the flex item vertically.
   */
  mkFlexItemAlignV?:
    | 'center'
    | 'end'
    | 'flex-end'
    | 'flex-start'
    | 'self-end'
    | 'self-start'
    | 'start'
    | 'auto'
    | 'baseline'
    | 'normal'
    | 'stretch'
    | 'inherit'
  /**
   *The item will grow relative to the flex items.
   */
  mkFlexItemGrow?: number
  /**
   *The order of the flex item.
   */
  mkFlexItemOrder?: number
  /**
   *The item will shrink relative to the flex items.
   */
  mkFlexItemShrink?: number
  /**
   *The initial length of a item.
   */
  mkFlexItemWidth?: number | string
}

v0.2.0 中添加

Props (接口)

Flex properties

签名

interface Props extends SProps, EProps {}

v0.2.0 中添加

SProps (接口)

签名

interface SProps extends FlexContainerProps, FlexItemProps {}

v0.2.0 中添加

Rule (类型)

签名

export type Rule = ExtendRule<ParentRule, Props, {}>

v0.2.0 中添加

flexContainerRule (常量)

签名


export const flexContainerRule: ExtendRule<ParentRule, FlexContainerProps, {}> = ...

v0.2.0 中添加

flexItemRule (常量)

签名


export const flexItemRule: ExtendRule<ParentRule, FlexItemProps, {}> = ...

v0.2.0 中添加

ruleModule (常量)

签名


export const ruleModule: any = ...

v0.2.0 中添加