t-comm
Version:
专业、稳定、纯粹的工具库
26 lines (25 loc) • 656 B
TypeScript
/**
* 生成 v-console
* 有几种情况:
* 1. 不显示
* 2. 立即显示
* 3. 异步判断后,确定是否显示
* @param params 参数
* @example
*
* ```ts
* genVConsole({
* immediateShow: isShowVConsole === 'true'
* || isTestEnv()
* || noDelay === V_CONSOLE_NO_DELAY.VALUE,
* hide: isShowVConsole === 'false' || !!UserInfo.tipUid(),
* asyncConfirmFunc: checkIsDevList,
* });
* ```
*/
export declare function genVConsole({ immediateShow, hide, vConsoleConfig, asyncConfirmFunc, }: {
immediateShow?: boolean;
hide?: boolean;
vConsoleConfig?: Record<string, any>;
asyncConfirmFunc?: Function;
}): void;