@whitesev/pops 2.2.1 → 2.2.3

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 (44) hide show
  1. package/dist/index.amd.js +275 -263
  2. package/dist/index.amd.js.map +1 -1
  3. package/dist/index.cjs.js +275 -263
  4. package/dist/index.cjs.js.map +1 -1
  5. package/dist/index.esm.js +275 -263
  6. package/dist/index.esm.js.map +1 -1
  7. package/dist/index.iife.js +275 -263
  8. package/dist/index.iife.js.map +1 -1
  9. package/dist/index.system.js +275 -263
  10. package/dist/index.system.js.map +1 -1
  11. package/dist/index.umd.js +275 -263
  12. package/dist/index.umd.js.map +1 -1
  13. package/dist/types/src/Pops.d.ts +1 -1
  14. package/dist/types/src/components/panel/index.d.ts +2 -1
  15. package/dist/types/src/components/panel/types/components-input.d.ts +9 -1
  16. package/dist/types/src/components/panel/types/components-select.d.ts +6 -1
  17. package/dist/types/src/components/panel/types/components-switch.d.ts +6 -1
  18. package/dist/types/src/components/panel/types/components-textarea.d.ts +8 -2
  19. package/dist/types/src/components/searchSuggestion/index.d.ts +1 -1
  20. package/dist/types/src/handler/PopsElementHandler.d.ts +6 -6
  21. package/dist/types/src/handler/PopsHandler.d.ts +3 -3
  22. package/dist/types/src/types/components.d.ts +5 -5
  23. package/dist/types/src/types/main.d.ts +34 -31
  24. package/package.json +1 -1
  25. package/src/Pops.ts +1 -1
  26. package/src/components/alert/index.ts +15 -15
  27. package/src/components/confirm/index.ts +16 -15
  28. package/src/components/drawer/index.ts +16 -15
  29. package/src/components/folder/index.ts +141 -152
  30. package/src/components/iframe/index.ts +14 -13
  31. package/src/components/panel/handlerComponents.ts +25 -6
  32. package/src/components/panel/index.ts +19 -18
  33. package/src/components/panel/types/components-input.ts +9 -1
  34. package/src/components/panel/types/components-select.ts +6 -1
  35. package/src/components/panel/types/components-switch.ts +6 -1
  36. package/src/components/panel/types/components-textarea.ts +8 -2
  37. package/src/components/prompt/index.ts +15 -14
  38. package/src/components/rightClickMenu/index.ts +17 -16
  39. package/src/components/searchSuggestion/index.ts +21 -20
  40. package/src/components/tooltip/index.ts +3 -2
  41. package/src/handler/PopsElementHandler.ts +18 -18
  42. package/src/handler/PopsHandler.ts +13 -7
  43. package/src/types/components.d.ts +5 -5
  44. package/src/types/main.d.ts +34 -31
@@ -6,12 +6,13 @@ import { GlobalConfig } from "../../GlobalConfig";
6
6
  import { PopsSafeUtils } from "../../utils/PopsSafeUtils";
7
7
  import type { PopsSearchSuggestionDetails } from "./types/index";
8
8
  import { PopsCSS } from "../../PopsCSS";
9
+ import type { PopsType } from "../../types/main";
9
10
 
