UNPKG

5.84 kBTypeScriptView Raw
1import { type ExtractPropTypes } from 'vue';
2export type ActionSheetAction = {
3 icon?: string;
4 name?: string;
5 color?: string;
6 subname?: string;
7 loading?: boolean;
8 disabled?: boolean;
9 callback?: (action: ActionSheetAction) => void;
10 className?: unknown;
11};
12export declare const actionSheetProps: {
13 show: BooleanConstructor;
14 zIndex: (NumberConstructor | StringConstructor)[];
15 overlay: {
16 type: BooleanConstructor;
17 default: true;
18 };
19 duration: (NumberConstructor | StringConstructor)[];
20 teleport: import("vue").PropType<import("vue").TeleportProps["to"]>;
21 lockScroll: {
22 type: BooleanConstructor;
23 default: true;
24 };
25 lazyRender: {
26 type: BooleanConstructor;
27 default: true;
28 };
29 beforeClose: import("vue").PropType<import("../utils").Interceptor>;
30 overlayStyle: import("vue").PropType<import("vue").CSSProperties>;
31 overlayClass: import("vue").PropType<unknown>;
32 transitionAppear: BooleanConstructor;
33 closeOnClickOverlay: {
34 type: BooleanConstructor;
35 default: true;
36 };
37} & {
38 title: StringConstructor;
39 round: {
40 type: BooleanConstructor;
41 default: true;
42 };
43 actions: {
44 type: import("vue").PropType<ActionSheetAction[]>;
45 default: () => never[];
46 };
47 closeIcon: {
48 type: import("vue").PropType<string>;
49 default: string;
50 };
51 closeable: {
52 type: BooleanConstructor;
53 default: true;
54 };
55 cancelText: StringConstructor;
56 description: StringConstructor;
57 closeOnPopstate: {
58 type: BooleanConstructor;
59 default: true;
60 };
61 closeOnClickAction: BooleanConstructor;
62 safeAreaInsetBottom: {
63 type: BooleanConstructor;
64 default: true;
65 };
66};
67export type ActionSheetProps = ExtractPropTypes<typeof actionSheetProps>;
68declare const _default: import("vue").DefineComponent<ExtractPropTypes<{
69 show: BooleanConstructor;
70 zIndex: (NumberConstructor | StringConstructor)[];
71 overlay: {
72 type: BooleanConstructor;
73 default: true;
74 };
75 duration: (NumberConstructor | StringConstructor)[];
76 teleport: import("vue").PropType<import("vue").TeleportProps["to"]>;
77 lockScroll: {
78 type: BooleanConstructor;
79 default: true;
80 };
81 lazyRender: {
82 type: BooleanConstructor;
83 default: true;
84 };
85 beforeClose: import("vue").PropType<import("../utils").Interceptor>;
86 overlayStyle: import("vue").PropType<import("vue").CSSProperties>;
87 overlayClass: import("vue").PropType<unknown>;
88 transitionAppear: BooleanConstructor;
89 closeOnClickOverlay: {
90 type: BooleanConstructor;
91 default: true;
92 };
93} & {
94 title: StringConstructor;
95 round: {
96 type: BooleanConstructor;
97 default: true;
98 };
99 actions: {
100 type: import("vue").PropType<ActionSheetAction[]>;
101 default: () => never[];
102 };
103 closeIcon: {
104 type: import("vue").PropType<string>;
105 default: string;
106 };
107 closeable: {
108 type: BooleanConstructor;
109 default: true;
110 };
111 cancelText: StringConstructor;
112 description: StringConstructor;
113 closeOnPopstate: {
114 type: BooleanConstructor;
115 default: true;
116 };
117 closeOnClickAction: BooleanConstructor;
118 safeAreaInsetBottom: {
119 type: BooleanConstructor;
120 default: true;
121 };
122}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("select" | "cancel" | "update:show")[], "select" | "cancel" | "update:show", import("vue").PublicProps, Readonly<ExtractPropTypes<{
123 show: BooleanConstructor;
124 zIndex: (NumberConstructor | StringConstructor)[];
125 overlay: {
126 type: BooleanConstructor;
127 default: true;
128 };
129 duration: (NumberConstructor | StringConstructor)[];
130 teleport: import("vue").PropType<import("vue").TeleportProps["to"]>;
131 lockScroll: {
132 type: BooleanConstructor;
133 default: true;
134 };
135 lazyRender: {
136 type: BooleanConstructor;
137 default: true;
138 };
139 beforeClose: import("vue").PropType<import("../utils").Interceptor>;
140 overlayStyle: import("vue").PropType<import("vue").CSSProperties>;
141 overlayClass: import("vue").PropType<unknown>;
142 transitionAppear: BooleanConstructor;
143 closeOnClickOverlay: {
144 type: BooleanConstructor;
145 default: true;
146 };
147} & {
148 title: StringConstructor;
149 round: {
150 type: BooleanConstructor;
151 default: true;
152 };
153 actions: {
154 type: import("vue").PropType<ActionSheetAction[]>;
155 default: () => never[];
156 };
157 closeIcon: {
158 type: import("vue").PropType<string>;
159 default: string;
160 };
161 closeable: {
162 type: BooleanConstructor;
163 default: true;
164 };
165 cancelText: StringConstructor;
166 description: StringConstructor;
167 closeOnPopstate: {
168 type: BooleanConstructor;
169 default: true;
170 };
171 closeOnClickAction: BooleanConstructor;
172 safeAreaInsetBottom: {
173 type: BooleanConstructor;
174 default: true;
175 };
176}>> & Readonly<{
177 onSelect?: ((...args: any[]) => any) | undefined;
178 "onUpdate:show"?: ((...args: any[]) => any) | undefined;
179 onCancel?: ((...args: any[]) => any) | undefined;
180}>, {
181 round: boolean;
182 overlay: boolean;
183 show: boolean;
184 safeAreaInsetBottom: boolean;
185 lockScroll: boolean;
186 lazyRender: boolean;
187 transitionAppear: boolean;
188 closeOnClickOverlay: boolean;
189 closeIcon: string;
190 closeable: boolean;
191 closeOnPopstate: boolean;
192 actions: ActionSheetAction[];
193 closeOnClickAction: boolean;
194}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
195export default _default;
196
\No newline at end of file