@whitesev/pops 2.1.7 → 2.1.9
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.amd.js +398 -111
- package/dist/index.amd.js.map +1 -1
- package/dist/index.cjs.js +398 -111
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +398 -111
- package/dist/index.esm.js.map +1 -1
- package/dist/index.iife.js +398 -111
- package/dist/index.iife.js.map +1 -1
- package/dist/index.system.js +397 -110
- package/dist/index.system.js.map +1 -1
- package/dist/index.umd.js +398 -111
- package/dist/index.umd.js.map +1 -1
- package/dist/types/src/Pops.d.ts +1 -0
- package/dist/types/src/components/panel/handlerComponents.d.ts +5 -1
- package/dist/types/src/components/panel/types/components-button.d.ts +3 -1
- package/dist/types/src/components/panel/types/components-deepMenu.d.ts +3 -1
- package/dist/types/src/components/panel/types/components-forms.d.ts +3 -1
- package/dist/types/src/components/panel/types/components-input.d.ts +3 -1
- package/dist/types/src/components/panel/types/components-select.d.ts +3 -1
- package/dist/types/src/components/panel/types/components-selectMultiple.d.ts +3 -1
- package/dist/types/src/components/panel/types/components-slider.d.ts +3 -1
- package/dist/types/src/components/panel/types/components-switch.d.ts +3 -1
- package/dist/types/src/components/panel/types/components-textarea.d.ts +3 -1
- package/dist/types/src/components/panel/types/index.d.ts +44 -19
- package/dist/types/src/handler/PopsHandler.d.ts +6 -3
- package/package.json +5 -5
- package/src/Pops.ts +1 -1
- package/src/components/alert/index.ts +30 -9
- package/src/components/confirm/index.ts +30 -9
- package/src/components/drawer/index.ts +30 -9
- package/src/components/folder/index.ts +29 -8
- package/src/components/iframe/index.ts +25 -7
- package/src/components/loading/index.ts +3 -1
- package/src/components/panel/config.ts +46 -0
- package/src/components/panel/handlerComponents.ts +92 -33
- package/src/components/panel/index.css +132 -73
- package/src/components/panel/index.ts +33 -11
- package/src/components/panel/types/components-button.ts +7 -3
- package/src/components/panel/types/components-deepMenu.ts +7 -3
- package/src/components/panel/types/components-forms.ts +7 -3
- package/src/components/panel/types/components-input.ts +7 -3
- package/src/components/panel/types/components-select.ts +7 -3
- package/src/components/panel/types/components-selectMultiple.ts +7 -3
- package/src/components/panel/types/components-slider.ts +7 -3
- package/src/components/panel/types/components-switch.ts +7 -3
- package/src/components/panel/types/components-textarea.ts +7 -3
- package/src/components/panel/types/index.ts +59 -27
- package/src/components/prompt/index.ts +29 -8
- package/src/components/rightClickMenu/index.ts +16 -4
- package/src/components/searchSuggestion/index.ts +12 -3
- package/src/components/tooltip/index.ts +16 -4
- package/src/handler/PopsHandler.ts +42 -11
package/dist/types/src/Pops.d.ts
CHANGED
|
@@ -209,6 +209,7 @@ declare class Pops {
|
|
|
209
209
|
/** pops.panel中用于处理各个类型的工具 */
|
|
210
210
|
PanelHandlerComponents: () => {
|
|
211
211
|
asideULElement: HTMLUListElement;
|
|
212
|
+
asideBottomULElement: HTMLUListElement;
|
|
212
213
|
sectionContainerHeaderULElement: HTMLUListElement;
|
|
213
214
|
sectionContainerULElement: HTMLUListElement;
|
|
214
215
|
$el: {
|
|
@@ -15,9 +15,13 @@ import type { PopsPanelTextAreaDetails } from "./types/components-textarea";
|
|
|
15
15
|
*/
|
|
16
16
|
export declare const PanelHandlerComponents: () => {
|
|
17
17
|
/**
|
|
18
|
-
*
|
|
18
|
+
* 左侧上方的的ul容器
|
|
19
19
|
*/
|
|
20
20
|
asideULElement: HTMLUListElement;
|
|
21
|
+
/**
|
|
22
|
+
* 左侧下方的ul容器
|
|
23
|
+
*/
|
|
24
|
+
asideBottomULElement: HTMLUListElement;
|
|
21
25
|
/**
|
|
22
26
|
* 右侧主内容的顶部文字ul容器
|
|
23
27
|
*/
|
|
@@ -35,37 +35,50 @@ export interface PopsPanelContentConfig {
|
|
|
35
35
|
*/
|
|
36
36
|
id: string;
|
|
37
37
|
/**
|
|
38
|
-
*
|
|
38
|
+
* (可选)元素的className,值为空的话就不设置
|
|
39
|
+
* @default ""
|
|
39
40
|
*/
|
|
40
41
|
className?: string | string[];
|
|
41
42
|
/**
|
|
42
43
|
* 左侧的标题,可以是html格式
|
|
43
44
|
*/
|
|
44
|
-
title: string;
|
|
45
|
+
title: string | (() => string);
|
|
45
46
|
/**
|
|
46
|
-
*
|
|
47
|
+
* (可选)中间顶部的标题,如果为空,则使用title的值代替
|
|
48
|
+
* @default title
|
|
47
49
|
*/
|
|
48
|
-
headerTitle?: string;
|
|
50
|
+
headerTitle?: string | (() => string);
|
|
49
51
|
/**
|
|
50
|
-
*
|
|
52
|
+
* (可选)是否是默认的,指打开弹窗的先显示出来的内容,默认为首位第一个项,如果多个配置都设置了isDefault的值为true,那么只有第一个值生效
|
|
53
|
+
* @default false
|
|
51
54
|
*/
|
|
52
|
-
|
|
55
|
+
isDefault?: boolean | (() => boolean);
|
|
53
56
|
/**
|
|
54
|
-
*
|
|
57
|
+
* (可选)是否是位于底部的
|
|
58
|
+
*
|
|
59
|
+
* 自上而下排序
|
|
60
|
+
* @default false
|
|
55
61
|
*/
|
|
56
|
-
|
|
62
|
+
isBottom?: boolean | (() => boolean);
|
|
63
|
+
/**
|
|
64
|
+
* (可选)是否禁用左侧项的hover的CSS样式
|
|
65
|
+
*/
|
|
66
|
+
disableAsideItemHoverCSS?: boolean | (() => boolean);
|
|
57
67
|
/**
|
|
58
68
|
* (可选)是否自动滚动到默认的项
|
|
69
|
+
* @default false
|
|
59
70
|
*/
|
|
60
71
|
scrollToDefaultView?: boolean;
|
|
61
72
|
/**
|
|
62
|
-
*
|
|
73
|
+
* (可选)自定义元素属性.setAttribute、.getAttribute
|
|
63
74
|
*/
|
|
64
75
|
attributes?: {
|
|
65
76
|
[key: string]: any;
|
|
66
|
-
}
|
|
77
|
+
} | {
|
|
78
|
+
[key: string]: any;
|
|
79
|
+
}[];
|
|
67
80
|
/**
|
|
68
|
-
*
|
|
81
|
+
* (可选)自定义元素内部的属性值
|
|
69
82
|
*/
|
|
70
83
|
props?: {
|
|
71
84
|
[K in keyof HTMLElement]?: HTMLElement[K];
|
|
@@ -74,16 +87,26 @@ export interface PopsPanelContentConfig {
|
|
|
74
87
|
* 子配置
|
|
75
88
|
*/
|
|
76
89
|
forms: (PopsPanelFormsDetails | PopsPanelFormsTotalDetails)[];
|
|
90
|
+
/**
|
|
91
|
+
* 左侧容器的点击回调(点击后第一个触发该回调)
|
|
92
|
+
* @returns
|
|
93
|
+
* + false 阻止默认行为
|
|
94
|
+
*/
|
|
95
|
+
clickFirstCallback?: (event: MouseEvent | PointerEvent, rightHeaderElement: HTMLUListElement, rightContainerElement: HTMLUListElement) => void | boolean | Promise<void | boolean>;
|
|
77
96
|
/**
|
|
78
97
|
* 左侧容器的点击回调
|
|
98
|
+
* @returns
|
|
99
|
+
* + false 阻止默认进入菜单详情
|
|
100
|
+
*/
|
|
101
|
+
clickCallback?: (event: MouseEvent | PointerEvent, rightHeaderElement: HTMLUListElement, rightContainerElement: HTMLUListElement) => void | boolean | Promise<void | boolean>;
|
|
102
|
+
/**
|
|
103
|
+
* 左侧项添加到panel后的回调
|
|
79
104
|
*/
|
|
80
|
-
|
|
105
|
+
afterRender?: (
|
|
81
106
|
/**
|
|
82
|
-
*
|
|
83
|
-
* @param rightHeaderElement
|
|
84
|
-
* @param rightContainerElement
|
|
107
|
+
* 配置
|
|
85
108
|
*/
|
|
86
|
-
|
|
109
|
+
data: {
|
|
87
110
|
/** 容器配置 */
|
|
88
111
|
asideConfig: PopsPanelContentConfig;
|
|
89
112
|
/** 左侧容器的元素 */
|
|
@@ -99,16 +122,18 @@ export interface PopsPanelDetails extends PopsTitleConfig, PopsDragConfig, PopsC
|
|
|
99
122
|
*/
|
|
100
123
|
content: PopsPanelContentConfig[];
|
|
101
124
|
/**
|
|
102
|
-
*
|
|
125
|
+
* 右上角的按钮配置
|
|
103
126
|
*/
|
|
104
127
|
btn?: {
|
|
105
128
|
/**
|
|
106
|
-
*
|
|
129
|
+
* 关闭按钮
|
|
107
130
|
*/
|
|
108
131
|
close?: PopsHeaderCloseButtonDetails;
|
|
109
132
|
};
|
|
110
133
|
/**
|
|
111
|
-
* 移动端适配的的className
|
|
134
|
+
* 移动端适配的的className
|
|
135
|
+
*
|
|
136
|
+
* @default "pops-panel-is-mobile"
|
|
112
137
|
*/
|
|
113
138
|
mobileClassName?: string;
|
|
114
139
|
/**
|
|
@@ -23,10 +23,13 @@ export declare const PopsHandler: {
|
|
|
23
23
|
};
|
|
24
24
|
/**
|
|
25
25
|
* 处理初始化
|
|
26
|
-
* @param $
|
|
27
|
-
* @param
|
|
26
|
+
* @param $styleParent style元素的父元素
|
|
27
|
+
* @param css 添加进ShadowRoot的CSS
|
|
28
28
|
*/
|
|
29
|
-
handleInit($
|
|
29
|
+
handleInit($styleParent?: ShadowRoot | HTMLElement, css?: string | string[] | {
|
|
30
|
+
name?: string;
|
|
31
|
+
css: string;
|
|
32
|
+
}[]): void;
|
|
30
33
|
/**
|
|
31
34
|
* 处理遮罩层
|
|
32
35
|
*
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://json.schemastore.org/package.json",
|
|
3
3
|
"name": "@whitesev/pops",
|
|
4
|
-
"version": "2.1.
|
|
4
|
+
"version": "2.1.9",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"description": "弹窗库",
|
|
7
7
|
"main": "dist/index.cjs.js",
|
|
@@ -50,9 +50,9 @@
|
|
|
50
50
|
"typescript": "^5.8.3"
|
|
51
51
|
},
|
|
52
52
|
"scripts": {
|
|
53
|
-
"dev": "rollup
|
|
54
|
-
"build": "rollup
|
|
55
|
-
"build:all": "rollup
|
|
56
|
-
"build:all-new": "rollup
|
|
53
|
+
"dev": "npx rollup -c -w",
|
|
54
|
+
"build": "npx rollup -c",
|
|
55
|
+
"build:all": "npx rollup -c",
|
|
56
|
+
"build:all-new": "npx rollup -c"
|
|
57
57
|
}
|
|
58
58
|
}
|
package/src/Pops.ts
CHANGED
|
@@ -21,13 +21,34 @@ export const PopsAlert = {
|
|
|
21
21
|
|
|
22
22
|
const { $shadowContainer, $shadowRoot } = PopsHandler.handlerShadow(config);
|
|
23
23
|
PopsHandler.handleInit($shadowRoot, [
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
24
|
+
{
|
|
25
|
+
name: "index",
|
|
26
|
+
css: PopsCSS.index,
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
name: "ninePalaceGridPosition",
|
|
30
|
+
css: PopsCSS.ninePalaceGridPosition,
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
name: "scrollbar",
|
|
34
|
+
css: PopsCSS.scrollbar,
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
name: "button",
|
|
38
|
+
css: PopsCSS.button,
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
name: "anim",
|
|
42
|
+
css: PopsCSS.anim,
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
name: "common",
|
|
46
|
+
css: PopsCSS.common,
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
name: "alertCSS",
|
|
50
|
+
css: PopsCSS.alertCSS,
|
|
51
|
+
},
|
|
31
52
|
]);
|
|
32
53
|
|
|
33
54
|
// 先把z-index提取出来
|
|
@@ -53,12 +74,12 @@ export const PopsAlert = {
|
|
|
53
74
|
};${headerStyle}">${
|
|
54
75
|
config.title.html
|
|
55
76
|
? config.title.text
|
|
56
|
-
: `<p pops style="${headerPStyle}">${config.title.text}</p>`
|
|
77
|
+
: `<p pops class="pops-${PopsType}-title-text" style="${headerPStyle}">${config.title.text}</p>`
|
|
57
78
|
}${headerBtnHTML}</div>
|
|
58
79
|
<div class="pops-content pops-${PopsType}-content" style="${contentStyle}">${
|
|
59
80
|
config.content.html
|
|
60
81
|
? config.content.text
|
|
61
|
-
: `<p pops style="${contentPStyle}">${config.content.text}</p>`
|
|
82
|
+
: `<p pops class="pops-${PopsType}-content-text" style="${contentPStyle}">${config.content.text}</p>`
|
|
62
83
|
}</div>${bottomBtnHTML}`,
|
|
63
84
|
bottomBtnHTML,
|
|
64
85
|
zIndex
|
|
@@ -20,13 +20,34 @@ export const PopsConfirm = {
|
|
|
20
20
|
|
|
21
21
|
const { $shadowContainer, $shadowRoot } = PopsHandler.handlerShadow(config);
|
|
22
22
|
PopsHandler.handleInit($shadowRoot, [
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
23
|
+
{
|
|
24
|
+
name: "index",
|
|
25
|
+
css: PopsCSS.index,
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
name: "ninePalaceGridPosition",
|
|
29
|
+
css: PopsCSS.ninePalaceGridPosition,
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
name: "scrollbar",
|
|
33
|
+
css: PopsCSS.scrollbar,
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
name: "button",
|
|
37
|
+
css: PopsCSS.button,
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
name: "anim",
|
|
41
|
+
css: PopsCSS.anim,
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
name: "common",
|
|
45
|
+
css: PopsCSS.common,
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
name: "confirmCSS",
|
|
49
|
+
css: PopsCSS.confirmCSS,
|
|
50
|
+
},
|
|
30
51
|
]);
|
|
31
52
|
|
|
32
53
|
// 先把z-index提取出来
|
|
@@ -53,12 +74,12 @@ export const PopsConfirm = {
|
|
|
53
74
|
};${headerStyle}">${
|
|
54
75
|
config.title.html
|
|
55
76
|
? config.title.text
|
|
56
|
-
: `<p pops style="${headerPStyle}">${config.title.text}</p>`
|
|
77
|
+
: `<p pops class="pops-${PopsType}-title-text" style="${headerPStyle}">${config.title.text}</p>`
|
|
57
78
|
}${headerBtnHTML}</div>
|
|
58
79
|
<div class="pops-content pops-${PopsType}-content" style="${contentStyle}">${
|
|
59
80
|
config.content.html
|
|
60
81
|
? config.content.text
|
|
61
|
-
: `<p pops style="${contentPStyle}">${config.content.text}</p>`
|
|
82
|
+
: `<p pops class="pops-${PopsType}-content-text" style="${contentPStyle}">${config.content.text}</p>`
|
|
62
83
|
}</div>${bottomBtnHTML}`,
|
|
63
84
|
bottomBtnHTML,
|
|
64
85
|
zIndex
|
|
@@ -19,13 +19,34 @@ export const PopsDrawer = {
|
|
|
19
19
|
|
|
20
20
|
const { $shadowContainer, $shadowRoot } = PopsHandler.handlerShadow(config);
|
|
21
21
|
PopsHandler.handleInit($shadowRoot, [
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
22
|
+
{
|
|
23
|
+
name: "index",
|
|
24
|
+
css: PopsCSS.index,
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
name: "ninePalaceGridPosition",
|
|
28
|
+
css: PopsCSS.ninePalaceGridPosition,
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
name: "scrollbar",
|
|
32
|
+
css: PopsCSS.scrollbar,
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
name: "button",
|
|
36
|
+
css: PopsCSS.button,
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
name: "anim",
|
|
40
|
+
css: PopsCSS.anim,
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
name: "common",
|
|
44
|
+
css: PopsCSS.common,
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
name: "drawerCSS",
|
|
48
|
+
css: PopsCSS.drawerCSS,
|
|
49
|
+
},
|
|
29
50
|
]);
|
|
30
51
|
|
|
31
52
|
// 先把z-index提取出来
|
|
@@ -52,14 +73,14 @@ export const PopsDrawer = {
|
|
|
52
73
|
? /*html*/ `<div class="pops-title pops-${PopsType}-title" style="${headerStyle}">${
|
|
53
74
|
config.title.html
|
|
54
75
|
? config.title.text
|
|
55
|
-
: /*html*/ `<p pops style="width: 100%;text-align: ${config.title.position};${headerPStyle}">${config.title.text}</p>`
|
|
76
|
+
: /*html*/ `<p pops class="pops-${PopsType}-title-text" style="width: 100%;text-align: ${config.title.position};${headerPStyle}">${config.title.text}</p>`
|
|
56
77
|
}${headerBtnHTML}</div>`
|
|
57
78
|
: ""
|
|
58
79
|
}
|
|
59
80
|
<div class="pops-content pops-${PopsType}-content" style="${contentStyle}">${
|
|
60
81
|
config.content.html
|
|
61
82
|
? config.content.text
|
|
62
|
-
: `<p pops style="${contentPStyle}">${config.content.text}</p>`
|
|
83
|
+
: `<p pops class="pops-${PopsType}-content-text" style="${contentPStyle}">${config.content.text}</p>`
|
|
63
84
|
}</div>${bottomBtnHTML}`,
|
|
64
85
|
bottomBtnHTML,
|
|
65
86
|
zIndex
|
|
@@ -24,13 +24,34 @@ export const PopsFolder = {
|
|
|
24
24
|
|
|
25
25
|
const { $shadowContainer, $shadowRoot } = PopsHandler.handlerShadow(config);
|
|
26
26
|
PopsHandler.handleInit($shadowRoot, [
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
27
|
+
{
|
|
28
|
+
name: "index",
|
|
29
|
+
css: PopsCSS.index,
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
name: "ninePalaceGridPosition",
|
|
33
|
+
css: PopsCSS.ninePalaceGridPosition,
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
name: "scrollbar",
|
|
37
|
+
css: PopsCSS.scrollbar,
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
name: "button",
|
|
41
|
+
css: PopsCSS.button,
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
name: "anim",
|
|
45
|
+
css: PopsCSS.anim,
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
name: "common",
|
|
49
|
+
css: PopsCSS.common,
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
name: "folderCSS",
|
|
53
|
+
css: PopsCSS.folderCSS,
|
|
54
|
+
},
|
|
34
55
|
]);
|
|
35
56
|
|
|
36
57
|
/* 办公几件套 */
|
|
@@ -127,7 +148,7 @@ export const PopsFolder = {
|
|
|
127
148
|
};${headerStyle}">${
|
|
128
149
|
config.title.html
|
|
129
150
|
? config.title.text
|
|
130
|
-
: `<p pops style="${headerPStyle}">${config.title.text}</p>`
|
|
151
|
+
: `<p pops class="pops-${PopsType}-title-text" style="${headerPStyle}">${config.title.text}</p>`
|
|
131
152
|
}${headerBtnHTML}</div>
|
|
132
153
|
<div class="pops-content pops-${PopsType}-content ${
|
|
133
154
|
popsUtils.isPhone() ? "pops-mobile-folder-content" : ""
|
|
@@ -27,12 +27,30 @@ export const PopsIframe = {
|
|
|
27
27
|
|
|
28
28
|
const { $shadowContainer, $shadowRoot } = PopsHandler.handlerShadow(config);
|
|
29
29
|
PopsHandler.handleInit($shadowRoot, [
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
30
|
+
{
|
|
31
|
+
name: "index",
|
|
32
|
+
css: PopsCSS.index,
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
name: "ninePalaceGridPosition",
|
|
36
|
+
css: PopsCSS.ninePalaceGridPosition,
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
name: "scrollbar",
|
|
40
|
+
css: PopsCSS.scrollbar,
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
name: "anim",
|
|
44
|
+
css: PopsCSS.anim,
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
name: "common",
|
|
48
|
+
css: PopsCSS.common,
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
name: "iframeCSS",
|
|
52
|
+
css: PopsCSS.iframeCSS,
|
|
53
|
+
},
|
|
36
54
|
]);
|
|
37
55
|
|
|
38
56
|
let maskExtraStyle =
|
|
@@ -63,7 +81,7 @@ export const PopsIframe = {
|
|
|
63
81
|
};${headerStyle}">${
|
|
64
82
|
config.title.html
|
|
65
83
|
? titleText
|
|
66
|
-
: `<p pops style="${headerPStyle}">${titleText}</p>`
|
|
84
|
+
: `<p pops class="pops-${PopsType}-title-text" style="${headerPStyle}">${titleText}</p>`
|
|
67
85
|
}${headerBtnHTML}</div>
|
|
68
86
|
<div class="pops-content pops-${PopsType}-content">
|
|
69
87
|
<div class="pops-${PopsType}-content-global-loading"></div>
|
|
@@ -43,7 +43,9 @@ export const PopsLoading = {
|
|
|
43
43
|
${PopsCSS.loadingCSS}
|
|
44
44
|
</style>
|
|
45
45
|
${config.style != null ? `<style>${config.style}</style>` : ""}
|
|
46
|
-
<p pops style="${contentPStyle}">${
|
|
46
|
+
<p pops class="pops-${PopsType}-content-text" style="${contentPStyle}">${
|
|
47
|
+
config.content.text
|
|
48
|
+
}</p>
|
|
47
49
|
</div>`,
|
|
48
50
|
"",
|
|
49
51
|
zIndex
|
|
@@ -432,6 +432,52 @@ export const PopsPanelConfig = (): DeepRequired<PopsPanelDetails> => {
|
|
|
432
432
|
},
|
|
433
433
|
],
|
|
434
434
|
},
|
|
435
|
+
{
|
|
436
|
+
id: "whitesev-panel-bottom-config-1",
|
|
437
|
+
title: /*html*/ `
|
|
438
|
+
<a rel="nofollow" href="https://www.npmjs.com/package/@whitesev/pops" target="_blank"><img src="https://img.shields.io/npm/v/@whitesev/pops?label=pops" alt="npm pops version"></a>
|
|
439
|
+
`,
|
|
440
|
+
isBottom: true,
|
|
441
|
+
disableAsideItemHoverCSS: true,
|
|
442
|
+
attributes: [
|
|
443
|
+
{
|
|
444
|
+
"data-value": "value",
|
|
445
|
+
"data-value-2": "value2",
|
|
446
|
+
},
|
|
447
|
+
],
|
|
448
|
+
// @ts-ignore
|
|
449
|
+
props: {},
|
|
450
|
+
forms: [],
|
|
451
|
+
clickFirstCallback: function (
|
|
452
|
+
event: MouseEvent | PointerEvent,
|
|
453
|
+
rightHeaderElement: HTMLUListElement,
|
|
454
|
+
rightContainerElement: HTMLUListElement
|
|
455
|
+
) {
|
|
456
|
+
return false;
|
|
457
|
+
},
|
|
458
|
+
},
|
|
459
|
+
{
|
|
460
|
+
id: "whitesev-panel-bottom-config-2",
|
|
461
|
+
// @ts-ignore
|
|
462
|
+
title: "版本:" + pops.config.version,
|
|
463
|
+
isBottom: true,
|
|
464
|
+
attributes: [
|
|
465
|
+
{
|
|
466
|
+
"data-value": "value",
|
|
467
|
+
"data-value-2": "value2",
|
|
468
|
+
},
|
|
469
|
+
],
|
|
470
|
+
// @ts-ignore
|
|
471
|
+
props: {},
|
|
472
|
+
forms: [],
|
|
473
|
+
clickFirstCallback: function (
|
|
474
|
+
event: MouseEvent | PointerEvent,
|
|
475
|
+
rightHeaderElement: HTMLUListElement,
|
|
476
|
+
rightContainerElement: HTMLUListElement
|
|
477
|
+
) {
|
|
478
|
+
return false;
|
|
479
|
+
},
|
|
480
|
+
},
|
|
435
481
|
],
|
|
436
482
|
btn: {
|
|
437
483
|
close: {
|