Skip to content

@vtj


@vtj / ui / containerProps

Variable: containerProps ​

const containerProps: object

Defined in: packages/ui/types/components/container/types.d.ts:9

Type Declaration ​

align ​

align: object

交叉轴上对齐方式

align.default ​

default: string

align.type ​

type: PropType<ContainerAlignItems>

alignContent ​

alignContent: object

多根轴线的对齐方式。如果项目只有一根轴线,该属性不起作用

alignContent.default ​

default: string

alignContent.type ​

type: PropType<ContainerAlignContent>

alignSelf ​

alignSelf: object

单个项目有与其他项目不一样的对齐方式。可覆盖容器的align-items属性

alignSelf.default ​

default: string

alignSelf.type ​

type: PropType<"auto" | ContainerAlignItems>

autoPointer ​

autoPointer: object

autoPointer.type ​

type: BooleanConstructor

direction ​

direction: object

flex主轴方向

direction.default ​

default: string

direction.type ​

type: PropType<ContainerDirection>

fit ​

fit: object

宽高自适应

fit.default ​

default: boolean

fit.type ​

type: BooleanConstructor

flex ​

flex: object

开启flex布局

flex.default ​

default: boolean

flex.type ​

type: BooleanConstructor

gap ​

gap: object

gap.type ​

type: BooleanConstructor

grow ​

grow: object

放大

grow.default ​

default: boolean

grow.type ​

type: BooleanConstructor

height ​

height: object

指定高度,fit 为true失效

height.type ​

type: (NumberConstructor | StringConstructor)[]

inline ​

inline: object

inline-flex

inline.type ​

type: BooleanConstructor

justify ​

justify: object

主轴上的对齐方式。

justify.default ​

default: string

justify.type ​

type: PropType<ContainerJustifyContent>

overflow ​

overflow: object

css overflow

overflow.type ​

type: PropType<"auto" | "hidden" | "visible">

padding ​

padding: object

内边距

padding.default ​

default: boolean

padding.type ​

type: BooleanConstructor

shrink ​

shrink: object

缩小

shrink.default ​

default: boolean

shrink.type ​

type: BooleanConstructor

tag ​

tag: object

组件渲染html标签

tag.default ​

default: string

tag.type ​

type: StringConstructor

width ​

width: object

指定高度,fit 为true 失效

width.type ​

type: (NumberConstructor | StringConstructor)[]

wrap ​

wrap: object

换行

wrap.default ​

default: string

wrap.type ​

type: PropType<ContainerWrap>