element-plus
Version:
> TODO: description
49 lines (48 loc) • 1.37 kB
TypeScript
import type { PropType, ExtractPropTypes, CSSProperties, VNodeChild } from 'vue';
import type { ComponentSize } from 'element-plus/es/utils/types';
export declare const defaultProps: {
direction: {
type: PropType<"horizontal" | "vertical">;
default: string;
};
class: {
type: (StringConstructor | ObjectConstructor | ArrayConstructor)[];
default: string;
};
style: {
type: PropType<string | any[] | CSSProperties>;
};
alignment: {
type: PropType<"">;
default: string;
};
prefixCls: {
type: StringConstructor;
};
spacer: {
type: PropType<VNodeChild>;
default: any;
validator: (val: unknown) => boolean;
};
wrap: {
type: BooleanConstructor;
default: boolean;
};
fill: {
type: BooleanConstructor;
default: boolean;
};
fillRatio: {
type: NumberConstructor;
default: number;
};
size: {
type: PropType<number | ComponentSize | [number, number]>;
validator: (val: unknown) => boolean;
};
};
export declare function useSpace(props: ExtractPropTypes<typeof defaultProps>): {
classes: import("vue").ComputedRef<string[]>;
containerStyle: import("vue").ComputedRef<CSSProperties[]>;
itemStyle: import("vue").ComputedRef<CSSProperties[]>;
};