10
11
  export const PopsSearchSuggestion = {
11
12
  init(details: PopsSearchSuggestionDetails) {
12
13
  const guid = popsUtils.getRandomGUID();
13
14
  // 设置当前类型
14
- const PopsType = "searchSuggestion";
15
+ const popsType: PopsType = "searchSuggestion";
15
16
 
16
17
  let config = PopsSearchSuggestionConfig();
17
18
  config = popsUtils.assign(config, GlobalConfig.getGlobalConfig());
@@ -88,7 +89,7 @@ export const PopsSearchSuggestion = {
88
89
 
89
90
  SearchSuggestion.hide();
90
91
  if (config.isAnimation) {
91
- SearchSuggestion.$el.root.classList.add(`pops-${PopsType}-animation`);
92
+ SearchSuggestion.$el.root.classList.add(`pops-${popsType}-animation`);
92
93
  }
93
94
  $shadowRoot.appendChild(SearchSuggestion.$el.root);
94
95
  parentElement.appendChild($shadowContainer);
@@ -109,19 +110,19 @@ export const PopsSearchSuggestion = {
109
110
  let element = popsDOMUtils.createElement(
110
111
  "div",
111
112
  {
112
- className: `pops pops-${PopsType}-search-suggestion`,
113
+ className: `pops pops-${popsType}-search-suggestion`,
113
114
  innerHTML: /*html*/ `
114
115
  <style data-dynamic="true">
115
116
  ${this.getDynamicCSS()}
116
117
  </style>
117
- <ul class="pops-${PopsType}-search-suggestion-hint">${
118
+ <ul class="pops-${popsType}-search-suggestion-hint">${
118
119
  config.toSearhNotResultHTML
119
120
  }</ul>
120
121
  `,
121
122
  },
122
123
  {
123
124
  "data-guid": guid,
124
- "type-value": PopsType,
125
+ "type-value": popsType,
125
126
  }
126
127
  );
127
128
  if (config.className !== "" && config.className != null) {
@@ -132,24 +133,24 @@ export const PopsSearchSuggestion = {
132
133
  /** 动态获取CSS */
133
134
  getDynamicCSS() {
134
135
  return /*css*/ `
135
- .pops-${PopsType}-animation{
136
+ .pops-${popsType}-animation{
136
137
  -moz-animation: searchSelectFalIn 0.5s 1 linear;
137
138
  -webkit-animation: searchSelectFalIn 0.5s 1 linear;
138
139
  -o-animation: searchSelectFalIn 0.5s 1 linear;
139
140
  -ms-animation: searchSelectFalIn 0.5s 1 linear;
140
141
  }
141
- .pops-${PopsType}-search-suggestion{
142
+ .pops-${popsType}-search-suggestion{
142
143
  --search-suggestion-bg-color: #ffffff;
143
144
  --search-suggestion-box-shadow-color: rgb(0 0 0 / 20%);
144
145
  --search-suggestion-item-color: #515a6e;
145
146
  --search-suggestion-item-none-color: #8e8e8e;
146
147
  --search-suggestion-item-hover-bg-color: rgba(0, 0, 0, .1);
147
148
  }
148
- .pops-${PopsType}-search-suggestion{
149
+ .pops-${popsType}-search-suggestion{
149
150
  border: initial;
150
151
  overflow: initial;
151
152
  }
152
- ul.pops-${PopsType}-search-suggestion-hint{
153
+ ul.pops-${popsType}-search-suggestion-hint{
153
154
  position: ${config.isAbsolute ? "absolute" : "fixed"};
154
155
  z-index: ${PopsHandler.handleZIndex(config.zIndex)};
155
156
  width: 0;
@@ -164,14 +165,14 @@ export const PopsSearchSuggestion = {
164
165
  box-shadow: 0 1px 6px var(--search-suggestion-box-shadow-color);
165
166
  }
166
167
  /* 建议框在上面时 */
167
- ul.pops-${PopsType}-search-suggestion-hint[data-top-reverse]{
168
+ ul.pops-${popsType}-search-suggestion-hint[data-top-reverse]{
168
169
  display: flex;
169
170
  flex-direction: column-reverse;
170
171
  }
171
- ul.pops-${PopsType}-search-suggestion-hint[data-top-reverse] li{
172
+ ul.pops-${popsType}-search-suggestion-hint[data-top-reverse] li{
172
173
  flex-shrink: 0;
173
174
  }
174
- ul.pops-${PopsType}-search-suggestion-hint li{
175
+ ul.pops-${popsType}-search-suggestion-hint li{
175
176
  padding: 7px;
176
177
  margin: 0;
177
178
  clear: both;
@@ -184,17 +185,17 @@ export const PopsSearchSuggestion = {
184
185
  text-overflow: ellipsis;
185
186
  width: 100%;
186
187
  }
187
- ul.pops-${PopsType}-search-suggestion-hint li[data-none]{
188
+ ul.pops-${popsType}-search-suggestion-hint li[data-none]{
188
189
  text-align: center;
189
190
  font-size: 12px;
190
191
  color: var(--search-suggestion-item-none-color);
191
192
  }
192
- ul.pops-${PopsType}-search-suggestion-hint li:hover{
193
+ ul.pops-${popsType}-search-suggestion-hint li:hover{
193
194
  background-color: var(--search-suggestion-item-hover-bg-color);
194
195
  }
195
196
 
196
197
  @media (prefers-color-scheme: dark){
197
- .pops-${PopsType}-search-suggestion{
198
+ .pops-${popsType}-search-suggestion{
198
199
  --search-suggestion-bg-color: #1d1e1f;
199
200
  --search-suggestion-item-color: #cfd3d4;
200
201
  --search-suggestion-item-hover-bg-color: rgba(175, 175, 175, .1);
@@ -209,7 +210,7 @@ export const PopsSearchSuggestion = {
209
210
  */
210
211
  getSearchItemLiElement(data: any, index: number) {
211
212
  return popsDOMUtils.createElement("li", {
212
- className: `pops-${PopsType}-search-suggestion-hint-item pops-flex-items-center pops-flex-y-center`,
213
+ className: `pops-${popsType}-search-suggestion-hint-item pops-flex-items-center pops-flex-y-center`,
213
214
  "data-index": index,
214
215
  "data-value": SearchSuggestion.getItemDataValue(data),
215
216
  innerHTML: `${config.getItemHTML(data)}${
@@ -236,7 +237,7 @@ export const PopsSearchSuggestion = {
236
237
  (event) => {
237
238
  popsDOMUtils.preventEvent(event);
238
239
  let $click = event.target as HTMLLIElement;
239
- if ($click.closest(`.pops-${PopsType}-delete-icon`)) {
240
+ if ($click.closest(`.pops-${popsType}-delete-icon`)) {
240
241
  /* 点击的是删除按钮 */
241
242
  if (typeof config.deleteIcon.callback === "function") {
242
243
  config.deleteIcon.callback(
@@ -512,7 +513,7 @@ export const PopsSearchSuggestion = {
512
513
  */
513
514
  getDeleteIconHTML(size = 16, fill = "#bababa") {
514
515
  return /*html*/ `
515
- <svg class="pops-${PopsType}-delete-icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" width="${size}" height="${size}" fill="${fill}">
516
+ <svg class="pops-${popsType}-delete-icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" width="${size}" height="${size}" fill="${fill}">
516
517
  <path d="M512 883.2A371.2 371.2 0 1 0 140.8 512 371.2 371.2 0 0 0 512 883.2z m0 64a435.2 435.2 0 1 1 435.2-435.2 435.2 435.2 0 0 1-435.2 435.2z"></path>
517
518
  <path d="M557.056 512l122.368 122.368a31.744 31.744 0 1 1-45.056 45.056L512 557.056l-122.368 122.368a31.744 31.744 0 1 1-45.056-45.056L466.944 512 344.576 389.632a31.744 31.744 0 1 1 45.056-45.056L512 466.944l122.368-122.368a31.744 31.744 0 1 1 45.056 45.056z"></path>
518
519
  </svg>
@@ -523,7 +524,7 @@ export const PopsSearchSuggestion = {
523
524
  */
524
525
  setPromptsInSearch() {
525
526
  let isSearchingElement = popsDOMUtils.createElement("li", {
526
- className: `pops-${PopsType}-search-suggestion-hint-searching-item`,
527
+ className: `pops-${popsType}-search-suggestion-hint-searching-item`,
527
528
  innerHTML: config.searchingTip,
528
529
  });
529
530
  SearchSuggestion.$el.$hintULContainer.appendChild(isSearchingElement);
@@ -534,7 +535,7 @@ export const PopsSearchSuggestion = {
534
535
  removePromptsInSearch() {
535
536
  SearchSuggestion.$el.$hintULContainer
536
537
  .querySelector<HTMLLIElement>(
537
- `li.pops-${PopsType}-search-suggestion-hint-searching-item`
538
+ `li.pops-${popsType}-search-suggestion-hint-searching-item`
538
539
  )
539
540
  ?.remove();
540
541
  },
@@ -1,6 +1,7 @@
1
1
  import { GlobalConfig } from "../../GlobalConfig";
2
2
  import { PopsHandler } from "../../handler/PopsHandler";
3
3
  import { PopsCSS } from "../../PopsCSS";
4
+ import type { PopsType } from "../../types/main";
4
5
  import { popsDOMUtils } from "../../utils/PopsDOMUtils";
5
6
  import { PopsSafeUtils } from "../../utils/PopsSafeUtils";
6
7
  import { popsUtils } from "../../utils/PopsUtils";
@@ -601,7 +602,7 @@ export const PopsTooltip = {
601
602
  init(details: PopsToolTipDetails) {
602
603
  const guid = popsUtils.getRandomGUID();
603
604
  // 设置当前类型
604
- const PopsType = "tooltip";
605
+ const popsType: PopsType = "tooltip";
605
606
 
606
607
  let config = PopsTooltipConfig();
607
608
  config = popsUtils.assign(config, GlobalConfig.getGlobalConfig());
@@ -609,7 +610,7 @@ export const PopsTooltip = {
609
610
  if (!(config.target instanceof HTMLElement)) {
610
611
  throw new TypeError("config.target 必须是HTMLElement类型");
611
612
  }
612
- config = PopsHandler.handleOnly(PopsType, config);
613
+ config = PopsHandler.handleOnly(popsType, config);
613
614
 
614
615
  const { $shadowContainer, $shadowRoot } = PopsHandler.handlerShadow(config);
615
616
  PopsHandler.handleInit($shadowRoot, [
@@ -3,14 +3,14 @@ import type { PopsConfirmDetails } from "../components/confirm/types";
3
3
  import type { PopsIframeDetails } from "../components/iframe/types";
4
4
  import type { PopsIconType } from "../types/icon";
5
5
  import type {
6
- PopsSupportAnim,
7
- PopsSupportBottomBtn,
8
- PopsSupportContent,
9
- PopsSupportHeaderTitle,
10
- PopsSupportAnimType,
11
- PopsTypeSupportBottomBtn,
12
- PopsTypeSupportContent,
13
- PopsTypeSupportHeaderTitle,
6
+ PopsSupportAnimDetails,
7
+ PopsSupportBottomBtnDetails,
8
+ PopsSupportContentDetails,
9
+ PopsSupportHeaderTitleDetails,
10
+ PopsSupportAnimDetailsType,
11
+ PopsSupportBottomBtnDetailsType,
12
+ PopsSupportContentDetailsType,
13
+ PopsSupportHeaderTitleDetailsType,
14
14
  } from "../types/main";
15
15
  import { PopsIcon } from "../PopsIcon";
16
16
  import { popsDOMUtils } from "../utils/PopsDOMUtils";
@@ -40,8 +40,8 @@ export const PopsElementHandler = {
40
40
  */
41
41
  getAnimHTML(
42
42
  guid: string,
43
- type: PopsSupportAnimType,
44
- config: PopsSupportAnim[keyof PopsSupportAnim],
43
+ type: PopsSupportAnimDetailsType,
44
+ config: PopsSupportAnimDetails[keyof PopsSupportAnimDetails],
45
45
  html = "",
46
46
  bottomBtnHTML = "",
47
47
  zIndex: number
@@ -80,8 +80,8 @@ export const PopsElementHandler = {
80
80
  * @param config
81
81
  */
82
82
  getHeaderBtnHTML(
83
- type: PopsTypeSupportHeaderTitle,
84
- config: PopsSupportHeaderTitle[keyof PopsSupportHeaderTitle]
83
+ type: PopsSupportHeaderTitleDetailsType,
84
+ config: PopsSupportHeaderTitleDetails[keyof PopsSupportHeaderTitleDetails]
85
85
  ): string {
86
86
  if (!config.btn) {
87
87
  return "";
@@ -126,8 +126,8 @@ export const PopsElementHandler = {
126
126
  * @param config
127
127
  */
128
128
  getBottomBtnHTML(
129
- type: PopsTypeSupportBottomBtn,
130
- config: Omit<PopsSupportBottomBtn[keyof PopsSupportBottomBtn], "content">
129
+ type: PopsSupportBottomBtnDetailsType,
130
+ config: Omit<PopsSupportBottomBtnDetails[keyof PopsSupportBottomBtnDetails], "content">
131
131
  ): string {
132
132
  if (!config.btn) {
133
133
  // 未设置btn参数
@@ -282,8 +282,8 @@ export const PopsElementHandler = {
282
282
  * @param config 弹窗配置
283
283
  */
284
284
  getHeaderStyle(
285
- type: PopsTypeSupportHeaderTitle,
286
- config: PopsSupportHeaderTitle[keyof PopsSupportHeaderTitle]
285
+ type: PopsSupportHeaderTitleDetailsType,
286
+ config: PopsSupportHeaderTitleDetails[keyof PopsSupportHeaderTitleDetails]
287
287
  ) {
288
288
  return {
289
289
  headerStyle: config?.title?.html ? config?.title?.style || "" : "",
@@ -297,8 +297,8 @@ export const PopsElementHandler = {
297
297
  * @param config 弹窗配置
298
298
  */
299
299
  getContentStyle(
300
- type: PopsTypeSupportContent,
301
- config: PopsSupportContent[keyof PopsSupportContent]
300
+ type: PopsSupportContentDetailsType,
301
+ config: PopsSupportContentDetails[keyof PopsSupportContentDetails]
302
302
  ) {
303
303
  return {
304
304
  contentStyle: (config?.content as any)?.html
@@ -13,10 +13,10 @@ import type { PopsCommonConfig } from "../types/components";
13
13
  import { PopsEventDetails, PopsHandlerEventDetails } from "../types/event";
14
14
  import { PopsInstCommonConfig } from "../types/inst";
15
15
  import type {
16
- PopsDetails,
17
16
  PopsInstStoreType,
18
17
  PopsType,
19
- PopsSupportAnimType,
18
+ PopsSupportAnimDetailsType,
19
+ PopsSupportOnlyDetails,
20
20
  } from "../types/main";
21
21
  import { popsDOMUtils } from "../utils/PopsDOMUtils";
22
22
  import { PopsInstanceUtils } from "../utils/PopsInstanceUtils";
@@ -234,7 +234,10 @@ export const PopsHandler = {
234
234
  * @param animElement
235
235
  * @param type
236
236
  */
237
- handleQueryElement(animElement: HTMLDivElement, type: PopsSupportAnimType) {
237
+ handleQueryElement(
238
+ animElement: HTMLDivElement,
239
+ type: PopsSupportAnimDetailsType
240
+ ) {
238
241
  return {
239
242
  /**
240
243
  * 主元素
@@ -660,11 +663,14 @@ export const PopsHandler = {
660
663
  * @param type 当前弹窗类型
661
664
  * @param config 配置
662
665
  */
663
- handleOnly<T extends Required<PopsDetails[keyof PopsDetails]>>(
664
- type: PopsType,
665
- config: T
666
- ): T {
666
+ handleOnly<
667
+ T extends Required<PopsSupportOnlyDetails[keyof PopsSupportOnlyDetails]>
668
+ >(type: PopsType, config: T): T {
667
669
  if (config.only) {
670
+ // .loading
671
+ // .tooltip
672
+ // .rightClickMenu
673
+ // 单独处理
668
674
  if (
669
675
  type === "loading" ||
670
676
  type === "tooltip" ||
@@ -21,17 +21,17 @@ export interface PopsTitleConfig {
21
21
  */
22
22
  text?: string;
23
23
  /**
24
- * 文字的位置
24
+ * 标题文字的位置
25
25
  * @default "left"
26
26
  */
27
27
  position?: PopsTextAlign;
28
28
  /**
29
- * 文字是否是html
29
+ * 标题文字是否是html
30
30
  * @default false
31
31
  */
32
32
  html?: boolean;
33
33
  /**
34
- * 文字的自定义CSS
34
+ * 自定义CSS
35
35
  */
36
36
  style?: string;
37
37
  };
@@ -47,12 +47,12 @@ export interface PopsContentConfig {
47
47
  */
48
48
  text?: string;
49
49
  /**
50
- * 文字是否是html
50
+ * 内容文字是否是html
51
51
  * @default false
52
52
  */
53
53
  html?: boolean;
54
54
  /**
55
- * 文字的自定义CSS
55
+ * 自定义CSS
56
56
  */
57
57
  style?: string;
58
58
  };
@@ -16,12 +16,13 @@ import type { PopsPanelTextAreaDetails } from "../components/panel/types/compone
16
16
  import type { PopsPromptDetails } from "../components/prompt/types/index";
17
17
  import { PopsRightClickMenuDetails } from "../components/rightClickMenu/types";
18
18
  import { PopsToolTipDetails } from "../components/tooltip/types/index";
19
+ import type { PopsSearchSuggestionDetails } from "../components/searchSuggestion/types";
19
20
 
20
21
  export interface PopsUtilsOwnObject<V extends any> {
21
22
  [key: string]: V | PopsUtilsOwnObject<V>;
22
23
  }
23
24
 
24
- /** pops的所有类型配置 10个 */
25
+ /** pops所有的类型配置 11个*/
25
26
  export interface PopsDetails {
26
27
  alert: PopsAlertDetails;
27
28
  confirm: PopsConfirmDetails;
@@ -33,53 +34,55 @@ export interface PopsDetails {
33
34
  folder: PopsFolderDetails;
34
35
  panel: PopsPanelDetails;
35
36
  rightClickMenu: PopsRightClickMenuDetails;
37
+ searchSuggestion: PopsSearchSuggestionDetails;
36
38
  }
37
39
 
38
- /** pops所有的类型 10个 */
40
+ /** pops的类型 */
39
41
  export type PopsType = keyof PopsDetails;
40
42
 
41
- /** 存储实例的类型 10个 */
42
- export type PopsInstStoreType = PopsType;
43
+ /** pops中支持only的配置 */
44
+ export type PopsSupportOnlyDetails = Omit<PopsDetails, "searchSuggestion">;
45
+
46
+ /** 存储实例的类型 */
47
+ export type PopsInstStoreType = keyof Omit<PopsDetails, "searchSuggestion">;
43
48
 
44
49
  /** pops弹窗支持动画元素的配置 8个 */
45
- export type PopsSupportAnim = Omit<PopsDetails, "tooltip" | "rightClickMenu">;
50
+ export type PopsSupportAnimDetails = Omit<
51
+ PopsDetails,
52
+ "tooltip" | "rightClickMenu" | "searchSuggestion"
53
+ >;
46
54
 
47
55
  /** pops弹窗支持动画元素的类型 */
48
- export type PopsSupportAnimType = keyof PopsSupportAnim;
56
+ export type PopsSupportAnimDetailsType = keyof PopsSupportAnimDetails;
49
57
 
50
58
  /** pops弹窗支持标题栏的配置 */
51
- export interface PopsSupportHeaderTitle {
52
- alert: PopsAlertDetails;
53
- confirm: PopsConfirmDetails;
54
- prompt: PopsPromptDetails;
55
- iframe: PopsIframeDetails;
56
- drawer: PopsDrawerDetails;
57
- folder: PopsFolderDetails;
58
- panel: PopsPanelDetails;
59
- }
59
+ export type PopsSupportHeaderTitleDetails = Pick<
60
+ PopsDetails,
61
+ "alert" | "confirm" | "prompt" | "iframe" | "drawer" | "folder" | "panel"
62
+ >;
63
+
60
64
  /** pops弹窗支持标题栏的类型 */
61
- export type PopsTypeSupportHeaderTitle = keyof PopsSupportHeaderTitle;
65
+ export type PopsSupportHeaderTitleDetailsType =
66
+ keyof PopsSupportHeaderTitleDetails;
62
67
 
63
68
  /** pops支持底部按钮的配置 */
64
- export interface PopsSupportBottomBtn {
65
- alert: PopsAlertDetails;
66
- confirm: PopsConfirmDetails;
67
- prompt: PopsPromptDetails;
68
- drawer: PopsDrawerDetails;
69
- }
69
+ export type PopsSupportBottomBtnDetails = Pick<
70
+ PopsDetails,
71
+ "alert" | "confirm" | "prompt" | "drawer"
72
+ >;
73
+
70
74
  /** pops支持底部按钮的类型 */
71
- export type PopsTypeSupportBottomBtn = keyof PopsSupportHeaderTitle;
75
+ export type PopsSupportBottomBtnDetailsType =
76
+ keyof PopsSupportHeaderTitleDetails;
72
77
 
73
78
  /** pops支持中间内容的配置 */
74
- export interface PopsSupportContent {
75
- alert: PopsAlertDetails;
76
- confirm: PopsConfirmDetails;
77
- prompt: PopsPromptDetails;
78
- drawer: PopsDrawerDetails;
79
- loading: PopsLoadingDetails;
80
- }
79
+ export type PopsSupportContentDetails = Pick<
80
+ PopsDetails,
81
+ "alert" | "confirm" | "prompt" | "drawer" | "loading"
82
+ >;
83
+
81
84
  /** pops支持中间内容的类型 */
82
- export type PopsTypeSupportContent = keyof PopsSupportContent;
85
+ export type PopsSupportContentDetailsType = keyof PopsSupportContentDetails;
83
86
 
84
87
  /** panel的各种类型的配置项 */
85
88
  export type PopsPanelFormsTotalDetails =