vant
Version:
Mobile UI Components built on Vue
65 lines (64 loc) • 2.27 kB
TypeScript
import { type PropType, type ExtractPropTypes } from 'vue';
import { isMobile } from '../utils';
export type ContactEditInfo = {
tel: string;
name: string;
isDefault?: boolean;
};
export declare const contactEditProps: {
isEdit: BooleanConstructor;
isSaving: BooleanConstructor;
isDeleting: BooleanConstructor;
showSetDefault: BooleanConstructor;
setDefaultLabel: StringConstructor;
contactInfo: {
type: PropType<ContactEditInfo>;
default: () => ContactEditInfo;
};
telValidator: {
type: PropType<(val: string) => boolean>;
default: typeof isMobile;
};
};
export type ContactEditProps = ExtractPropTypes<typeof contactEditProps>;
declare const _default: import("vue").DefineComponent<{
isEdit: BooleanConstructor;
isSaving: BooleanConstructor;
isDeleting: BooleanConstructor;
showSetDefault: BooleanConstructor;
setDefaultLabel: StringConstructor;
contactInfo: {
type: PropType<ContactEditInfo>;
default: () => ContactEditInfo;
};
telValidator: {
type: PropType<(val: string) => boolean>;
default: typeof isMobile;
};
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("save" | "delete" | "changeDefault")[], "save" | "delete" | "changeDefault", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
isEdit: BooleanConstructor;
isSaving: BooleanConstructor;
isDeleting: BooleanConstructor;
showSetDefault: BooleanConstructor;
setDefaultLabel: StringConstructor;
contactInfo: {
type: PropType<ContactEditInfo>;
default: () => ContactEditInfo;
};
telValidator: {
type: PropType<(val: string) => boolean>;
default: typeof isMobile;
};
}>> & {
onSave?: ((...args: any[]) => any) | undefined;
onDelete?: ((...args: any[]) => any) | undefined;
onChangeDefault?: ((...args: any[]) => any) | undefined;
}, {
isSaving: boolean;
isDeleting: boolean;
showSetDefault: boolean;
telValidator: (val: string) => boolean;
isEdit: boolean;
contactInfo: ContactEditInfo;
}, {}>;
export default _default;