UNPKG

4.58 kBTypeScriptView Raw
1import { type PropType, type ExtractPropTypes } from 'vue';
2import type { AreaList } from './types';
3export declare const areaProps: import("../utils").Writeable<Pick<{
4 loading: BooleanConstructor;
5 readonly: BooleanConstructor;
6 allowHtml: BooleanConstructor;
7 optionHeight: {
8 type: (NumberConstructor | StringConstructor)[];
9 default: number;
10 };
11 showToolbar: {
12 type: BooleanConstructor;
13 default: true;
14 };
15 swipeDuration: {
16 type: (NumberConstructor | StringConstructor)[];
17 default: number;
18 };
19 visibleOptionNum: {
20 type: (NumberConstructor | StringConstructor)[];
21 default: number;
22 };
23} & {
24 title: StringConstructor;
25 cancelButtonText: StringConstructor;
26 confirmButtonText: StringConstructor;
27}, "title" | "readonly" | "loading" | "optionHeight" | "swipeDuration" | "visibleOptionNum" | "cancelButtonText" | "confirmButtonText">> & {
28 modelValue: StringConstructor;
29 columnsNum: {
30 type: (NumberConstructor | StringConstructor)[];
31 default: number;
32 };
33 columnsPlaceholder: {
34 type: PropType<string[]>;
35 default: () => never[];
36 };
37 areaList: {
38 type: PropType<AreaList>;
39 default: () => {};
40 };
41};
42export type AreaProps = ExtractPropTypes<typeof areaProps>;
43declare const _default: import("vue").DefineComponent<ExtractPropTypes<import("../utils").Writeable<Pick<{
44 loading: BooleanConstructor;
45 readonly: BooleanConstructor;
46 allowHtml: BooleanConstructor;
47 optionHeight: {
48 type: (NumberConstructor | StringConstructor)[];
49 default: number;
50 };
51 showToolbar: {
52 type: BooleanConstructor;
53 default: true;
54 };
55 swipeDuration: {
56 type: (NumberConstructor | StringConstructor)[];
57 default: number;
58 };
59 visibleOptionNum: {
60 type: (NumberConstructor | StringConstructor)[];
61 default: number;
62 };
63} & {
64 title: StringConstructor;
65 cancelButtonText: StringConstructor;
66 confirmButtonText: StringConstructor;
67}, "title" | "readonly" | "loading" | "optionHeight" | "swipeDuration" | "visibleOptionNum" | "cancelButtonText" | "confirmButtonText">> & {
68 modelValue: StringConstructor;
69 columnsNum: {
70 type: (NumberConstructor | StringConstructor)[];
71 default: number;
72 };
73 columnsPlaceholder: {
74 type: PropType<string[]>;
75 default: () => never[];
76 };
77 areaList: {
78 type: PropType<AreaList>;
79 default: () => {};
80 };
81}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "cancel" | "change" | "confirm")[], "update:modelValue" | "cancel" | "change" | "confirm", import("vue").PublicProps, Readonly<ExtractPropTypes<import("../utils").Writeable<Pick<{
82 loading: BooleanConstructor;
83 readonly: BooleanConstructor;
84 allowHtml: BooleanConstructor;
85 optionHeight: {
86 type: (NumberConstructor | StringConstructor)[];
87 default: number;
88 };
89 showToolbar: {
90 type: BooleanConstructor;
91 default: true;
92 };
93 swipeDuration: {
94 type: (NumberConstructor | StringConstructor)[];
95 default: number;
96 };
97 visibleOptionNum: {
98 type: (NumberConstructor | StringConstructor)[];
99 default: number;
100 };
101} & {
102 title: StringConstructor;
103 cancelButtonText: StringConstructor;
104 confirmButtonText: StringConstructor;
105}, "title" | "readonly" | "loading" | "optionHeight" | "swipeDuration" | "visibleOptionNum" | "cancelButtonText" | "confirmButtonText">> & {
106 modelValue: StringConstructor;
107 columnsNum: {
108 type: (NumberConstructor | StringConstructor)[];
109 default: number;
110 };
111 columnsPlaceholder: {
112 type: PropType<string[]>;
113 default: () => never[];
114 };
115 areaList: {
116 type: PropType<AreaList>;
117 default: () => {};
118 };
119}>> & Readonly<{
120 onChange?: ((...args: any[]) => any) | undefined;
121 "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
122 onCancel?: ((...args: any[]) => any) | undefined;
123 onConfirm?: ((...args: any[]) => any) | undefined;
124}>, {
125 readonly: boolean;
126 loading: boolean;
127 optionHeight: string | number;
128 swipeDuration: string | number;
129 visibleOptionNum: string | number;
130 columnsNum: string | number;
131 columnsPlaceholder: string[];
132 areaList: AreaList;
133}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
134export default _default;
135
\No newline at end of file