t-comm
Version:
专业、稳定、纯粹的工具库
16 lines (15 loc) • 440 B
TypeScript
/**
* 摩斯密码的 Vue mixin,方便实用
* @param {array} pwd 密钥
* @param {Function} cb 回到函数
* @returns 换入内容
* @example
* ```ts
* getMorsePwdMixin([1, 1, 1, 1, 1], function () {
* if (isInIFrame()) return;
* this.onShowLaunchApp();
* }),
* ```
*/
export declare const getMorsePwdMixin: (pwd: number[], cb: Function) => any;
export declare const morsePwdMixin: (pwd: number[], cb: Function) => any;