import { PropType } from 'vue'; import { ComponentPropsType } from '../shared'; import { default as Container } from './Container'; export type ContainerDirection = 'row' | 'row-reverse' | 'column' | 'column-reverse'; export type ContainerWrap = 'nowrap' | 'wrap' | 'wrap-reverse'; export type ContainerJustifyContent = 'flex-start' | 'flex-end' | 'center' | 'space-between' | 'space-around'; export type ContainerAlignItems = 'flex-start' | 'flex-end' | 'center' | 'baseline' | 'stretch'; export type ContainerAlignContent = 'flex-start' | 'flex-end' | 'center' | 'space-between' | 'space-around' | 'stretch'; export declare const containerProps: { /** * 组件渲染html标签 */ tag: { type: StringConstructor; default: string; }; /** * 宽高自适应 */ fit: { type: BooleanConstructor; default: boolean; }; /** * 指定高度,fit 为true 失效 */ width: { type: (NumberConstructor | StringConstructor)[]; }; /** * 指定高度,fit 为true失效 */ height: { type: (NumberConstructor | StringConstructor)[]; }; /** * 开启flex布局 */ flex: { type: BooleanConstructor; default: boolean; }; /** * inline-flex */ inline: { type: BooleanConstructor; }; /** * flex主轴方向 */ direction: { type: PropType; default: string; }; /** * 换行 */ wrap: { type: PropType; default: string; }; /** * 主轴上的对齐方式。 */ justify: { type: PropType; default: string; }; /** * 交叉轴上对齐方式 */ align: { type: PropType; default: string; }; /** * 多根轴线的对齐方式。如果项目只有一根轴线,该属性不起作用 */ alignContent: { type: PropType; default: string; }; /** * 放大 */ grow: { type: BooleanConstructor; default: boolean; }; /** * 缩小 */ shrink: { type: BooleanConstructor; default: boolean; }; /** * 单个项目有与其他项目不一样的对齐方式。可覆盖容器的align-items属性 */ alignSelf: { type: PropType<"auto" | ContainerAlignItems>; default: string; }; /** * css overflow */ overflow: { type: PropType<"auto" | "hidden" | "visible">; }; /** * 内边距 */ padding: { type: BooleanConstructor; default: boolean; }; gap: { type: BooleanConstructor; }; autoPointer: { type: BooleanConstructor; }; }; export type ContainerProps = ComponentPropsType; export type ContainerInstance = InstanceType;