UNPKG

5.71 kBTypeScriptView Raw
1import { type PropType, type ExtractPropTypes } from 'vue';
2import { isMobile } from '../utils';
3import { AreaList } from '../area';
4import type { AddressEditInfo, AddressEditSearchItem } from './types';
5export declare const addressEditProps: {
6 areaList: PropType<AreaList>;
7 isSaving: BooleanConstructor;
8 isDeleting: BooleanConstructor;
9 validator: PropType<(key: string, value: string) => string | undefined>;
10 showArea: {
11 type: BooleanConstructor;
12 default: true;
13 };
14 showDetail: {
15 type: BooleanConstructor;
16 default: true;
17 };
18 showDelete: BooleanConstructor;
19 disableArea: BooleanConstructor;
20 searchResult: PropType<AddressEditSearchItem[]>;
21 telMaxlength: (NumberConstructor | StringConstructor)[];
22 showSetDefault: BooleanConstructor;
23 saveButtonText: StringConstructor;
24 areaPlaceholder: StringConstructor;
25 deleteButtonText: StringConstructor;
26 showSearchResult: BooleanConstructor;
27 detailRows: {
28 type: (NumberConstructor | StringConstructor)[];
29 default: number;
30 };
31 detailMaxlength: {
32 type: (NumberConstructor | StringConstructor)[];
33 default: number;
34 };
35 areaColumnsPlaceholder: {
36 type: PropType<string[]>;
37 default: () => never[];
38 };
39 addressInfo: {
40 type: PropType<Partial<AddressEditInfo>>;
41 default: () => AddressEditInfo;
42 };
43 telValidator: {
44 type: PropType<(val: string) => boolean>;
45 default: typeof isMobile;
46 };
47};
48export type AddressEditProps = ExtractPropTypes<typeof addressEditProps>;
49declare const _default: import("vue").DefineComponent<ExtractPropTypes<{
50 areaList: PropType<AreaList>;
51 isSaving: BooleanConstructor;
52 isDeleting: BooleanConstructor;
53 validator: PropType<(key: string, value: string) => string | undefined>;
54 showArea: {
55 type: BooleanConstructor;
56 default: true;
57 };
58 showDetail: {
59 type: BooleanConstructor;
60 default: true;
61 };
62 showDelete: BooleanConstructor;
63 disableArea: BooleanConstructor;
64 searchResult: PropType<AddressEditSearchItem[]>;
65 telMaxlength: (NumberConstructor | StringConstructor)[];
66 showSetDefault: BooleanConstructor;
67 saveButtonText: StringConstructor;
68 areaPlaceholder: StringConstructor;
69 deleteButtonText: StringConstructor;
70 showSearchResult: BooleanConstructor;
71 detailRows: {
72 type: (NumberConstructor | StringConstructor)[];
73 default: number;
74 };
75 detailMaxlength: {
76 type: (NumberConstructor | StringConstructor)[];
77 default: number;
78 };
79 areaColumnsPlaceholder: {
80 type: PropType<string[]>;
81 default: () => never[];
82 };
83 addressInfo: {
84 type: PropType<Partial<AddressEditInfo>>;
85 default: () => AddressEditInfo;
86 };
87 telValidator: {
88 type: PropType<(val: string) => boolean>;
89 default: typeof isMobile;
90 };
91}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("delete" | "focus" | "change" | "selectSearch" | "save" | "clickArea" | "changeArea" | "changeDetail" | "changeDefault")[], "delete" | "focus" | "change" | "selectSearch" | "save" | "clickArea" | "changeArea" | "changeDetail" | "changeDefault", import("vue").PublicProps, Readonly<ExtractPropTypes<{
92 areaList: PropType<AreaList>;
93 isSaving: BooleanConstructor;
94 isDeleting: BooleanConstructor;
95 validator: PropType<(key: string, value: string) => string | undefined>;
96 showArea: {
97 type: BooleanConstructor;
98 default: true;
99 };
100 showDetail: {
101 type: BooleanConstructor;
102 default: true;
103 };
104 showDelete: BooleanConstructor;
105 disableArea: BooleanConstructor;
106 searchResult: PropType<AddressEditSearchItem[]>;
107 telMaxlength: (NumberConstructor | StringConstructor)[];
108 showSetDefault: BooleanConstructor;
109 saveButtonText: StringConstructor;
110 areaPlaceholder: StringConstructor;
111 deleteButtonText: StringConstructor;
112 showSearchResult: BooleanConstructor;
113 detailRows: {
114 type: (NumberConstructor | StringConstructor)[];
115 default: number;
116 };
117 detailMaxlength: {
118 type: (NumberConstructor | StringConstructor)[];
119 default: number;
120 };
121 areaColumnsPlaceholder: {
122 type: PropType<string[]>;
123 default: () => never[];
124 };
125 addressInfo: {
126 type: PropType<Partial<AddressEditInfo>>;
127 default: () => AddressEditInfo;
128 };
129 telValidator: {
130 type: PropType<(val: string) => boolean>;
131 default: typeof isMobile;
132 };
133}>> & Readonly<{
134 onFocus?: ((...args: any[]) => any) | undefined;
135 onChange?: ((...args: any[]) => any) | undefined;
136 onSelectSearch?: ((...args: any[]) => any) | undefined;
137 onDelete?: ((...args: any[]) => any) | undefined;
138 onSave?: ((...args: any[]) => any) | undefined;
139 onClickArea?: ((...args: any[]) => any) | undefined;
140 onChangeArea?: ((...args: any[]) => any) | undefined;
141 onChangeDetail?: ((...args: any[]) => any) | undefined;
142 onChangeDefault?: ((...args: any[]) => any) | undefined;
143}>, {
144 isSaving: boolean;
145 isDeleting: boolean;
146 showArea: boolean;
147 showDetail: boolean;
148 showDelete: boolean;
149 disableArea: boolean;
150 showSetDefault: boolean;
151 showSearchResult: boolean;
152 detailRows: string | number;
153 detailMaxlength: string | number;
154 areaColumnsPlaceholder: string[];
155 addressInfo: Partial<AddressEditInfo>;
156 telValidator: (val: string) => boolean;
157}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
158export default _default;