@bpui/component-utils
v0.1.7
Published
utility of components
Downloads
17
Readme
export module mask {
/**
* @desc: 当前页面的modal层数量.
*/
export function getWidgetLength():number;
/**
* @desc: Modal层当前的zindex.
*/
export function getWidgetZIndex(dataMark:string):number;
/**
* @desc: 显示Modal层.
* @ewruen 返回当前的zindex.
*/
export function showWidget(el:HTMLElement, showMask:boolean, preventEvent:boolean, cbFinish:()=>void):void;
/**
* @desc: 隐藏Modal层.
*/
export function hideWidget(el:HTMLElement, cbFinish:()=>void):void;
}
mask下的api可以处理modal层. 如果div拥有bp-apiClass类, 则会在最上层显示.
style
/* scss */
import '@bpui/component-utils/style';
/* css */
<link href="~@bpui/component-utils/dist/style.css" rel="stylesheet" type="text/css"/>