1 | import { type PropType, type ExtractPropTypes } from 'vue';
|
2 | import { isMobile } from '../utils';
|
3 | export type ContactEditInfo = {
|
4 | tel: string;
|
5 | name: string;
|
6 | isDefault?: boolean;
|
7 | };
|
8 | export declare const contactEditProps: {
|
9 | isEdit: BooleanConstructor;
|
10 | isSaving: BooleanConstructor;
|
11 | isDeleting: BooleanConstructor;
|
12 | showSetDefault: BooleanConstructor;
|
13 | setDefaultLabel: StringConstructor;
|
14 | contactInfo: {
|
15 | type: PropType<ContactEditInfo>;
|
16 | default: () => ContactEditInfo;
|
17 | };
|
18 | telValidator: {
|
19 | type: PropType<(val: string) => boolean>;
|
20 | default: typeof isMobile;
|
21 | };
|
22 | };
|
23 | export type ContactEditProps = ExtractPropTypes<typeof contactEditProps>;
|
24 | declare const _default: import("vue").DefineComponent<ExtractPropTypes<{
|
25 | isEdit: BooleanConstructor;
|
26 | isSaving: BooleanConstructor;
|
27 | isDeleting: BooleanConstructor;
|
28 | showSetDefault: BooleanConstructor;
|
29 | setDefaultLabel: StringConstructor;
|
30 | contactInfo: {
|
31 | type: PropType<ContactEditInfo>;
|
32 | default: () => ContactEditInfo;
|
33 | };
|
34 | telValidator: {
|
35 | type: PropType<(val: string) => boolean>;
|
36 | default: typeof isMobile;
|
37 | };
|
38 | }>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("delete" | "save" | "changeDefault")[], "delete" | "save" | "changeDefault", import("vue").PublicProps, Readonly<ExtractPropTypes<{
|
39 | isEdit: BooleanConstructor;
|
40 | isSaving: BooleanConstructor;
|
41 | isDeleting: BooleanConstructor;
|
42 | showSetDefault: BooleanConstructor;
|
43 | setDefaultLabel: StringConstructor;
|
44 | contactInfo: {
|
45 | type: PropType<ContactEditInfo>;
|
46 | default: () => ContactEditInfo;
|
47 | };
|
48 | telValidator: {
|
49 | type: PropType<(val: string) => boolean>;
|
50 | default: typeof isMobile;
|
51 | };
|
52 | }>> & Readonly<{
|
53 | onDelete?: ((...args: any[]) => any) | undefined;
|
54 | onSave?: ((...args: any[]) => any) | undefined;
|
55 | onChangeDefault?: ((...args: any[]) => any) | undefined;
|
56 | }>, {
|
57 | isSaving: boolean;
|
58 | isDeleting: boolean;
|
59 | showSetDefault: boolean;
|
60 | telValidator: (val: string) => boolean;
|
61 | isEdit: boolean;
|
62 | contactInfo: ContactEditInfo;
|
63 | }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
64 | export default _default;
|