@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.
Files changed (52) hide show
  1. package/dist/index.amd.js +398 -111
  2. package/dist/index.amd.js.map +1 -1
  3. package/dist/index.cjs.js +398 -111
  4. package/dist/index.cjs.js.map +1 -1
  5. package/dist/index.esm.js +398 -111
  6. package/dist/index.esm.js.map +1 -1
  7. package/dist/index.iife.js +398 -111
  8. package/dist/index.iife.js.map +1 -1
  9. package/dist/index.system.js +397 -110
  10. package/dist/index.system.js.map +1 -1
  11. package/dist/index.umd.js +398 -111
  12. package/dist/index.umd.js.map +1 -1
  13. package/dist/types/src/Pops.d.ts +1 -0
  14. package/dist/types/src/components/panel/handlerComponents.d.ts +5 -1
  15. package/dist/types/src/components/panel/types/components-button.d.ts +3 -1
  16. package/dist/types/src/components/panel/types/components-deepMenu.d.ts +3 -1
  17. package/dist/types/src/components/panel/types/components-forms.d.ts +3 -1
  18. package/dist/types/src/components/panel/types/components-input.d.ts +3 -1
  19. package/dist/types/src/components/panel/types/components-select.d.ts +3 -1
  20. package/dist/types/src/components/panel/types/components-selectMultiple.d.ts +3 -1
  21. package/dist/types/src/components/panel/types/components-slider.d.ts +3 -1
  22. package/dist/types/src/components/panel/types/components-switch.d.ts +3 -1
  23. package/dist/types/src/components/panel/types/components-textarea.d.ts +3 -1
  24. package/dist/types/src/components/panel/types/index.d.ts +44 -19
  25. package/dist/types/src/handler/PopsHandler.d.ts +6 -3
  26. package/package.json +5 -5
  27. package/src/Pops.ts +1 -1
  28. package/src/components/alert/index.ts +30 -9
  29. package/src/components/confirm/index.ts +30 -9
  30. package/src/components/drawer/index.ts +30 -9
  31. package/src/components/folder/index.ts +29 -8
  32. package/src/components/iframe/index.ts +25 -7
  33. package/src/components/loading/index.ts +3 -1
  34. package/src/components/panel/config.ts +46 -0
  35. package/src/components/panel/handlerComponents.ts +92 -33
  36. package/src/components/panel/index.css +132 -73
  37. package/src/components/panel/index.ts +33 -11
  38. package/src/components/panel/types/components-button.ts +7 -3
  39. package/src/components/panel/types/components-deepMenu.ts +7 -3
  40. package/src/components/panel/types/components-forms.ts +7 -3
  41. package/src/components/panel/types/components-input.ts +7 -3
  42. package/src/components/panel/types/components-select.ts +7 -3
  43. package/src/components/panel/types/components-selectMultiple.ts +7 -3
  44. package/src/components/panel/types/components-slider.ts +7 -3
  45. package/src/components/panel/types/components-switch.ts +7 -3
  46. package/src/components/panel/types/components-textarea.ts +7 -3
  47. package/src/components/panel/types/index.ts +59 -27
  48. package/src/components/prompt/index.ts +29 -8
  49. package/src/components/rightClickMenu/index.ts +16 -4
  50. package/src/components/searchSuggestion/index.ts +12 -3
  51. package/src/components/tooltip/index.ts +16 -4
  52. package/src/handler/PopsHandler.ts +42 -11
@@ -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
- * 左侧的ul容器
18
+ * 左侧上方的的ul容器
19
19
  */
20
20
  asideULElement: HTMLUListElement;
21
+ /**
22
+ * 左侧下方的ul容器
23
+ */
24
+ asideBottomULElement: HTMLUListElement;
21
25
  /**
22
26
  * 右侧主内容的顶部文字ul容器
23
27
  */
@@ -14,7 +14,9 @@ export interface PopsPanelButtonDetails extends PopsPanelCommonDetails<PopsPanel
14
14
  */
15
15
  attributes?: {
16
16
  [key: string]: any;
17
- };
17
+ } | {
18
+ [key: string]: any;
19
+ }[];
18
20
  /**
19
21
  * (可选)自定义属性
20
22
  */
@@ -18,7 +18,9 @@ export interface PopsPanelDeepMenuDetails extends PopsPanelCommonDetails<PopsPan
18
18
  */
19
19
  attributes?: {
20
20
  [key: string]: any;
21
- };
21
+ } | {
22
+ [key: string]: any;
23
+ }[];
22
24
  /**
23
25
  * (可选)自定义属性
24
26
  */
@@ -13,7 +13,9 @@ export interface PopsPanelFormsDetails extends PopsPanelCommonDetails<PopsPanelF
13
13
  */
14
14
  attributes?: {
15
15
  [key: string]: any;
16
- };
16
+ } | {
17
+ [key: string]: any;
18
+ }[];
17
19
  /**
18
20
  * (可选)自定义属性
19
21
  */
@@ -12,7 +12,9 @@ export interface PopsPanelInputDetails extends PopsPanelCommonDetails<PopsPanelI
12
12
  */
13
13
  attributes?: {
14
14
  [key: string]: any;
15
- };
15
+ } | {
16
+ [key: string]: any;
17
+ }[];
16
18
  /**
17
19
  * (可选)自定义属性
18
20
  */
@@ -14,7 +14,9 @@ export interface PopsPanelSelectDetails<T = any> extends PopsPanelCommonDetails<
14
14
  */
