UNPKG

@nutui/nutui-react

Version:

京东风格的轻量级移动端 React 组件库,支持一套代码生成 H5 和小程序

20 lines (19 loc) 1.19 kB
export type SimpleValue = string | number; export type SimpleValues = string[] | number[]; export type UIType = 'default' | 'primary' | 'info' | 'success' | 'warning' | 'danger'; export type UISize = 'xlarge' | 'large' | 'normal' | 'small' | 'mini'; export type UIRound = 'square' | 'round'; export type UIFill = 'solid' | 'outline' | 'dashed' | 'none'; export type UILayout = 'row' | 'col'; export type UITheme = 'light' | 'dark'; export type FlexAlign = 'flex-start' | 'center' | 'flex-end' | 'baseline'; export type FlexJustify = 'start' | 'end' | 'center' | 'between' | 'around' | 'evenly' | 'stretch'; export type TextAlign = 'start' | 'end' | 'left' | 'right' | 'center' | 'justify' | 'match-parent'; export type Align = 'left' | 'center' | 'right'; export type VAlign = 'top' | 'middle' | 'bottom'; export type Direction = 'horizontal' | 'vertical'; export type PositionX = 'left' | 'right'; export type PositionY = 'top' | 'bottom'; export type Position = PositionX | PositionY; export type EdgePosition = 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right' | 'left-top' | 'left-bottom' | 'right-top' | 'right-bottom'; export type FullPosition = Position | EdgePosition;