UNPKG

4.87 kBTypeScriptView Raw
1import { type PropType, type CSSProperties, type ExtractPropTypes } from 'vue';
2export type CellSize = 'normal' | 'large';
3export type CellArrowDirection = 'up' | 'down' | 'left' | 'right';
4export declare const cellSharedProps: {
5 tag: {
6 type: PropType<keyof HTMLElementTagNameMap>;
7 default: keyof HTMLElementTagNameMap;
8 };
9 icon: StringConstructor;
10 size: PropType<CellSize>;
11 title: (NumberConstructor | StringConstructor)[];
12 value: (NumberConstructor | StringConstructor)[];
13 label: (NumberConstructor | StringConstructor)[];
14 center: BooleanConstructor;
15 isLink: BooleanConstructor;
16 border: {
17 type: BooleanConstructor;
18 default: true;
19 };
20 iconPrefix: StringConstructor;
21 valueClass: PropType<unknown>;
22 labelClass: PropType<unknown>;
23 titleClass: PropType<unknown>;
24 titleStyle: PropType<string | CSSProperties>;
25 arrowDirection: PropType<CellArrowDirection>;
26 required: {
27 type: PropType<boolean | "auto">;
28 default: null;
29 };
30 clickable: {
31 type: PropType<boolean | null>;
32 default: null;
33 };
34};
35export declare const cellProps: {
36 tag: {
37 type: PropType<keyof HTMLElementTagNameMap>;
38 default: keyof HTMLElementTagNameMap;
39 };
40 icon: StringConstructor;
41 size: PropType<CellSize>;
42 title: (NumberConstructor | StringConstructor)[];
43 value: (NumberConstructor | StringConstructor)[];
44 label: (NumberConstructor | StringConstructor)[];
45 center: BooleanConstructor;
46 isLink: BooleanConstructor;
47 border: {
48 type: BooleanConstructor;
49 default: true;
50 };
51 iconPrefix: StringConstructor;
52 valueClass: PropType<unknown>;
53 labelClass: PropType<unknown>;
54 titleClass: PropType<unknown>;
55 titleStyle: PropType<string | CSSProperties>;
56 arrowDirection: PropType<CellArrowDirection>;
57 required: {
58 type: PropType<boolean | "auto">;
59 default: null;
60 };
61 clickable: {
62 type: PropType<boolean | null>;
63 default: null;
64 };
65} & {
66 to: PropType<import("vue-router").RouteLocationRaw>;
67 url: StringConstructor;
68 replace: BooleanConstructor;
69};
70export type CellProps = ExtractPropTypes<typeof cellProps>;
71declare const _default: import("vue").DefineComponent<ExtractPropTypes<{
72 tag: {
73 type: PropType<keyof HTMLElementTagNameMap>;
74 default: keyof HTMLElementTagNameMap;
75 };
76 icon: StringConstructor;
77 size: PropType<CellSize>;
78 title: (NumberConstructor | StringConstructor)[];
79 value: (NumberConstructor | StringConstructor)[];
80 label: (NumberConstructor | StringConstructor)[];
81 center: BooleanConstructor;
82 isLink: BooleanConstructor;
83 border: {
84 type: BooleanConstructor;
85 default: true;
86 };
87 iconPrefix: StringConstructor;
88 valueClass: PropType<unknown>;
89 labelClass: PropType<unknown>;
90 titleClass: PropType<unknown>;
91 titleStyle: PropType<string | CSSProperties>;
92 arrowDirection: PropType<CellArrowDirection>;
93 required: {
94 type: PropType<boolean | "auto">;
95 default: null;
96 };
97 clickable: {
98 type: PropType<boolean | null>;
99 default: null;
100 };
101} & {
102 to: PropType<import("vue-router").RouteLocationRaw>;
103 url: StringConstructor;
104 replace: BooleanConstructor;
105}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ExtractPropTypes<{
106 tag: {
107 type: PropType<keyof HTMLElementTagNameMap>;
108 default: keyof HTMLElementTagNameMap;
109 };
110 icon: StringConstructor;
111 size: PropType<CellSize>;
112 title: (NumberConstructor | StringConstructor)[];
113 value: (NumberConstructor | StringConstructor)[];
114 label: (NumberConstructor | StringConstructor)[];
115 center: BooleanConstructor;
116 isLink: BooleanConstructor;
117 border: {
118 type: BooleanConstructor;
119 default: true;
120 };
121 iconPrefix: StringConstructor;
122 valueClass: PropType<unknown>;
123 labelClass: PropType<unknown>;
124 titleClass: PropType<unknown>;
125 titleStyle: PropType<string | CSSProperties>;
126 arrowDirection: PropType<CellArrowDirection>;
127 required: {
128 type: PropType<boolean | "auto">;
129 default: null;
130 };
131 clickable: {
132 type: PropType<boolean | null>;
133 default: null;
134 };
135} & {
136 to: PropType<import("vue-router").RouteLocationRaw>;
137 url: StringConstructor;
138 replace: BooleanConstructor;
139}>> & Readonly<{}>, {
140 replace: boolean;
141 tag: keyof HTMLElementTagNameMap;
142 center: boolean;
143 border: boolean;
144 isLink: boolean;
145 required: boolean | "auto";
146 clickable: boolean | null;
147}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
148export default _default;