@whitesev/pops 3.2.0 → 3.2.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/README.md +249 -249
- package/dist/index.amd.js +702 -667
- package/dist/index.amd.js.map +1 -1
- package/dist/index.amd.min.js +1 -1
- package/dist/index.amd.min.js.map +1 -1
- package/dist/index.cjs.js +702 -667
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.cjs.min.js +1 -1
- package/dist/index.cjs.min.js.map +1 -1
- package/dist/index.esm.js +702 -667
- package/dist/index.esm.js.map +1 -1
- package/dist/index.esm.min.js +1 -1
- package/dist/index.esm.min.js.map +1 -1
- package/dist/index.iife.js +702 -667
- package/dist/index.iife.js.map +1 -1
- package/dist/index.iife.min.js +1 -1
- package/dist/index.iife.min.js.map +1 -1
- package/dist/index.system.js +702 -667
- package/dist/index.system.js.map +1 -1
- package/dist/index.system.min.js +1 -1
- package/dist/index.system.min.js.map +1 -1
- package/dist/index.umd.js +702 -667
- package/dist/index.umd.js.map +1 -1
- package/dist/index.umd.min.js +1 -1
- package/dist/index.umd.min.js.map +1 -1
- package/dist/types/src/components/folder/types/index.d.ts +43 -13
- package/dist/types/src/types/PopsDOMUtilsEventType.d.ts +313 -313
- package/dist/types/src/types/animation.d.ts +19 -19
- package/dist/types/src/types/button.d.ts +94 -94
- package/dist/types/src/types/components.d.ts +211 -211
- package/dist/types/src/types/event.d.ts +43 -43
- package/dist/types/src/types/global.d.ts +31 -31
- package/dist/types/src/types/icon.d.ts +32 -32
- package/dist/types/src/types/inst.d.ts +28 -28
- package/dist/types/src/types/main.d.ts +66 -66
- package/dist/types/src/types/mask.d.ts +52 -52
- package/dist/types/src/types/position.d.ts +60 -60
- package/package.json +27 -25
- package/src/Pops.ts +206 -206
- package/src/PopsAnimation.ts +32 -32
- package/src/PopsCSS.ts +54 -54
- package/src/PopsCore.ts +37 -37
- package/src/PopsIcon.ts +95 -95
- package/src/PopsInst.ts +21 -21
- package/src/components/alert/defaultConfig.ts +62 -62
- package/src/components/alert/index.ts +163 -163
- package/src/components/alert/types/index.ts +23 -23
- package/src/components/confirm/defaultConfig.ts +90 -90
- package/src/components/confirm/index.ts +165 -165
- package/src/components/confirm/types/index.ts +13 -17
- package/src/components/drawer/defaultConfig.ts +89 -89
- package/src/components/drawer/index.css +37 -37
- package/src/components/drawer/index.ts +245 -245
- package/src/components/drawer/types/index.ts +62 -61
- package/src/components/folder/defaultConfig.ts +151 -151
- package/src/components/folder/folderIcon.ts +28 -28
- package/src/components/folder/index.css +303 -303
- package/src/components/folder/index.ts +953 -932
- package/src/components/folder/types/index.ts +143 -110
- package/src/components/iframe/defaultConfig.ts +60 -60
- package/src/components/iframe/index.css +76 -76
- package/src/components/iframe/index.ts +331 -331
- package/src/components/iframe/types/index.ts +96 -96
- package/src/components/loading/defaultConfig.ts +29 -29
- package/src/components/loading/index.css +66 -66
- package/src/components/loading/index.ts +101 -101
- package/src/components/loading/types/index.ts +36 -34
- package/src/components/panel/css/components-select.css +84 -84
- package/src/components/panel/defaultConfig.ts +868 -868
- package/src/components/panel/handlerComponents.ts +3993 -3993
- package/src/components/panel/index.css +1403 -1401
- package/src/components/panel/index.ts +221 -221
- package/src/components/panel/types/components-button.ts +56 -56
- package/src/components/panel/types/components-common.ts +73 -73
- package/src/components/panel/types/components-container.ts +25 -25
- package/src/components/panel/types/components-deepMenu.ts +64 -64
- package/src/components/panel/types/components-input.ts +90 -90
- package/src/components/panel/types/components-own.ts +16 -16
- package/src/components/panel/types/components-select.ts +169 -169
- package/src/components/panel/types/components-selectMultiple.ts +105 -104
- package/src/components/panel/types/components-slider.ts +55 -55
- package/src/components/panel/types/components-switch.ts +33 -33
- package/src/components/panel/types/components-textarea.ts +45 -45
- package/src/components/panel/types/index.ts +244 -244
- package/src/components/prompt/defaultConfig.ts +94 -94
- package/src/components/prompt/index.css +34 -34
- package/src/components/prompt/index.ts +187 -215
- package/src/components/prompt/types/index.ts +57 -56
- package/src/components/rightClickMenu/defaultConfig.ts +103 -103
- package/src/components/rightClickMenu/index.css +115 -115
- package/src/components/rightClickMenu/index.ts +662 -662
- package/src/components/rightClickMenu/types/index.ts +145 -143
- package/src/components/searchSuggestion/defaultConfig.ts +63 -63
- package/src/components/searchSuggestion/index.ts +813 -813
- package/src/components/searchSuggestion/types/index.ts +244 -242
- package/src/components/tooltip/defaultConfig.ts +33 -33
- package/src/components/tooltip/index.css +199 -199
- package/src/components/tooltip/index.ts +617 -617
- package/src/components/tooltip/types/index.ts +123 -121
- package/src/config/CommonCSSClassName.ts +17 -17
- package/src/config/GlobalConfig.ts +63 -63
- package/src/css/animation.css +987 -987
- package/src/css/button.css +551 -551
- package/src/css/common.css +54 -54
- package/src/css/index.css +253 -253
- package/src/css/ninePalaceGridPosition.css +50 -50
- package/src/css/scrollbar.css +22 -22
- package/src/handler/PopsElementHandler.ts +303 -303
- package/src/handler/PopsHandler.ts +611 -611
- package/src/types/PopsDOMUtilsEventType.d.ts +313 -313
- package/src/types/animation.d.ts +19 -19
- package/src/types/button.d.ts +94 -94
- package/src/types/components.d.ts +211 -211
- package/src/types/event.d.ts +43 -43
- package/src/types/global.d.ts +31 -31
- package/src/types/icon.d.ts +32 -32
- package/src/types/inst.d.ts +28 -28
- package/src/types/main.d.ts +66 -66
- package/src/types/mask.d.ts +52 -52
- package/src/types/position.d.ts +60 -60
- package/src/utils/PopsDOMUtils.ts +2483 -2483
- package/src/utils/PopsDOMUtilsEventsConfig.ts +4 -4
- package/src/utils/PopsInstanceUtils.ts +714 -714
- package/src/utils/PopsMathUtils.ts +71 -71
- package/src/utils/PopsSafeUtils.ts +22 -22
- package/src/utils/PopsUtils.ts +421 -421
|
@@ -1,56 +1,57 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
PopsTitleConfig,
|
|
3
|
-
PopsDragConfig,
|
|
4
|
-
PopsGeneralConfig,
|
|
5
|
-
PopsMoreButtonConfig,
|
|
6
|
-
} from "../../../types/components";
|
|
7
|
-
|
|
8
|
-
/**
|
|
9
|
-
* pops.prompt
|
|
10
|
-
*/
|
|
11
|
-
export interface PopsPromptConfig
|
|
12
|
-
extends
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
*
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
*
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
*
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
*
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
*
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
}
|
|
1
|
+
import type {
|
|
2
|
+
PopsTitleConfig,
|
|
3
|
+
PopsDragConfig,
|
|
4
|
+
PopsGeneralConfig,
|
|
5
|
+
PopsMoreButtonConfig,
|
|
6
|
+
} from "../../../types/components";
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* pops.prompt
|
|
10
|
+
*/
|
|
11
|
+
export interface PopsPromptConfig
|
|
12
|
+
extends
|
|
13
|
+
PopsTitleConfig,
|
|
14
|
+
PopsDragConfig,
|
|
15
|
+
PopsMoreButtonConfig<{
|
|
16
|
+
text: string;
|
|
17
|
+
}>,
|
|
18
|
+
PopsGeneralConfig {
|
|
19
|
+
/**
|
|
20
|
+
* 内容配置
|
|
21
|
+
*/
|
|
22
|
+
content: {
|
|
23
|
+
/**
|
|
24
|
+
* 内容文字
|
|
25
|
+
*/
|
|
26
|
+
text: string;
|
|
27
|
+
/**
|
|
28
|
+
* 是否是密码
|
|
29
|
+
*/
|
|
30
|
+
password?: boolean;
|
|
31
|
+
/**
|
|
32
|
+
* 是否支持多行输入
|
|
33
|
+
* @default false
|
|
34
|
+
*/
|
|
35
|
+
row?: boolean;
|
|
36
|
+
/**
|
|
37
|
+
* 是否自动获取焦点
|
|
38
|
+
* @default true
|
|
39
|
+
*/
|
|
40
|
+
focus?: boolean;
|
|
41
|
+
/**
|
|
42
|
+
* 是否自动选择输入框的所有文字
|
|
43
|
+
* @default false
|
|
44
|
+
*/
|
|
45
|
+
select?: boolean;
|
|
46
|
+
/**
|
|
47
|
+
* 输入框内的提示文字
|
|
48
|
+
* @default ""
|
|
49
|
+
*/
|
|
50
|
+
placeholder?: string;
|
|
51
|
+
/**
|
|
52
|
+
* (可选)文字的自定义CSS
|
|
53
|
+
* @default ""
|
|
54
|
+
*/
|
|
55
|
+
style?: string;
|
|
56
|
+
};
|
|
57
|
+
}
|
|
@@ -1,103 +1,103 @@
|
|
|
1
|
-
import { PopsIcon } from "../../PopsIcon";
|
|
2
|
-
import type { PopsRightClickMenuConfig } from "./types";
|
|
3
|
-
|
|
4
|
-
export const PopsRightClickMenuDefaultConfig = (): DeepRequired<PopsRightClickMenuConfig> => {
|
|
5
|
-
return {
|
|
6
|
-
$target: document.documentElement,
|
|
7
|
-
targetSelector: null,
|
|
8
|
-
position: "fixed",
|
|
9
|
-
data: [
|
|
10
|
-
{
|
|
11
|
-
icon: PopsIcon.getIcon("search")!,
|
|
12
|
-
iconIsLoading: false,
|
|
13
|
-
text: "搜索",
|
|
14
|
-
item: [],
|
|
15
|
-
callback(clickEvent, contextMenuEvent, $li) {
|
|
16
|
-
console.log("点击:" + this.text, [clickEvent, contextMenuEvent, $li]);
|
|
17
|
-
},
|
|
18
|
-
},
|
|
19
|
-
{
|
|
20
|
-
icon: PopsIcon.getIcon("documentCopy")!,
|
|
21
|
-
iconIsLoading: false,
|
|
22
|
-
text: "复制",
|
|
23
|
-
item: [],
|
|
24
|
-
callback(clickEvent, contextMenuEvent, $li) {
|
|
25
|
-
console.log("点击:" + this.text, [clickEvent, contextMenuEvent, $li]);
|
|
26
|
-
},
|
|
27
|
-
},
|
|
28
|
-
{
|
|
29
|
-
icon: PopsIcon.getIcon("delete")!,
|
|
30
|
-
text: "删除",
|
|
31
|
-
iconIsLoading: false,
|
|
32
|
-
item: [],
|
|
33
|
-
callback(clickEvent, contextMenuEvent, $li) {
|
|
34
|
-
console.log("点击:" + this.text, [clickEvent, contextMenuEvent, $li]);
|
|
35
|
-
},
|
|
36
|
-
},
|
|
37
|
-
{
|
|
38
|
-
icon: PopsIcon.getIcon("loading")!,
|
|
39
|
-
iconIsLoading: true,
|
|
40
|
-
text: "加载",
|
|
41
|
-
item: [],
|
|
42
|
-
callback(clickEvent, contextMenuEvent, $li) {
|
|
43
|
-
console.log("点击:" + this.text, [clickEvent, contextMenuEvent, $li]);
|
|
44
|
-
return false;
|
|
45
|
-
},
|
|
46
|
-
},
|
|
47
|
-
{
|
|
48
|
-
icon: PopsIcon.getIcon("elemePlus")!,
|
|
49
|
-
iconIsLoading: true,
|
|
50
|
-
text: "饿了么",
|
|
51
|
-
callback(clickEvent, contextMenuEvent, $li) {
|
|
52
|
-
console.log("点击:" + this.text, [clickEvent, contextMenuEvent, $li]);
|
|
53
|
-
return false;
|
|
54
|
-
},
|
|
55
|
-
item: [
|
|
56
|
-
{
|
|
57
|
-
icon: "",
|
|
58
|
-
iconIsLoading: false,
|
|
59
|
-
text: "处理文件",
|
|
60
|
-
item: [],
|
|
61
|
-
callback(clickEvent, contextMenuEvent, $li) {
|
|
62
|
-
console.log("点击:" + this.text, [clickEvent, contextMenuEvent, $li]);
|
|
63
|
-
},
|
|
64
|
-
},
|
|
65
|
-
{
|
|
66
|
-
icon: "",
|
|
67
|
-
iconIsLoading: false,
|
|
68
|
-
text: "其它处理",
|
|
69
|
-
callback(clickEvent, contextMenuEvent, $li) {
|
|
70
|
-
console.log("点击:" + this.text, [clickEvent, contextMenuEvent, $li]);
|
|
71
|
-
return false;
|
|
72
|
-
},
|
|
73
|
-
item: [
|
|
74
|
-
{
|
|
75
|
-
icon: PopsIcon.getIcon("view")!,
|
|
76
|
-
iconIsLoading: false,
|
|
77
|
-
text: "查看",
|
|
78
|
-
item: [],
|
|
79
|
-
callback(clickEvent, contextMenuEvent, $li) {
|
|
80
|
-
console.log("点击:" + this.text, [clickEvent, contextMenuEvent, $li]);
|
|
81
|
-
},
|
|
82
|
-
},
|
|
83
|
-
],
|
|
84
|
-
},
|
|
85
|
-
],
|
|
86
|
-
},
|
|
87
|
-
],
|
|
88
|
-
chileMenuLeftOrRightDistance: 0,
|
|
89
|
-
childMenuTopOrBottomDistance: 0,
|
|
90
|
-
useShadowRoot: true,
|
|
91
|
-
className: "",
|
|
92
|
-
isAnimation: false,
|
|
93
|
-
useScaleAnimation: true,
|
|
94
|
-
only: false,
|
|
95
|
-
zIndex: 10000,
|
|
96
|
-
preventDefault: true,
|
|
97
|
-
style: null,
|
|
98
|
-
beforeAppendToPageCallBack() {},
|
|
99
|
-
limitPositionXInView: true,
|
|
100
|
-
limitPositionYInView: true,
|
|
101
|
-
beforeShowCallBack() {},
|
|
102
|
-
};
|
|
103
|
-
};
|
|
1
|
+
import { PopsIcon } from "../../PopsIcon";
|
|
2
|
+
import type { PopsRightClickMenuConfig } from "./types";
|
|
3
|
+
|
|
4
|
+
export const PopsRightClickMenuDefaultConfig = (): DeepRequired<PopsRightClickMenuConfig> => {
|
|
5
|
+
return {
|
|
6
|
+
$target: document.documentElement,
|
|
7
|
+
targetSelector: null,
|
|
8
|
+
position: "fixed",
|
|
9
|
+
data: [
|
|
10
|
+
{
|
|
11
|
+
icon: PopsIcon.getIcon("search")!,
|
|
12
|
+
iconIsLoading: false,
|
|
13
|
+
text: "搜索",
|
|
14
|
+
item: [],
|
|
15
|
+
callback(clickEvent, contextMenuEvent, $li) {
|
|
16
|
+
console.log("点击:" + this.text, [clickEvent, contextMenuEvent, $li]);
|
|
17
|
+
},
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
icon: PopsIcon.getIcon("documentCopy")!,
|
|
21
|
+
iconIsLoading: false,
|
|
22
|
+
text: "复制",
|
|
23
|
+
item: [],
|
|
24
|
+
callback(clickEvent, contextMenuEvent, $li) {
|
|
25
|
+
console.log("点击:" + this.text, [clickEvent, contextMenuEvent, $li]);
|
|
26
|
+
},
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
icon: PopsIcon.getIcon("delete")!,
|
|
30
|
+
text: "删除",
|
|
31
|
+
iconIsLoading: false,
|
|
32
|
+
item: [],
|
|
33
|
+
callback(clickEvent, contextMenuEvent, $li) {
|
|
34
|
+
console.log("点击:" + this.text, [clickEvent, contextMenuEvent, $li]);
|
|
35
|
+
},
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
icon: PopsIcon.getIcon("loading")!,
|
|
39
|
+
iconIsLoading: true,
|
|
40
|
+
text: "加载",
|
|
41
|
+
item: [],
|
|
42
|
+
callback(clickEvent, contextMenuEvent, $li) {
|
|
43
|
+
console.log("点击:" + this.text, [clickEvent, contextMenuEvent, $li]);
|
|
44
|
+
return false;
|
|
45
|
+
},
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
icon: PopsIcon.getIcon("elemePlus")!,
|
|
49
|
+
iconIsLoading: true,
|
|
50
|
+
text: "饿了么",
|
|
51
|
+
callback(clickEvent, contextMenuEvent, $li) {
|
|
52
|
+
console.log("点击:" + this.text, [clickEvent, contextMenuEvent, $li]);
|
|
53
|
+
return false;
|
|
54
|
+
},
|
|
55
|
+
item: [
|
|
56
|
+
{
|
|
57
|
+
icon: "",
|
|
58
|
+
iconIsLoading: false,
|
|
59
|
+
text: "处理文件",
|
|
60
|
+
item: [],
|
|
61
|
+
callback(clickEvent, contextMenuEvent, $li) {
|
|
62
|
+
console.log("点击:" + this.text, [clickEvent, contextMenuEvent, $li]);
|
|
63
|
+
},
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
icon: "",
|
|
67
|
+
iconIsLoading: false,
|
|
68
|
+
text: "其它处理",
|
|
69
|
+
callback(clickEvent, contextMenuEvent, $li) {
|
|
70
|
+
console.log("点击:" + this.text, [clickEvent, contextMenuEvent, $li]);
|
|
71
|
+
return false;
|
|
72
|
+
},
|
|
73
|
+
item: [
|
|
74
|
+
{
|
|
75
|
+
icon: PopsIcon.getIcon("view")!,
|
|
76
|
+
iconIsLoading: false,
|
|
77
|
+
text: "查看",
|
|
78
|
+
item: [],
|
|
79
|
+
callback(clickEvent, contextMenuEvent, $li) {
|
|
80
|
+
console.log("点击:" + this.text, [clickEvent, contextMenuEvent, $li]);
|
|
81
|
+
},
|
|
82
|
+
},
|
|
83
|
+
],
|
|
84
|
+
},
|
|
85
|
+
],
|
|
86
|
+
},
|
|
87
|
+
],
|
|
88
|
+
chileMenuLeftOrRightDistance: 0,
|
|
89
|
+
childMenuTopOrBottomDistance: 0,
|
|
90
|
+
useShadowRoot: true,
|
|
91
|
+
className: "",
|
|
92
|
+
isAnimation: false,
|
|
93
|
+
useScaleAnimation: true,
|
|
94
|
+
only: false,
|
|
95
|
+
zIndex: 10000,
|
|
96
|
+
preventDefault: true,
|
|
97
|
+
style: null,
|
|
98
|
+
beforeAppendToPageCallBack() {},
|
|
99
|
+
limitPositionXInView: true,
|
|
100
|
+
limitPositionYInView: true,
|
|
101
|
+
beforeShowCallBack() {},
|
|
102
|
+
};
|
|
103
|
+
};
|
|
@@ -1,115 +1,115 @@
|
|
|
1
|
-
.pops-rightClickMenu {
|
|
2
|
-
--pops-right-context-color: #000000;
|
|
3
|
-
--pops-right-context-bg-color: rgb(255, 255, 255, 0.733);
|
|
4
|
-
--pops-right-context-backdrop-filter: blur(10px);
|
|
5
|
-
--pops-right-context-z-index: 10000;
|
|
6
|
-
--pops-right-context-bd-radius: 6px;
|
|
7
|
-
--pops-right-context-menu-shadow-color: rgb(114, 114, 114, 0.251);
|
|
8
|
-
--pops-right-context-menu-row-bd-radius: 6px;
|
|
9
|
-
--pops-right-context-menu-row-visited-color: rgb(0, 0, 0, 0.067);
|
|
10
|
-
--pops-right-context-menu-row-hover-color: rgb(0, 0, 0, 0.067);
|
|
11
|
-
}
|
|
12
|
-
.pops-rightClickMenu * {
|
|
13
|
-
-webkit-box-sizing: border-box;
|
|
14
|
-
box-sizing: border-box;
|
|
15
|
-
margin: 0;
|
|
16
|
-
padding: 0;
|
|
17
|
-
-webkit-tap-highlight-color: transparent;
|
|
18
|
-
scrollbar-width: thin;
|
|
19
|
-
}
|
|
20
|
-
.pops-rightClickMenu {
|
|
21
|
-
position: fixed;
|
|
22
|
-
z-index: var(--pops-right-context-z-index);
|
|
23
|
-
text-align: center;
|
|
24
|
-
border-radius: var(--pops-right-context-bd-radius);
|
|
25
|
-
font-size: 16px;
|
|
26
|
-
font-weight: 500;
|
|
27
|
-
color: var(--pops-right-context-color);
|
|
28
|
-
background: var(--pops-right-context-bg-color);
|
|
29
|
-
box-shadow: 0 0.25rem 0.5rem 0.125rem var(--pops-right-context-menu-shadow-color);
|
|
30
|
-
-webkit-backdrop-filter: var(--pops-right-context-backdrop-filter);
|
|
31
|
-
backdrop-filter: var(--pops-right-context-backdrop-filter);
|
|
32
|
-
}
|
|
33
|
-
.pops-rightClickMenu[data-position="absolute"] {
|
|
34
|
-
position: absolute;
|
|
35
|
-
}
|
|
36
|
-
/* scale动画 */
|
|
37
|
-
.pops-rightClickMenu-anim-scale {
|
|
38
|
-
transition:
|
|
39
|
-
opacity 150ms cubic-bezier(0.2, 0, 0.2, 1),
|
|
40
|
-
transform 150ms cubic-bezier(0.2, 0, 0.2, 1);
|
|
41
|
-
transform: scale(0.85);
|
|
42
|
-
}
|
|
43
|
-
.pops-rightClickMenu-anim-scale-open {
|
|
44
|
-
transform: scale(1);
|
|
45
|
-
}
|
|
46
|
-
.pops-rightClickMenu-anim-scale-not-open {
|
|
47
|
-
opacity: 0;
|
|
48
|
-
}
|
|
49
|
-
/* 展开动画 */
|
|
50
|
-
.pops-rightClickMenu-anim-grid {
|
|
51
|
-
display: grid;
|
|
52
|
-
transition: 0.3s;
|
|
53
|
-
grid-template-rows: 0fr;
|
|
54
|
-
}
|
|
55
|
-
.pops-rightClickMenu-anim-show {
|
|
56
|
-
grid-template-rows: 1fr;
|
|
57
|
-
}
|
|
58
|
-
.pops-rightClickMenu-is-visited {
|
|
59
|
-
background: var(--pops-right-context-menu-row-visited-color);
|
|
60
|
-
}
|
|
61
|
-
i.pops-rightClickMenu-icon {
|
|
62
|
-
height: 1em;
|
|
63
|
-
width: 1em;
|
|
64
|
-
line-height: normal;
|
|
65
|
-
align-content: center;
|
|
66
|
-
display: inline-flex;
|
|
67
|
-
justify-content: center;
|
|
68
|
-
align-items: center;
|
|
69
|
-
position: relative;
|
|
70
|
-
fill: currentColor;
|
|
71
|
-
color: inherit;
|
|
72
|
-
font-size: inherit;
|
|
73
|
-
margin-right: 6px;
|
|
74
|
-
}
|
|
75
|
-
i.pops-rightClickMenu-icon[is-loading="true"] {
|
|
76
|
-
animation: rotating 2s linear infinite;
|
|
77
|
-
}
|
|
78
|
-
.pops-rightClickMenu li:hover {
|
|
79
|
-
background: var(--pops-right-context-menu-row-hover-color);
|
|
80
|
-
cursor: pointer;
|
|
81
|
-
}
|
|
82
|
-
.pops-rightClickMenu ul {
|
|
83
|
-
margin: 0;
|
|
84
|
-
padding: 0;
|
|
85
|
-
display: flex;
|
|
86
|
-
flex-direction: column;
|
|
87
|
-
align-items: flex-start;
|
|
88
|
-
justify-content: center;
|
|
89
|
-
overflow: hidden;
|
|
90
|
-
}
|
|
91
|
-
.pops-rightClickMenu ul li {
|
|
92
|
-
padding: 5px 10px;
|
|
93
|
-
margin: 5px 5px;
|
|
94
|
-
border-radius: var(--pops-right-context-menu-row-bd-radius);
|
|
95
|
-
display: flex;
|
|
96
|
-
width: -moz-available;
|
|
97
|
-
width: -webkit-fill-available;
|
|
98
|
-
text-align: left;
|
|
99
|
-
align-items: center;
|
|
100
|
-
-webkit-user-select: none;
|
|
101
|
-
-moz-user-select: none;
|
|
102
|
-
-ms-user-select: none;
|
|
103
|
-
user-select: none;
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
@media (prefers-color-scheme: dark) {
|
|
107
|
-
/*.pops-rightClickMenu {
|
|
108
|
-
--pops-right-context-menu-shadow-color: #3c3c3c;
|
|
109
|
-
}*/
|
|
110
|
-
}
|
|
111
|
-
@media (hover: hover) {
|
|
112
|
-
.pops-rightClickMenu ul li:active {
|
|
113
|
-
transform: scale(0.98);
|
|
114
|
-
}
|
|
115
|
-
}
|
|
1
|
+
.pops-rightClickMenu {
|
|
2
|
+
--pops-right-context-color: #000000;
|
|
3
|
+
--pops-right-context-bg-color: rgb(255, 255, 255, 0.733);
|
|
4
|
+
--pops-right-context-backdrop-filter: blur(10px);
|
|
5
|
+
--pops-right-context-z-index: 10000;
|
|
6
|
+
--pops-right-context-bd-radius: 6px;
|
|
7
|
+
--pops-right-context-menu-shadow-color: rgb(114, 114, 114, 0.251);
|
|
8
|
+
--pops-right-context-menu-row-bd-radius: 6px;
|
|
9
|
+
--pops-right-context-menu-row-visited-color: rgb(0, 0, 0, 0.067);
|
|
10
|
+
--pops-right-context-menu-row-hover-color: rgb(0, 0, 0, 0.067);
|
|
11
|
+
}
|
|
12
|
+
.pops-rightClickMenu * {
|
|
13
|
+
-webkit-box-sizing: border-box;
|
|
14
|
+
box-sizing: border-box;
|
|
15
|
+
margin: 0;
|
|
16
|
+
padding: 0;
|
|
17
|
+
-webkit-tap-highlight-color: transparent;
|
|
18
|
+
scrollbar-width: thin;
|
|
19
|
+
}
|
|
20
|
+
.pops-rightClickMenu {
|
|
21
|
+
position: fixed;
|
|
22
|
+
z-index: var(--pops-right-context-z-index);
|
|
23
|
+
text-align: center;
|
|
24
|
+
border-radius: var(--pops-right-context-bd-radius);
|
|
25
|
+
font-size: 16px;
|
|
26
|
+
font-weight: 500;
|
|
27
|
+
color: var(--pops-right-context-color);
|
|
28
|
+
background: var(--pops-right-context-bg-color);
|
|
29
|
+
box-shadow: 0 0.25rem 0.5rem 0.125rem var(--pops-right-context-menu-shadow-color);
|
|
30
|
+
-webkit-backdrop-filter: var(--pops-right-context-backdrop-filter);
|
|
31
|
+
backdrop-filter: var(--pops-right-context-backdrop-filter);
|
|
32
|
+
}
|
|
33
|
+
.pops-rightClickMenu[data-position="absolute"] {
|
|
34
|
+
position: absolute;
|
|
35
|
+
}
|
|
36
|
+
/* scale动画 */
|
|
37
|
+
.pops-rightClickMenu-anim-scale {
|
|
38
|
+
transition:
|
|
39
|
+
opacity 150ms cubic-bezier(0.2, 0, 0.2, 1),
|
|
40
|
+
transform 150ms cubic-bezier(0.2, 0, 0.2, 1);
|
|
41
|
+
transform: scale(0.85);
|
|
42
|
+
}
|
|
43
|
+
.pops-rightClickMenu-anim-scale-open {
|
|
44
|
+
transform: scale(1);
|
|
45
|
+
}
|
|
46
|
+
.pops-rightClickMenu-anim-scale-not-open {
|
|
47
|
+
opacity: 0;
|
|
48
|
+
}
|
|
49
|
+
/* 展开动画 */
|
|
50
|
+
.pops-rightClickMenu-anim-grid {
|
|
51
|
+
display: grid;
|
|
52
|
+
transition: 0.3s;
|
|
53
|
+
grid-template-rows: 0fr;
|
|
54
|
+
}
|
|
55
|
+
.pops-rightClickMenu-anim-show {
|
|
56
|
+
grid-template-rows: 1fr;
|
|
57
|
+
}
|
|
58
|
+
.pops-rightClickMenu-is-visited {
|
|
59
|
+
background: var(--pops-right-context-menu-row-visited-color);
|
|
60
|
+
}
|
|
61
|
+
i.pops-rightClickMenu-icon {
|
|
62
|
+
height: 1em;
|
|
63
|
+
width: 1em;
|
|
64
|
+
line-height: normal;
|
|
65
|
+
align-content: center;
|
|
66
|
+
display: inline-flex;
|
|
67
|
+
justify-content: center;
|
|
68
|
+
align-items: center;
|
|
69
|
+
position: relative;
|
|
70
|
+
fill: currentColor;
|
|
71
|
+
color: inherit;
|
|
72
|
+
font-size: inherit;
|
|
73
|
+
margin-right: 6px;
|
|
74
|
+
}
|
|
75
|
+
i.pops-rightClickMenu-icon[is-loading="true"] {
|
|
76
|
+
animation: rotating 2s linear infinite;
|
|
77
|
+
}
|
|
78
|
+
.pops-rightClickMenu li:hover {
|
|
79
|
+
background: var(--pops-right-context-menu-row-hover-color);
|
|
80
|
+
cursor: pointer;
|
|
81
|
+
}
|
|
82
|
+
.pops-rightClickMenu ul {
|
|
83
|
+
margin: 0;
|
|
84
|
+
padding: 0;
|
|
85
|
+
display: flex;
|
|
86
|
+
flex-direction: column;
|
|
87
|
+
align-items: flex-start;
|
|
88
|
+
justify-content: center;
|
|
89
|
+
overflow: hidden;
|
|
90
|
+
}
|
|
91
|
+
.pops-rightClickMenu ul li {
|
|
92
|
+
padding: 5px 10px;
|
|
93
|
+
margin: 5px 5px;
|
|
94
|
+
border-radius: var(--pops-right-context-menu-row-bd-radius);
|
|
95
|
+
display: flex;
|
|
96
|
+
width: -moz-available;
|
|
97
|
+
width: -webkit-fill-available;
|
|
98
|
+
text-align: left;
|
|
99
|
+
align-items: center;
|
|
100
|
+
-webkit-user-select: none;
|
|
101
|
+
-moz-user-select: none;
|
|
102
|
+
-ms-user-select: none;
|
|
103
|
+
user-select: none;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
@media (prefers-color-scheme: dark) {
|
|
107
|
+
/*.pops-rightClickMenu {
|
|
108
|
+
--pops-right-context-menu-shadow-color: #3c3c3c;
|
|
109
|
+
}*/
|
|
110
|
+
}
|
|
111
|
+
@media (hover: hover) {
|
|
112
|
+
.pops-rightClickMenu ul li:active {
|
|
113
|
+
transform: scale(0.98);
|
|
114
|
+
}
|
|
115
|
+
}
|