bkui-vue 0.0.2-modal-refactor.1 → 0.0.2-modal-refactor.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs.js +28 -28
- package/dist/index.esm.js +5749 -6066
- package/dist/index.umd.js +28 -28
- package/dist/style.css +1 -1
- package/dist/style.variable.css +1 -1
- package/lib/date-picker/use-calendar.d.ts +24 -0
- package/lib/dialog/dialog.css +10 -10
- package/lib/dialog/dialog.d.ts +2 -2
- package/lib/dialog/dialog.variable.css +10 -10
- package/lib/dialog/index.d.ts +6 -6
- package/lib/info-box/index.js +24 -13
- package/lib/info-box/info-box.css +10 -10
- package/lib/info-box/info-box.less +37 -34
- package/lib/info-box/info-box.variable.css +10 -10
- package/lib/modal/index.d.ts +6 -6
- package/lib/modal/modal.css +10 -10
- package/lib/modal/modal.d.ts +2 -2
- package/lib/modal/modal.variable.css +10 -10
- package/lib/shared/index.d.ts +0 -2
- package/lib/shared/index.js +443 -1137
- package/lib/sideslider/index.d.ts +6 -6
- package/lib/sideslider/sideslider.d.ts +2 -2
- package/package.json +1 -1
- package/lib/shared/mask-manager.d.ts +0 -89
- package/lib/shared/pop-manager.d.ts +0 -41
@@ -13,16 +13,16 @@ declare const BkSideslider: {
|
|
13
13
|
isShow?: boolean;
|
14
14
|
draggable?: boolean;
|
15
15
|
transfer?: string | boolean | HTMLElement;
|
16
|
-
showMask?: boolean;
|
17
|
-
multiInstance?: boolean;
|
18
16
|
direction?: string;
|
19
17
|
renderDirective?: "show" | "if";
|
20
18
|
quickClose?: boolean;
|
21
19
|
scrollable?: boolean;
|
20
|
+
showMask?: boolean;
|
22
21
|
closeIcon?: boolean;
|
23
22
|
escClose?: boolean;
|
24
23
|
fullscreen?: boolean;
|
25
24
|
animateType?: string;
|
25
|
+
multiInstance?: boolean;
|
26
26
|
class?: unknown;
|
27
27
|
style?: unknown;
|
28
28
|
ref?: import("vue").VNodeRef;
|
@@ -200,16 +200,16 @@ declare const BkSideslider: {
|
|
200
200
|
isShow: boolean;
|
201
201
|
draggable: boolean;
|
202
202
|
transfer: string | boolean | HTMLElement;
|
203
|
-
showMask: boolean;
|
204
|
-
multiInstance: boolean;
|
205
203
|
direction: string;
|
206
204
|
renderDirective: "show" | "if";
|
207
205
|
quickClose: boolean;
|
208
206
|
scrollable: boolean;
|
207
|
+
showMask: boolean;
|
209
208
|
closeIcon: boolean;
|
210
209
|
escClose: boolean;
|
211
210
|
fullscreen: boolean;
|
212
211
|
animateType: string;
|
212
|
+
multiInstance: boolean;
|
213
213
|
}, {}, string, {}> & {
|
214
214
|
beforeCreate?: (() => void) | (() => void)[];
|
215
215
|
created?: (() => void) | (() => void)[];
|
@@ -441,15 +441,15 @@ declare const BkSideslider: {
|
|
441
441
|
isShow: boolean;
|
442
442
|
draggable: boolean;
|
443
443
|
transfer: string | boolean | HTMLElement;
|
444
|
-
showMask: boolean;
|
445
|
-
multiInstance: boolean;
|
446
444
|
direction: string;
|
447
445
|
renderDirective: "show" | "if";
|
448
446
|
quickClose: boolean;
|
449
447
|
scrollable: boolean;
|
448
|
+
showMask: boolean;
|
450
449
|
closeIcon: boolean;
|
451
450
|
escClose: boolean;
|
452
451
|
fullscreen: boolean;
|
453
452
|
animateType: string;
|
453
|
+
multiInstance: boolean;
|
454
454
|
}, {}, string, {}> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & import("vue").Plugin<any[]>;
|
455
455
|
export default BkSideslider;
|
@@ -199,15 +199,15 @@ declare const _default: import("vue").DefineComponent<{
|
|
199
199
|
isShow: boolean;
|
200
200
|
draggable: boolean;
|
201
201
|
transfer: string | boolean | HTMLElement;
|
202
|
-
showMask: boolean;
|
203
|
-
multiInstance: boolean;
|
204
202
|
direction: string;
|
205
203
|
renderDirective: "show" | "if";
|
206
204
|
quickClose: boolean;
|
207
205
|
scrollable: boolean;
|
206
|
+
showMask: boolean;
|
208
207
|
closeIcon: boolean;
|
209
208
|
escClose: boolean;
|
210
209
|
fullscreen: boolean;
|
211
210
|
animateType: string;
|
211
|
+
multiInstance: boolean;
|
212
212
|
}, {}>;
|
213
213
|
export default _default;
|
package/package.json
CHANGED
@@ -1,89 +0,0 @@
|
|
1
|
-
import { BKPopIndexManager } from './pop-manager';
|
2
|
-
type BkMaskManagerConfig = {
|
3
|
-
multiInstance?: boolean;
|
4
|
-
maskAttrTag?: string;
|
5
|
-
parentNode?: HTMLElement | Document;
|
6
|
-
maskStyle?: any;
|
7
|
-
onClick?: (e: MouseEvent) => void;
|
8
|
-
popInstance?: BKPopIndexManager;
|
9
|
-
};
|
10
|
-
type MaskConfigStore = {
|
11
|
-
zIndex: number;
|
12
|
-
style: any;
|
13
|
-
uuid?: string;
|
14
|
-
preUID?: string;
|
15
|
-
};
|
16
|
-
export declare class BkMaskManager {
|
17
|
-
/** 遮罩容器 */
|
18
|
-
private mask;
|
19
|
-
/** 遮罩备份容器,用于多个组件实例显示,遮罩只显示最后一个 **/
|
20
|
-
private backupMask;
|
21
|
-
/** 是否允许多个遮罩实例 */
|
22
|
-
private readonly multiInstance;
|
23
|
-
/** 遮罩控制器唯一标识 */
|
24
|
-
private uniqueMaskAttrTag;
|
25
|
-
/** 设置弹出层父级组件,默认是body */
|
26
|
-
private parentNode;
|
27
|
-
/** 遮罩当前显示组件实例 **/
|
28
|
-
private activeInstance;
|
29
|
-
/** 记录已在使用的z-index */
|
30
|
-
private zIndexStore;
|
31
|
-
/** 记录最后一个UUID */
|
32
|
-
private lastUUID;
|
33
|
-
/** 遮罩样式 **/
|
34
|
-
private readonly maskStyle;
|
35
|
-
private isInit;
|
36
|
-
private maskAttrTag;
|
37
|
-
/**
|
38
|
-
* 遮罩管理器
|
39
|
-
*
|
40
|
-
* @param multiInstance 是否允许多实例
|
41
|
-
* @param maskAttrTag 遮罩DOM唯一标志,支持自定义和 auto
|
42
|
-
*/
|
43
|
-
constructor(config?: BkMaskManagerConfig);
|
44
|
-
setOption(option: BkMaskManagerConfig): void;
|
45
|
-
destroyEvent(id: any): void;
|
46
|
-
/**
|
47
|
-
* 显示遮罩
|
48
|
-
* @param content 遮罩内容
|
49
|
-
* @param zIndex z-index
|
50
|
-
* @param showMask 是否显示遮罩
|
51
|
-
* @param appendStyle 追加样式
|
52
|
-
* @param transfer 是否显示将内容加入遮罩下
|
53
|
-
*/
|
54
|
-
show(content?: HTMLElement, zIndex?: number, showMask?: boolean, appendStyle?: {}, uuid?: string | null, transfer?: boolean, onMaskClick?: any, instanceId?: any): void;
|
55
|
-
hide(transfer?: boolean, content?: HTMLElement, uuid?: string): void;
|
56
|
-
storeMaskInsCfg(config: MaskConfigStore): MaskConfigStore;
|
57
|
-
/**
|
58
|
-
* 移除最后一次缓存数据
|
59
|
-
*/
|
60
|
-
popIndexStore(uuid: string): boolean;
|
61
|
-
backupActiveInstance(): void;
|
62
|
-
backupContentElement(content?: HTMLElement): void;
|
63
|
-
getActiveContentInstance(): HTMLElement;
|
64
|
-
removeClickEvent(): void;
|
65
|
-
private initInstance;
|
66
|
-
/**
|
67
|
-
* 初始化当前遮罩管理器
|
68
|
-
* @returns 当前遮罩容器
|
69
|
-
*/
|
70
|
-
private getMask;
|
71
|
-
private catchClickEvent;
|
72
|
-
private handleMaskClick;
|
73
|
-
private getBackupMask;
|
74
|
-
/**
|
75
|
-
* 创建遮罩层DOM
|
76
|
-
* @returns 返回DOM
|
77
|
-
*/
|
78
|
-
private createMask;
|
79
|
-
private setMaskStyle;
|
80
|
-
/**
|
81
|
-
* 根据输入生成唯一遮罩标识
|
82
|
-
* @param tag 输入标识
|
83
|
-
* @returns string 返回唯一标识
|
84
|
-
*/
|
85
|
-
private getMaskAttrTag;
|
86
|
-
private appendContentToMask;
|
87
|
-
}
|
88
|
-
export declare const bKMaskManager: BkMaskManager;
|
89
|
-
export {};
|
@@ -1,41 +0,0 @@
|
|
1
|
-
export declare class BKPopIndexManager {
|
2
|
-
/** 用来缓存弹出层实例 */
|
3
|
-
private readonly uuidAttrName;
|
4
|
-
private clickFn?;
|
5
|
-
private bKMaskManagerInstance;
|
6
|
-
private transfer;
|
7
|
-
private uniqId;
|
8
|
-
constructor(options?: any);
|
9
|
-
get popInstanceList(): any[];
|
10
|
-
set popInstanceList(val: any[]);
|
11
|
-
getParentNode(transfer: any): any;
|
12
|
-
onMaskClick(callFn: (e: MouseEvent) => void, target: HTMLElement): void;
|
13
|
-
/**
|
14
|
-
* 展示弹窗
|
15
|
-
* @param content 弹窗内容
|
16
|
-
* @param showMask 是否显示遮罩
|
17
|
-
* @param appendStyle 追加样式
|
18
|
-
* @param transfer 是否显示在body内(即是否显示在div#app内,默认为false)
|
19
|
-
* @returns
|
20
|
-
*/
|
21
|
-
show(content?: HTMLElement, showMask?: boolean, appendStyle?: {}, transfer?: boolean, zindex?: any, onMaskClick?: any): void;
|
22
|
-
/**
|
23
|
-
* 销毁指定实例
|
24
|
-
* @param content 指定实例内容
|
25
|
-
* @param transfer
|
26
|
-
*/
|
27
|
-
destroy(content?: HTMLElement, transfer?: boolean): void;
|
28
|
-
/**
|
29
|
-
* 关闭最后一个弹窗 如果当前还有父级弹窗,则激活父级弹窗
|
30
|
-
* @param removeLastContent 默认:true 是否自动关闭最后一个弹窗实例 某些场景下,已经主动关闭最后一个弹窗,此处只需要处理其他逻辑
|
31
|
-
*/
|
32
|
-
popHide(removeLastContent?: boolean): void;
|
33
|
-
/**
|
34
|
-
* 关闭指定弹窗
|
35
|
-
* @param content { HTMLElement } 关闭弹窗内容
|
36
|
-
* **/
|
37
|
-
hide(content?: HTMLElement, transfer?: boolean): void;
|
38
|
-
removeLastEvent(): void;
|
39
|
-
private onMaskClickFn;
|
40
|
-
}
|
41
|
-
export declare const bkPopIndexManager: BKPopIndexManager;
|