@whitesev/pops 2.2.7 → 2.2.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 (146) hide show
  1. package/dist/index.amd.js +2842 -3019
  2. package/dist/index.amd.js.map +1 -1
  3. package/dist/index.cjs.js +2842 -3019
  4. package/dist/index.cjs.js.map +1 -1
  5. package/dist/index.esm.js +2842 -3019
  6. package/dist/index.esm.js.map +1 -1
  7. package/dist/index.iife.js +2842 -3019
  8. package/dist/index.iife.js.map +1 -1
  9. package/dist/index.system.js +2842 -3019
  10. package/dist/index.system.js.map +1 -1
  11. package/dist/index.umd.js +2842 -3019
  12. package/dist/index.umd.js.map +1 -1
  13. package/dist/types/src/Pops.d.ts +11 -11
  14. package/dist/types/src/PopsIcon.d.ts +2 -2
  15. package/dist/types/src/components/rightClickMenu/index.d.ts +2 -2
  16. package/dist/types/src/components/tooltip/index.d.ts +2 -2
  17. package/dist/types/src/types/PopsDOMUtilsEventType.d.ts +256 -259
  18. package/dist/types/src/types/animation.d.ts +19 -19
  19. package/dist/types/src/types/button.d.ts +187 -196
  20. package/dist/types/src/types/components.d.ts +213 -229
  21. package/dist/types/src/types/event.d.ts +63 -63
  22. package/dist/types/src/types/global.d.ts +20 -20
  23. package/dist/types/src/types/icon.d.ts +32 -32
  24. package/dist/types/src/types/inst.d.ts +24 -24
  25. package/dist/types/src/types/main.d.ts +114 -122
  26. package/dist/types/src/types/mask.d.ts +49 -49
  27. package/dist/types/src/types/position.d.ts +60 -60
  28. package/package.json +61 -56
  29. package/LICENSE +0 -674
  30. package/src/Pops.ts +0 -209
  31. package/src/PopsAnimation.ts +0 -32
  32. package/src/PopsCSS.ts +0 -51
  33. package/src/PopsCore.ts +0 -44
  34. package/src/PopsIcon.ts +0 -95
  35. package/src/PopsInst.ts +0 -21
  36. package/src/components/alert/config.ts +0 -62
  37. package/src/components/alert/index.css +0 -0
  38. package/src/components/alert/index.ts +0 -181
  39. package/src/components/alert/types/index.ts +0 -30
  40. package/src/components/confirm/config.ts +0 -90
  41. package/src/components/confirm/index.css +0 -0
  42. package/src/components/confirm/index.ts +0 -192
  43. package/src/components/confirm/types/index.ts +0 -17
  44. package/src/components/drawer/config.ts +0 -89
  45. package/src/components/drawer/index.css +0 -35
  46. package/src/components/drawer/index.ts +0 -260
  47. package/src/components/drawer/types/index.ts +0 -61
  48. package/src/components/folder/config.ts +0 -147
  49. package/src/components/folder/folderIcon.ts +0 -28
  50. package/src/components/folder/index.css +0 -314
  51. package/src/components/folder/index.ts +0 -1050
  52. package/src/components/folder/types/index.ts +0 -101
  53. package/src/components/iframe/config.ts +0 -60
  54. package/src/components/iframe/index.css +0 -75
  55. package/src/components/iframe/index.ts +0 -351
  56. package/src/components/iframe/types/index.ts +0 -146
  57. package/src/components/loading/config.ts +0 -29
  58. package/src/components/loading/index.css +0 -66
  59. package/src/components/loading/index.ts +0 -114
  60. package/src/components/loading/types/index.ts +0 -40
  61. package/src/components/panel/config.ts +0 -532
  62. package/src/components/panel/handlerComponents.ts +0 -3277
  63. package/src/components/panel/index.css +0 -1293
  64. package/src/components/panel/index.ts +0 -213
  65. package/src/components/panel/types/components-button.ts +0 -69
  66. package/src/components/panel/types/components-common.ts +0 -55
  67. package/src/components/panel/types/components-deepMenu.ts +0 -85
  68. package/src/components/panel/types/components-forms.ts +0 -45
  69. package/src/components/panel/types/components-input.ts +0 -82
  70. package/src/components/panel/types/components-own.ts +0 -31
  71. package/src/components/panel/types/components-select.ts +0 -101
  72. package/src/components/panel/types/components-selectMultiple.ts +0 -133
  73. package/src/components/panel/types/components-slider.ts +0 -78
  74. package/src/components/panel/types/components-switch.ts +0 -57
  75. package/src/components/panel/types/components-textarea.ts +0 -69
  76. package/src/components/panel/types/index.ts +0 -177
  77. package/src/components/prompt/config.ts +0 -94
  78. package/src/components/prompt/index.css +0 -34
  79. package/src/components/prompt/index.ts +0 -222
  80. package/src/components/prompt/types/index.ts +0 -55
  81. package/src/components/rightClickMenu/config.ts +0 -130
  82. package/src/components/rightClickMenu/index.css +0 -88
  83. package/src/components/rightClickMenu/index.ts +0 -689
  84. package/src/components/rightClickMenu/types/index.ts +0 -91
  85. package/src/components/searchSuggestion/config.ts +0 -59
  86. package/src/components/searchSuggestion/index.ts +0 -708
  87. package/src/components/searchSuggestion/types/index.ts +0 -147
  88. package/src/components/tooltip/config.ts +0 -34
  89. package/src/components/tooltip/index.css +0 -196
  90. package/src/components/tooltip/index.ts +0 -655
  91. package/src/components/tooltip/types/index.ts +0 -125
  92. package/src/config/CommonCSSClassName.ts +0 -17
  93. package/src/config/GlobalConfig.ts +0 -80
  94. package/src/css/animation.css +0 -2245
  95. package/src/css/button.css +0 -542
  96. package/src/css/common.css +0 -52
  97. package/src/css/index.css +0 -254
  98. package/src/css/ninePalaceGridPosition.css +0 -50
  99. package/src/css/scrollbar.css +0 -22
  100. package/src/handler/PopsElementHandler.ts +0 -325
  101. package/src/handler/PopsHandler.ts +0 -719
  102. package/src/svg/arrowLeft.svg +0 -4
  103. package/src/svg/arrowRight.svg +0 -4
  104. package/src/svg/chromeFilled.svg +0 -14
  105. package/src/svg/circleClose.svg +0 -8
  106. package/src/svg/close.svg +0 -5
  107. package/src/svg/cpu.svg +0 -8
  108. package/src/svg/delete.svg +0 -5
  109. package/src/svg/documentCopy.svg +0 -5
  110. package/src/svg/edit.svg +0 -8
  111. package/src/svg/eleme.svg +0 -5
  112. package/src/svg/elemePlus.svg +0 -5
  113. package/src/svg/headset.svg +0 -5
  114. package/src/svg/hide.svg +0 -8
  115. package/src/svg/keyboard.svg +0 -8
  116. package/src/svg/loading.svg +0 -5
  117. package/src/svg/max.svg +0 -5
  118. package/src/svg/min.svg +0 -5
  119. package/src/svg/mise.svg +0 -5
  120. package/src/svg/monitor.svg +0 -5
  121. package/src/svg/next.svg +0 -5
  122. package/src/svg/picture.svg +0 -8
  123. package/src/svg/prev.svg +0 -5
  124. package/src/svg/search.svg +0 -5
  125. package/src/svg/share.svg +0 -5
  126. package/src/svg/upload.svg +0 -5
  127. package/src/svg/videoPause.svg +0 -5
  128. package/src/svg/videoPlay.svg +0 -5
  129. package/src/svg/view.svg +0 -5
  130. package/src/types/PopsDOMUtilsEventType.d.ts +0 -259
  131. package/src/types/animation.d.ts +0 -19
  132. package/src/types/button.d.ts +0 -196
  133. package/src/types/components.d.ts +0 -229
  134. package/src/types/event.d.ts +0 -63
  135. package/src/types/global.d.ts +0 -20
  136. package/src/types/icon.d.ts +0 -32
  137. package/src/types/inst.d.ts +0 -24
  138. package/src/types/main.d.ts +0 -122
  139. package/src/types/mask.d.ts +0 -49
  140. package/src/types/position.d.ts +0 -60
  141. package/src/utils/PopsDOMUtils.ts +0 -2649
  142. package/src/utils/PopsDOMUtilsEventsConfig.ts +0 -6
  143. package/src/utils/PopsInstanceUtils.ts +0 -801
  144. package/src/utils/PopsMathUtils.ts +0 -77
  145. package/src/utils/PopsSafeUtils.ts +0 -24
  146. package/src/utils/PopsUtils.ts +0 -430
