UNPKG

2.24 kBTypeScriptView Raw
1import { type PropType, type ComputedRef, type InjectionKey, type ExtractPropTypes } from 'vue';
2export type RowSpaces = {
3 left?: number;
4 right: number;
5}[];
6export type VerticalSpaces = {
7 bottom?: number;
8}[];
9export type RowProvide = {
10 spaces: ComputedRef<RowSpaces>;
11 verticalSpaces: ComputedRef<VerticalSpaces>;
12};
13export declare const ROW_KEY: InjectionKey<RowProvide>;
14export type RowAlign = 'top' | 'center' | 'bottom';
15export type RowJustify = 'start' | 'end' | 'center' | 'space-around' | 'space-between';
16export declare const rowProps: {
17 tag: {
18 type: PropType<keyof HTMLElementTagNameMap>;
19 default: keyof HTMLElementTagNameMap;
20 };
21 wrap: {
22 type: BooleanConstructor;
23 default: true;
24 };
25 align: PropType<RowAlign>;
26 gutter: {
27 type: PropType<string | number | (string | number)[]>;
28 default: number;
29 };
30 justify: PropType<RowJustify>;
31};
32export type RowProps = ExtractPropTypes<typeof rowProps>;
33declare const _default: import("vue").DefineComponent<ExtractPropTypes<{
34 tag: {
35 type: PropType<keyof HTMLElementTagNameMap>;
36 default: keyof HTMLElementTagNameMap;
37 };
38 wrap: {
39 type: BooleanConstructor;
40 default: true;
41 };
42 align: PropType<RowAlign>;
43 gutter: {
44 type: PropType<string | number | (string | number)[]>;
45 default: number;
46 };
47 justify: PropType<RowJustify>;
48}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ExtractPropTypes<{
49 tag: {
50 type: PropType<keyof HTMLElementTagNameMap>;
51 default: keyof HTMLElementTagNameMap;
52 };
53 wrap: {
54 type: BooleanConstructor;
55 default: true;
56 };
57 align: PropType<RowAlign>;
58 gutter: {
59 type: PropType<string | number | (string | number)[]>;
60 default: number;
61 };
62 justify: PropType<RowJustify>;
63}>> & Readonly<{}>, {
64 tag: keyof HTMLElementTagNameMap;
65 wrap: boolean;
66 gutter: string | number | (string | number)[];
67}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
68export default _default;