vh-plugin
Version:
轻量级JS插件包
14 lines (13 loc) • 491 B
TypeScript
/**
* @description: 显示loading遮罩层
* @param {number} opacity - 遮罩层透明度,默认值为0.6,取值范围为0到1之间的小数。
* @param {string} color - loading颜色,默认值为#000000,可以是任何有效的CSS颜色值。
* @return {void}
*/
declare const showLoading: (color?: string, opacity?: number) => void;
/**
* @description: 隐藏loading遮罩层
* @return {void}
*/
declare const hideLoading: () => void;
export { showLoading, hideLoading };