@@ -1,133 +0,0 @@
1
- import type { PopsAlertDetails } from "../../alert/types";
2
- import type { PopsPanelCommonDetails } from "./components-common";
3
-
4
- export interface PopsPanelSelectMultipleDataOption<T> {
5
- /**
6
- * 真正的值
7
- */
8
- value: T;
9
- /**
10
- * 显示的文字
11
- */
12
- text:
13
- | string
14
- | ((
15
- /** 当前的值 */
16
- value: T,
17
- /** 所有选中的配置信息 */
18
- allSelectedInfo: PopsPanelSelectMultipleDataOption<T>[]
19
- ) => string);
20
- /**
21
- * 显示的文字是否是html
22
- * @default false
23
- */
24
- isHTML?: boolean;
25
- /**
26
- * (可选)是否禁用项
27
- * 触发条件:
28
- * + 点击select元素
29
- * + select元素触发change事件
30
- * @param value 当前的值
31
- * @param allSelectedInfo 所有选中的配置信息
32
- */
33
- disable?(
34
- value: T,
35
- allSelectedInfo: PopsPanelSelectMultipleDataOption<T>[]
36
- ): boolean;
37
- }
38
- /**
39
- * pops.panel的 select
40
- */
41
- export interface PopsPanelSelectMultipleDetails<T = any>
42
- extends PopsPanelCommonDetails<PopsPanelSelectMultipleDetails> {
43
- /**
44
- * (可选)className属性
45
- */
46
- className?: string;
47
- /**
48
- * (可选)自定义元素属性
49
- */
50
- attributes?:
51
- | {
52
- [key: string]: any;
53
- }
54
- | {
55
- [key: string]: any;
56
- }[];
57
- /**
58
- * (可选)自定义属性
59
- */
60
- props?: {
61
- [K in keyof HTMLElement]?: HTMLElement[K];
62
- };
63
- /**
64
- * 显示在左边的文字
65
- */
66
- text: string;
67
- /**
68
- * (可选)左边的文字下面的描述
69
- */
70
- description?: string;
71
- /**
72
- * 类型
73
- */
74
- type: "select-multiple";
75
- /**
76
- * (可选)是否禁用
77
- */
78
- disabled?: boolean | (() => boolean);
79
- /**
80
- * 提示文字
81
- */
82
- placeholder?: string | (() => string);
83
- /**
84
- * 获取该项的值的回调函数
85
- */
86
- getValue(): T[];
87
- /**
88
- * 弹出的下拉列表弹窗的配置
89
- */
90
- selectConfirmDialogDetails?: Partial<PopsAlertDetails>;
91
- /**
92
- * 选择器的值改变触发的回调函数
93
- * @param event 事件
94
- * @param isSelectedValue 当前选中的值,也就是元素属性上的__value__
95
- * @param isSelectedText 当前选中的文本
96
- */
97
- callback?(
98
- /** 当前已选中的信息 */
99
- isSelectedInfo: PopsPanelSelectMultipleDataOption<any>[]
100
- ): void;
101
- /**
102
- * 点击某个项的元素触发该回调
103
- * @param event 点击事件
104
- * @param selectElement 当前的选中的元素
105
- * @returns 如果返回boolean为false,则不会触发默认的点击事件
106
- */
107
- clickCallBack?(
108
- event: PointerEvent | MouseEvent,
109
- /** 当前已选中的信息 */
110
- isSelectedInfo: PopsPanelSelectMultipleDataOption<any>[]
111
- ): void | boolean;
112
- /**
113
- * 点击标签tag的关闭图标触发该回调
114
- * 如果返回boolean类型且为false,则阻止默认的事件
115
- */
116
- closeIconClickCallBack?: (
117
- event: PointerEvent | MouseEvent,
118
- data: {
119
- /** 标签元素 */
120
- $tag: HTMLElement;
121
- /** 关闭图标元素 */
122
- $closeIcon: HTMLElement;
123
- /** 值 */
124
- value: T;
125
- /** 显示的文字 */
126
- text: PopsPanelSelectMultipleDataOption<T>["text"];
127
- }
128
- ) => void | boolean;
129
- /**
130
- * 选择器内的数据组
131
- */
132
- data: PopsPanelSelectMultipleDataOption<T>[];
133
- }
@@ -1,78 +0,0 @@
1
- import type { PopsPanelCommonDetails } from "./components-common";
2
-
3
- /**
4
- * pops.panel的 slider
5
- */
6
- export interface PopsPanelSliderDetails
7
- extends PopsPanelCommonDetails<PopsPanelSliderDetails> {
8
- /**
9
- * className属性
10
- * @default ""
11
- */
12
- className?: string;
13
- /**
14
- * 自定义元素属性
15
- */
16
- attributes?:
17
- | {
18
- [key: string]: any;
19
- }
20
- | {
21
- [key: string]: any;
22
- }[];
23
- /**
24
- * 自定义属性
25
- */
26
- props?: {
27
- [K in keyof HTMLElement]?: HTMLElement[K];
28
- };
29
- /**
30
- * 显示在左边的文字
31
- */
32
- text: string;
33
- /**
34
- * (可选)左边的文字下面的描述
35
- * @default ""
36
- */
37
- description?: string;
38
- /**
39
- * 类型
40
- * @default "slider"
41
- */
42
- type: "slider";
43
- /**
44
- * (可选)是否禁用
45
- * @default false
46
- */
47
- disabled?: boolean | (() => boolean);
48
- /**
49
- * 是否显示滑块的hover提示
50
- * @default true
51
- */
52
- isShowHoverTip?: boolean | (() => boolean);
53
- /**
54
- * 获取该项的值的回调函数
55
- */
56
- getValue(): number;
57
- /**
58
- * 滑块的值改变触发的回调函数
59
- */
60
- callback(event: InputEvent, value: number): void;
61
- /**
62
- * 获取tooltip的提示内容,可自定义,默认为slider的值
63
- */
64
- getToolTipContent?: (value: number) => string;
65
- /**
66
- * 滑块的最小值
67
- */
68
- min: number;
69
- /**
70
- * 滑块的最大值
71
- */
72
- max: number;
73
- /**
74
- * (可选)每次滑动的间隔值
75
- * @default 1
76
- */
77
- step?: number;
78
- }
@@ -1,57 +0,0 @@
1
- import type { PopsPanelCommonDetails } from "./components-common";
2
-
3
- /**
4
- * pops.panel的 switch
5
- */
6
- export interface PopsPanelSwitchDetails
7
- extends PopsPanelCommonDetails<PopsPanelSwitchDetails> {
8
- /**
9
- * (可选)className属性
10
- * @default ""
11
- */
12
- className?: string;
13
- /**
14
- * (可选)自定义元素属性
15
- * @default {}
16
- */
17
- attributes?:
18
- | {
19
- [key: string]: any;
20
- }
21
- | {
22
- [key: string]: any;
23
- }[];
24
- /**
25
- * (可选)自定义属性
26
- * @default {}
27
- */
28
- props?: {
29
- [K in keyof HTMLElement]?: HTMLElement[K];
30
- };
31
- /**
32
- * 显示在左边的文字
33
- */
34
- text: string;
35
- /**
36
- * (可选)左边的文字下面的描述
37
- * @default ""
38
- */
39
- description?: string;
40
- /**
41
- * 类型
42
- */
43
- type: "switch";
44
- /**
45
- * (可选)是否禁用
46
- * @default false
47
- */
48
- disabled?: boolean | (() => boolean);
49
- /**
50
- * 获取该项的值的回调函数
51
- */
52
- getValue(): boolean;
53
- /**
54
- * switch开启/关闭触发的回调函数
55
- */
56
- callback(event: MouseEvent | PointerEvent, value: boolean): void;
57
- }
@@ -1,69 +0,0 @@
1
- import type { PopsPanelCommonDetails } from "./components-common";
2
-
3
- /**
4
- * pops.panel的 textarea
5
- */
6
- export interface PopsPanelTextAreaDetails
7
- extends PopsPanelCommonDetails<PopsPanelTextAreaDetails> {
8
- /**
9
- * (可选)className属性
10
- * @default ""
11
- */
12
- className?: string;
13
- /**
14
- * (可选)自定义元素属性
15
- * @default {}
16
- */
17
- attributes?:
18
- | {
19
- [key: string]: any;
20
- }
21
- | {
22
- [key: string]: any;
23
- }[];
24
- /**
25
- * (可选)自定义属性
26
- * @default {}
27
- */
28
- props?: {
29
- [K in keyof HTMLElement]?: HTMLElement[K];
30
- };
31
- /**
32
- * 显示在左边的文字
33
- */
34
- text: string;
35
- /**
36
- * (可选)左边的文字下面的描述
37
- * @default ""
38
- */
39
- description?: string;
40
- /**
41
- * 类型
42
- */
43
- type: "textarea";
44
- /**
45
- * (可选)是否禁用
46
- * @default false
47
- */
48
- disabled?: boolean | (() => boolean);
49
- /**
50
- * 获取该项的值的回调函数
51
- */
52
- getValue(): string;
53
- /**
54
- * textarea输入框的值改变触发的回调函数
55
- * @param event 事件
56
- * @param value 当前的textarea内的值
57
- */
58
- callback(
59
- event: InputEvent & {
60
- target: HTMLTextAreaElement;
61
- },
62
- value: string
63
- ): void;
64
- /**
65
- * 输入框内的提示
66
- * @default ""
67
- */
68
- placeholder?: string;
69
- }
@@ -1,177 +0,0 @@
1
- import type {
2
- PopsTitleConfig,
3
- PopsDragConfig,
4
- PopsCommonConfig,
5
- } from "../../../types/components";
6
- import type { PopsPanelFormsDetails } from "./components-forms";
7
- import type { PopsPanelSwitchDetails } from "./components-switch";
8
- import type { PopsPanelSliderDetails } from "./components-slider";
9
- import type { PopsPanelInputDetails } from "./components-input";
10
- import type { PopsPanelTextAreaDetails } from "./components-textarea";
11
- import type { PopsPanelSelectDetails } from "./components-select";
12
- import type { PopsPanelButtonDetails } from "./components-button";
13
- import type { PopsPanelDeepMenuDetails } from "./components-deepMenu";
14
- import type { PopsPanelOwnDetails } from "./components-own";
15
- import type { PopsHeaderCloseButtonDetails } from "../../../types/button";
16
- import { PopsPanelSelectMultipleDetails } from "./components-selectMultiple";
17
-
18
- /** panel的各种类型的配置项 */
19
- export type PopsPanelFormsTotalDetails =
20
- | PopsPanelSwitchDetails
21
- | PopsPanelSliderDetails
22
- | PopsPanelInputDetails
23
- | PopsPanelTextAreaDetails
24
- | PopsPanelSelectDetails<any>
25
- | PopsPanelSelectMultipleDetails<any>
26
- | PopsPanelButtonDetails
27
- | PopsPanelDeepMenuDetails
28
- | PopsPanelOwnDetails;
29
-
30
- /**
31
- * panel的内部事件
32
- */
33
- export type PopsPanelEventType = {
34
- /**
35
- * 该事件在右侧容器内的元素改变时触发
36
- */
37
- "pops:renderRightContainer": {
38
- /**
39
- * 菜单配置
40
- */
41
- formConfig: PopsPanelContentConfig[] | PopsPanelDeepMenuDetails;
42
- };
43
- };
44
-
45
- /**
46
- * pops.panel的content配置信息
47
- */
48
- export interface PopsPanelContentConfig {
49
- /**
50
- * 元素属性id
51
- */
52
- id: string;
53
- /**
54
- * (可选)元素的className,值为空的话就不设置
55
- * @default ""
56
- */
57
- className?: string | string[];
58
- /**
59
- * 左侧的标题,可以是html格式
60
- */
61
- title: string | (() => string);
62
- /**
63
- * (可选)中间顶部的标题,如果为空,则使用title的值代替
64
- * @default title
65
- */
66
- headerTitle?: string | (() => string);
67
- /**
68
- * (可选)是否是默认的,指打开弹窗的先显示出来的内容,默认为首位第一个项,如果多个配置都设置了isDefault的值为true,那么只有第一个值生效
69
- * @default false
70
- */
71
- isDefault?: boolean | (() => boolean);
72
- /**
73
- * (可选)是否是位于底部的
74
- *
75
- * 自上而下排序
76
- * @default false
77
- */
78
- isBottom?: boolean | (() => boolean);
79
- /**
80
- * (可选)是否禁用左侧项的hover的CSS样式
81
- */
82
- disableAsideItemHoverCSS?: boolean | (() => boolean);
83
- /**
84
- * (可选)是否自动滚动到默认的项
85
- * @default false
86
- */
87
- scrollToDefaultView?: boolean;
88
- /**
89
- * (可选)自定义元素属性.setAttribute、.getAttribute
90
- */
91
- attributes?:
92
- | {
93
- [key: string]: any;
94
- }
95
- | {
96
- [key: string]: any;
97
- }[];
98
- /**
99
- * (可选)自定义元素内部的属性值
100
- */
101
- props?: {
102
- [K in keyof HTMLElement]?: HTMLElement[K];
103
- };
104
- /**
105
- * 子配置
106
- */
107
- forms: (PopsPanelFormsDetails | PopsPanelFormsTotalDetails)[];
108
- /**
109
- * 左侧容器的点击回调(点击后第一个触发该回调)
110
- * @returns
111
- * + false 阻止默认行为
112
- */
113
- clickFirstCallback?: (
114
- event: MouseEvent | PointerEvent,
115
- rightHeaderElement: HTMLUListElement,
116
- rightContainerElement: HTMLUListElement
117
- ) => void | boolean | Promise<void | boolean>;
118
- /**
119
- * 左侧容器的点击回调
120
- * @returns
121
- * + false 阻止默认进入菜单详情
122
- */
123
- clickCallback?: (
124
- event: MouseEvent | PointerEvent,
125
- rightHeaderElement: HTMLUListElement,
126
- rightContainerElement: HTMLUListElement
127
- ) => void | boolean | Promise<void | boolean>;
128
- /**
129
- * 左侧项添加到panel后的回调
130
- */
131
- afterRender?: (
132
- /**
133
- * 配置
134
- */
135
- data: {
136
- /** 容器配置 */
137
- asideConfig: PopsPanelContentConfig;
138
- /** 左侧容器的元素 */
139
- $asideLiElement: HTMLLIElement;
140
- }
141
- ) => void;
142
- }
143
-
144
- /**
145
- * pops.panel
146
- */
147
- export interface PopsPanelDetails
148
- extends PopsTitleConfig,
149
- PopsDragConfig,
150
- PopsCommonConfig {
151
- /**
152
- * 内容配置
153
- */
154
- content: PopsPanelContentConfig[];
155
- /**
156
- * 右上角的按钮配置
157
- */
158
- btn?: {
159
- /**
160
- * 关闭按钮
161
- */
162
- close?: PopsHeaderCloseButtonDetails;
163
- };
164
- /**
165
- * 移动端适配的的className
166
- *
167
- * @default "pops-panel-is-mobile"
168
- */
169
- mobileClassName?: string;
170
- /**
171
- * 是否强制是移动端,默认false
172
- * + true 强制为移动端
173
- * + false 自动根据UA判断是否是移动端
174
- * @default false
175
- */
176
- isMobile?: boolean;
177
- }
@@ -1,94 +0,0 @@
1
- import type { PopsPromptDetails } from "./types/index";
2
-
3
- export const PopsPromptConfig = (): DeepRequired<PopsPromptDetails> => {
4
- return {
5
- title: {
6
- text: "默认标题",
7
- position: "left",
8
- html: false,
9
- style: "",
10
- },
11
- content: {
12
- text: "",
13
- select: false,
14
- password: false,
15
- row: false,
16
- focus: true,
17
- placeholder: "默认提示",
18
- style: "",
19
- },
20
- btn: {
21
- merge: false,
22
- mergeReverse: false,
23
- reverse: false,
24
- position: "flex-end",
25
- ok: {
26
- enable: true,
27
- size: void 0 as any,
28
- icon: void 0 as any,
29
- rightIcon: false,
30
- iconIsLoading: false,
31
- text: "确定",
32
- type: "success",
33
- callback(detail) {
34
- detail.close();
35
- },
36
- },
37
- cancel: {
38
- enable: true,
39
- size: void 0 as any,
40
- icon: void 0 as any,
41
- rightIcon: false,
42
- iconIsLoading: false,
43
- text: "关闭",
44
- type: "default",
45
- callback(detail) {
46
- detail.close();
47
- },
48
- },
49
- other: {
50
- enable: false,
51
- size: void 0 as any,
52
- icon: void 0 as any,
53
- rightIcon: false,
54
- iconIsLoading: false,
55
- text: "其它按钮",
56
- type: "default",
57
- callback(detail) {
58
- detail.close();
59
- },
60
- },
61
- close: {
62
- enable: true,
63
- callback(detail) {
64
- detail.close();
65
- },
66
- },
67
- },
68
- useShadowRoot: true,
69
- class: "",
70
- only: false,
71
- width: "350px",
72
- height: "200px",
73
- position: "center",
74
- animation: "pops-anim-fadein-zoom",
75
- zIndex: 10000,
76
- mask: {
77
- enable: false,
78
- clickEvent: {
79
- toClose: false,
80
- toHide: false,
81
- },
82
- clickCallBack: null,
83
- },
84
- drag: false,
85
- dragLimit: true,
86
- dragExtraDistance: 3,
87
- dragMoveCallBack() {},
88
- dragEndCallBack() {},
89
- forbiddenScroll: false,
90
-
91
- style: null,
92
- beforeAppendToPageCallBack() {},
93
- };
94
- };
@@ -1,34 +0,0 @@
1
- .pops[type-value="prompt"] {
2
- --input-color: #000000;
3
- --input-bg-color: none;
4
- --input-placeholder-color: #a1a4ac;
5
- }
6
- .pops[type-value="prompt"] input[pops],
7
- .pops[type-value="prompt"] textarea[pops] {
8
- width: 100%;
9
- height: 100%;
10
- outline: 0;
11
- border: 0;
12
- color: var(--input-color);
13
- background-color: var(--input-bg-color);
14
- }
15
-
16
- .pops[type-value="prompt"] input[pops] {
17
- padding: 5px 10px;
18
- }
19
- .pops[type-value="prompt"] textarea[pops] {
20
- padding: 5px 10px;
21
- resize: none;
22
- }
23
-
24
- .pops[type-value="prompt"] input[pops]::placeholder,
25
- .pops[type-value="prompt"] textarea[pops]::placeholder {
26
- color: var(--input-placeholder-color);
27
- }
28
- @media (prefers-color-scheme: dark) {
29
- .pops[type-value="prompt"] {
30
- --input-color: #ffffff;
31
- --input-bg-color: #333333;
32
- --input-placeholder-color: #8d9095;
33
- }
34
- }