15
15
  attributes?: {
16
16
  [key: string]: any;
17
- };
17
+ } | {
18
+ [key: string]: any;
19
+ }[];
18
20
  /**
19
21
  * (可选)自定义属性
20
22
  */
@@ -41,7 +41,9 @@ export interface PopsPanelSelectMultipleDetails<T = any> extends PopsPanelCommon
41
41
  */
42
42
  attributes?: {
43
43
  [key: string]: any;
44
- };
44
+ } | {
45
+ [key: string]: any;
46
+ }[];
45
47
  /**
46
48
  * (可选)自定义属性
47
49
  */
@@ -13,7 +13,9 @@ export interface PopsPanelSliderDetails extends PopsPanelCommonDetails<PopsPanel
13
13
  */
14
14
  attributes?: {
15
15
  [key: string]: any;
16
- };
16
+ } | {
17
+ [key: string]: any;
18
+ }[];
17
19
  /**
18
20
  * 自定义属性
19
21
  */
@@ -12,7 +12,9 @@ export interface PopsPanelSwitchDetails extends PopsPanelCommonDetails<PopsPanel
12
12
  */
13
13
  attributes?: {
14
14
  [key: string]: any;
15
- };
15
+ } | {
16
+ [key: string]: any;
17
+ }[];
16
18
  /**
17
19
  * (可选)自定义属性
18
20
  */
@@ -12,7 +12,9 @@ export interface PopsPanelTextAreaDetails extends PopsPanelCommonDetails<PopsPan
12
12
  */
13
13
  attributes?: {
14
14
  [key: string]: any;
15
- };
15
+ } | {
16
+ [key: string]: any;
17
+ }[];
16
18
  /**
17
19
  * (可选)自定义属性
18
20
  */
@@ -35,37 +35,50 @@ export interface PopsPanelContentConfig {
35
35
  */
36
36
  id: string;
37
37
  /**
38
- * 元素的className
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
- * (可选)内容高度是否自动适应(与headerTitle的高度有关)
52
+ * (可选)是否是默认的,指打开弹窗的先显示出来的内容,默认为首位第一个项,如果多个配置都设置了isDefault的值为true,那么只有第一个值生效
53
+ * @default false
51
54
  */
52
- autoAdaptionContentHeight?: string;
55
+ isDefault?: boolean | (() => boolean);
53
56
  /**
54
- * (可选)是否是默认的,指打开弹窗的先显示出来的内容
57
+ * (可选)是否是位于底部的
58
+ *
59
+ * 自上而下排序
60
+ * @default false
55
61
  */
56
- isDefault?: boolean | (() => boolean);
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
- callback?: (event: MouseEvent | PointerEvent, rightHeaderElement: HTMLUListElement, rightContainerElement: HTMLUListElement) => void;
105
+ afterRender?: (
81
106
  /**
82
- * 左侧容器添加到panel后的回调
83
- * @param rightHeaderElement
84
- * @param rightContainerElement
107
+ * 配置
85
108
  */
86
- afterRender?: (data: {
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,默认为pops-panel-is-mobile
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 $shadowRoot 所在的shadowRoot
27
- * @param cssText 添加进ShadowRoot的CSS
26
+ * @param $styleParent style元素的父元素
27
+ * @param css 添加进ShadowRoot的CSS
28
28
  */
29
- handleInit($shadowRoot?: ShadowRoot | HTMLElement, cssText?: string | string[]): void;
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.7",
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 --config --watch",
54
- "build": "rollup --config",
55
- "build:all": "rollup --config",
56
- "build:all-new": "rollup --config"
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
@@ -36,7 +36,7 @@ class Pops {
36
36
  /** 配置 */
37
37
  config = {
38
38
  /** 版本号 */
39
- version: "2025.7.7",
39
+ version: "2025.7.10",
40
40
  cssText: PopsCSS,
41
41
  /** icon图标的svg代码 */
42
42
  iconSVG: PopsIcon.$data,
@@ -21,13 +21,34 @@ export const PopsAlert = {
21
21
 
22
22
  const { $shadowContainer, $shadowRoot } = PopsHandler.handlerShadow(config);
23
23
  PopsHandler.handleInit($shadowRoot, [
24
- PopsCSS.index,
25
- PopsCSS.ninePalaceGridPosition,
26
- PopsCSS.scrollbar,
27
- PopsCSS.button,
28
- PopsCSS.anim,
29
- PopsCSS.common,
30
- PopsCSS.alertCSS,
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
- PopsCSS.index,
24
- PopsCSS.ninePalaceGridPosition,
25
- PopsCSS.scrollbar,
26
- PopsCSS.button,
27
- PopsCSS.anim,
28
- PopsCSS.common,
29
- PopsCSS.confirmCSS,
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
- PopsCSS.index,
23
- PopsCSS.ninePalaceGridPosition,
24
- PopsCSS.scrollbar,
25
- PopsCSS.button,
26
- PopsCSS.anim,
27
- PopsCSS.common,
28
- PopsCSS.drawerCSS,
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
- PopsCSS.index,
28
- PopsCSS.ninePalaceGridPosition,
29
- PopsCSS.scrollbar,
30
- PopsCSS.button,
31
- PopsCSS.anim,
32
- PopsCSS.common,
33
- PopsCSS.folderCSS,
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
- PopsCSS.index,
31
- PopsCSS.ninePalaceGridPosition,
32
- PopsCSS.scrollbar,
33
- PopsCSS.anim,
34
- PopsCSS.common,
35
- PopsCSS.iframeCSS,
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}">${config.content.text}</p>
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: {