asp-smart-ui-plus-test
Version:
A Component Library for Vue 3
19 lines (18 loc) • 656 B
TypeScript
interface SendCodeParams {
initialCountDown?: number;
channelId?: string;
activityId?: string;
SUCCESS_CODE?: string;
getphone: (phone: string) => string;
sendSmsCode: (params: any) => Promise<any>;
}
export declare function useSendCode({ initialCountDown, // 初始倒计时时间,默认60秒
channelId, // 渠道id,默认为空
activityId, // 活动id,默认为空
SUCCESS_CODE, // 成功的状态码,默认为'0000'
getphone, // sm2加密手机号的函数
sendSmsCode, }: SendCodeParams): {
remainingSeconds: import("vue").Ref<number>;
getCode: (phoneNumber: string) => Promise<false | undefined>;
};
export {};