@whitesev/pops 2.6.0 → 3.0.0
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 +1233 -1092
- 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 +1233 -1092
- 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 +1233 -1092
- 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 +1233 -1092
- 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 +1233 -1092
- 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 +1233 -1092
- 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/eslint.config.d.mts +2 -0
- package/dist/types/src/Pops.d.ts +98 -103
- package/dist/types/src/PopsInst.d.ts +2 -2
- package/dist/types/src/components/alert/defaultConfig.d.ts +2 -0
- package/dist/types/src/components/alert/index.d.ts +2 -2
- package/dist/types/src/components/alert/types/index.d.ts +4 -4
- package/dist/types/src/components/confirm/defaultConfig.d.ts +2 -0
- package/dist/types/src/components/confirm/index.d.ts +2 -2
- package/dist/types/src/components/confirm/types/index.d.ts +2 -2
- package/dist/types/src/components/drawer/defaultConfig.d.ts +2 -0
- package/dist/types/src/components/drawer/index.d.ts +2 -2
- package/dist/types/src/components/drawer/types/index.d.ts +2 -2
- package/dist/types/src/components/folder/defaultConfig.d.ts +2 -0
- package/dist/types/src/components/folder/index.d.ts +2 -2
- package/dist/types/src/components/folder/types/index.d.ts +31 -7
- package/dist/types/src/components/iframe/defaultConfig.d.ts +2 -0
- package/dist/types/src/components/iframe/index.d.ts +2 -5
- package/dist/types/src/components/iframe/types/index.d.ts +13 -42
- package/dist/types/src/components/loading/defaultConfig.d.ts +2 -0
- package/dist/types/src/components/loading/index.d.ts +2 -2
- package/dist/types/src/components/loading/types/index.d.ts +4 -4
- package/dist/types/src/components/panel/defaultConfig.d.ts +2 -0
- package/dist/types/src/components/panel/handlerComponents.d.ts +47 -43
- package/dist/types/src/components/panel/index.d.ts +3 -3
- package/dist/types/src/components/panel/types/components-button.d.ts +7 -6
- package/dist/types/src/components/panel/types/components-common.d.ts +7 -7
- package/dist/types/src/components/panel/types/components-container.d.ts +24 -0
- package/dist/types/src/components/panel/types/components-deepMenu.d.ts +13 -13
- package/dist/types/src/components/panel/types/components-input.d.ts +6 -6
- package/dist/types/src/components/panel/types/components-own.d.ts +2 -2
- package/dist/types/src/components/panel/types/components-select.d.ts +9 -9
- package/dist/types/src/components/panel/types/components-selectMultiple.d.ts +8 -8
- package/dist/types/src/components/panel/types/components-slider.d.ts +7 -7
- package/dist/types/src/components/panel/types/components-switch.d.ts +6 -6
- package/dist/types/src/components/panel/types/components-textarea.d.ts +6 -6
- package/dist/types/src/components/panel/types/index.d.ts +36 -28
- package/dist/types/src/components/prompt/defaultConfig.d.ts +2 -0
- package/dist/types/src/components/prompt/index.d.ts +2 -2
- package/dist/types/src/components/prompt/types/index.d.ts +4 -3
- package/dist/types/src/components/rightClickMenu/defaultConfig.d.ts +2 -0
- package/dist/types/src/components/rightClickMenu/index.d.ts +29 -27
- package/dist/types/src/components/rightClickMenu/types/index.d.ts +32 -11
- package/dist/types/src/components/searchSuggestion/defaultConfig.d.ts +2 -0
- package/dist/types/src/components/searchSuggestion/index.d.ts +21 -6
- package/dist/types/src/components/searchSuggestion/types/index.d.ts +15 -13
- package/dist/types/src/components/tooltip/defaultConfig.d.ts +2 -0
- package/dist/types/src/components/tooltip/index.d.ts +6 -21
- package/dist/types/src/components/tooltip/types/index.d.ts +8 -6
- package/dist/types/src/config/GlobalConfig.d.ts +3 -3
- package/dist/types/src/handler/PopsElementHandler.d.ts +6 -6
- package/dist/types/src/handler/PopsHandler.d.ts +18 -18
- package/dist/types/src/types/button.d.ts +4 -97
- package/dist/types/src/types/components.d.ts +8 -8
- package/dist/types/src/types/event.d.ts +0 -30
- package/dist/types/src/types/global.d.ts +2 -0
- package/dist/types/src/types/inst.d.ts +5 -5
- package/dist/types/src/types/main.d.ts +35 -80
- package/dist/types/src/types/mask.d.ts +18 -15
- package/dist/types/src/utils/PopsInstanceUtils.d.ts +15 -15
- package/dist/types/src/utils/PopsUtils.d.ts +4 -0
- package/package.json +10 -10
- package/src/Pops.ts +44 -44
- package/src/PopsAnimation.ts +1 -1
- package/src/PopsInst.ts +2 -2
- package/src/components/alert/{config.ts → defaultConfig.ts} +7 -7
- package/src/components/alert/index.ts +16 -18
- package/src/components/alert/types/index.ts +4 -4
- package/src/components/confirm/{config.ts → defaultConfig.ts} +11 -11
- package/src/components/confirm/index.ts +11 -13
- package/src/components/confirm/types/index.ts +3 -3
- package/src/components/drawer/{config.ts → defaultConfig.ts} +10 -10
- package/src/components/drawer/index.ts +18 -17
- package/src/components/drawer/types/index.ts +3 -3
- package/src/components/folder/{config.ts → defaultConfig.ts} +22 -18
- package/src/components/folder/index.ts +61 -60
- package/src/components/folder/types/index.ts +31 -18
- package/src/components/iframe/{config.ts → defaultConfig.ts} +2 -2
- package/src/components/iframe/index.ts +24 -29
- package/src/components/iframe/types/index.ts +13 -56
- package/src/components/loading/{config.ts → defaultConfig.ts} +3 -3
- package/src/components/loading/index.ts +13 -11
- package/src/components/loading/types/index.ts +5 -5
- package/src/components/panel/{config.ts → defaultConfig.ts} +115 -37
- package/src/components/panel/handlerComponents.ts +446 -428
- package/src/components/panel/index.css +11 -3
- package/src/components/panel/index.ts +15 -28
- package/src/components/panel/types/components-button.ts +7 -6
- package/src/components/panel/types/components-common.ts +7 -7
- package/src/components/panel/types/components-container.ts +25 -0
- package/src/components/panel/types/components-deepMenu.ts +13 -13
- package/src/components/panel/types/components-input.ts +6 -6
- package/src/components/panel/types/components-own.ts +2 -2
- package/src/components/panel/types/components-select.ts +11 -11
- package/src/components/panel/types/components-selectMultiple.ts +8 -9
- package/src/components/panel/types/components-slider.ts +7 -7
- package/src/components/panel/types/components-switch.ts +6 -6
- package/src/components/panel/types/components-textarea.ts +6 -6
- package/src/components/panel/types/index.ts +45 -38
- package/src/components/prompt/{config.ts → defaultConfig.ts} +10 -10
- package/src/components/prompt/index.ts +13 -15
- package/src/components/prompt/types/index.ts +4 -3
- package/src/components/rightClickMenu/{config.ts → defaultConfig.ts} +20 -19
- package/src/components/rightClickMenu/index.ts +125 -108
- package/src/components/rightClickMenu/types/index.ts +36 -14
- package/src/components/searchSuggestion/{config.ts → defaultConfig.ts} +18 -11
- package/src/components/searchSuggestion/index.ts +116 -96
- package/src/components/searchSuggestion/types/index.ts +17 -15
- package/src/components/tooltip/{config.ts → defaultConfig.ts} +5 -6
- package/src/components/tooltip/index.ts +21 -21
- package/src/components/tooltip/types/index.ts +9 -7
- package/src/config/GlobalConfig.ts +2 -2
- package/src/css/common.css +6 -0
- package/src/handler/PopsElementHandler.ts +29 -30
- package/src/handler/PopsHandler.ts +43 -43
- package/src/svg/cpu.svg +7 -7
- package/src/svg/delete.svg +4 -4
- package/src/svg/documentCopy.svg +4 -4
- package/src/svg/edit.svg +7 -7
- package/src/svg/eleme.svg +4 -4
- package/src/svg/elemePlus.svg +4 -4
- package/src/svg/headset.svg +4 -4
- package/src/svg/hide.svg +7 -7
- package/src/svg/keyboard.svg +7 -7
- package/src/svg/loading.svg +4 -4
- package/src/svg/max.svg +4 -4
- package/src/svg/min.svg +2 -4
- package/src/svg/mise.svg +4 -4
- package/src/svg/monitor.svg +4 -4
- package/src/svg/next.svg +4 -4
- package/src/svg/picture.svg +7 -7
- package/src/svg/prev.svg +4 -4
- package/src/svg/search.svg +4 -4
- package/src/svg/share.svg +4 -4
- package/src/svg/upload.svg +4 -4
- package/src/svg/videoPause.svg +4 -4
- package/src/svg/videoPlay.svg +4 -4
- package/src/svg/view.svg +4 -4
- package/src/types/button.d.ts +4 -97
- package/src/types/components.d.ts +8 -8
- package/src/types/event.d.ts +0 -30
- package/src/types/global.d.ts +2 -0
- package/src/types/inst.d.ts +5 -5
- package/src/types/main.d.ts +35 -80
- package/src/types/mask.d.ts +18 -15
- package/src/utils/PopsDOMUtils.ts +34 -34
- package/src/utils/PopsInstanceUtils.ts +129 -139
- package/src/utils/PopsUtils.ts +60 -45
- package/dist/types/src/components/alert/config.d.ts +0 -2
- package/dist/types/src/components/confirm/config.d.ts +0 -2
- package/dist/types/src/components/drawer/config.d.ts +0 -2
- package/dist/types/src/components/folder/config.d.ts +0 -2
- package/dist/types/src/components/iframe/config.d.ts +0 -2
- package/dist/types/src/components/loading/config.d.ts +0 -2
- package/dist/types/src/components/panel/config.d.ts +0 -2
- package/dist/types/src/components/panel/types/components-forms.d.ts +0 -23
- package/dist/types/src/components/prompt/config.d.ts +0 -2
- package/dist/types/src/components/rightClickMenu/config.d.ts +0 -2
- package/dist/types/src/components/searchSuggestion/config.d.ts +0 -2
- package/dist/types/src/components/tooltip/config.d.ts +0 -2
- package/src/components/panel/types/components-forms.ts +0 -24
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { PopsPromptConfig } from "./types/index";
|
|
2
2
|
|
|
3
|
-
export const
|
|
3
|
+
export const PopsPromptDefaultConfig = (): DeepRequired<PopsPromptConfig> => {
|
|
4
4
|
return {
|
|
5
5
|
title: {
|
|
6
6
|
text: "默认标题",
|
|
@@ -30,8 +30,8 @@ export const PopsPromptConfig = (): DeepRequired<PopsPromptDetails> => {
|
|
|
30
30
|
iconIsLoading: false,
|
|
31
31
|
text: "确定",
|
|
32
32
|
type: "success",
|
|
33
|
-
callback(
|
|
34
|
-
|
|
33
|
+
callback(eventConfig) {
|
|
34
|
+
eventConfig.close();
|
|
35
35
|
},
|
|
36
36
|
},
|
|
37
37
|
cancel: {
|
|
@@ -42,8 +42,8 @@ export const PopsPromptConfig = (): DeepRequired<PopsPromptDetails> => {
|
|
|
42
42
|
iconIsLoading: false,
|
|
43
43
|
text: "关闭",
|
|
44
44
|
type: "default",
|
|
45
|
-
callback(
|
|
46
|
-
|
|
45
|
+
callback(eventConfig) {
|
|
46
|
+
eventConfig.close();
|
|
47
47
|
},
|
|
48
48
|
},
|
|
49
49
|
other: {
|
|
@@ -54,14 +54,14 @@ export const PopsPromptConfig = (): DeepRequired<PopsPromptDetails> => {
|
|
|
54
54
|
iconIsLoading: false,
|
|
55
55
|
text: "其它按钮",
|
|
56
56
|
type: "default",
|
|
57
|
-
callback(
|
|
58
|
-
|
|
57
|
+
callback(eventConfig) {
|
|
58
|
+
eventConfig.close();
|
|
59
59
|
},
|
|
60
60
|
},
|
|
61
61
|
close: {
|
|
62
62
|
enable: true,
|
|
63
|
-
callback(
|
|
64
|
-
|
|
63
|
+
callback(eventConfig) {
|
|
64
|
+
eventConfig.close();
|
|
65
65
|
},
|
|
66
66
|
},
|
|
67
67
|
},
|
|
@@ -6,18 +6,18 @@ import type { PopsType } from "../../types/main";
|
|
|
6
6
|
import { popsDOMUtils } from "../../utils/PopsDOMUtils";
|
|
7
7
|
import { PopsInstanceUtils } from "../../utils/PopsInstanceUtils";
|
|
8
8
|
import { popsUtils } from "../../utils/PopsUtils";
|
|
9
|
-
import {
|
|
10
|
-
import type {
|
|
9
|
+
import { PopsPromptDefaultConfig } from "./defaultConfig";
|
|
10
|
+
import type { PopsPromptConfig } from "./types/index";
|
|
11
11
|
|
|
12
12
|
export const PopsPrompt = {
|
|
13
|
-
init(
|
|
13
|
+
init(__config__: PopsPromptConfig) {
|
|
14
14
|
const guid = popsUtils.getRandomGUID();
|
|
15
15
|
// 设置当前类型
|
|
16
16
|
const popsType: PopsType = "prompt";
|
|
17
17
|
|
|
18
|
-
let config =
|
|
18
|
+
let config = PopsPromptDefaultConfig();
|
|
19
19
|
config = popsUtils.assign(config, GlobalConfig.getGlobalConfig());
|
|
20
|
-
config = popsUtils.assign(config,
|
|
20
|
+
config = popsUtils.assign(config, __config__);
|
|
21
21
|
config = PopsHandler.handleOnly(popsType, config);
|
|
22
22
|
|
|
23
23
|
const { $shadowContainer, $shadowRoot } = PopsHandler.handlerShadow(config);
|
|
@@ -133,7 +133,7 @@ export const PopsPrompt = {
|
|
|
133
133
|
$pops,
|
|
134
134
|
$mask
|
|
135
135
|
);
|
|
136
|
-
|
|
136
|
+
// 输入框赋值初始值
|
|
137
137
|
|
|
138
138
|
$input.value = config.content.text;
|
|
139
139
|
PopsHandler.handlePromptClickEvent(
|
|
@@ -170,7 +170,7 @@ export const PopsPrompt = {
|
|
|
170
170
|
|
|
171
171
|
config.btn.other.callback
|
|
172
172
|
);
|
|
173
|
-
|
|
173
|
+
// 创建到页面中
|
|
174
174
|
|
|
175
175
|
popsDOMUtils.append($shadowRoot, $elList);
|
|
176
176
|
if (typeof config.beforeAppendToPageCallBack === "function") {
|
|
@@ -183,15 +183,13 @@ export const PopsPrompt = {
|
|
|
183
183
|
}
|
|
184
184
|
PopsHandler.handlePush(popsType, {
|
|
185
185
|
guid: guid,
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
maskElement: $mask!,
|
|
186
|
+
$anim: $anim,
|
|
187
|
+
$pops: $pops!,
|
|
188
|
+
$mask: $mask!,
|
|
191
189
|
$shadowContainer: $shadowContainer,
|
|
192
190
|
$shadowRoot: $shadowRoot,
|
|
193
191
|
});
|
|
194
|
-
|
|
192
|
+
// 拖拽
|
|
195
193
|
if (config.drag) {
|
|
196
194
|
PopsInstanceUtils.drag($pops!, {
|
|
197
195
|
dragElement: $title!,
|
|
@@ -201,11 +199,11 @@ export const PopsPrompt = {
|
|
|
201
199
|
endCallBack: config.dragEndCallBack,
|
|
202
200
|
});
|
|
203
201
|
}
|
|
204
|
-
|
|
202
|
+
// 设置自动获取焦点
|
|
205
203
|
if (config.content.focus) {
|
|
206
204
|
$input.focus();
|
|
207
205
|
}
|
|
208
|
-
|
|
206
|
+
// 设置自动选中所有文字
|
|
209
207
|
if (config.content.select) {
|
|
210
208
|
$input.select();
|
|
211
209
|
}
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import type {
|
|
2
2
|
PopsTitleConfig,
|
|
3
3
|
PopsDragConfig,
|
|
4
|
-
|
|
4
|
+
PopsGeneralConfig,
|
|
5
5
|
PopsMoreButtonConfig,
|
|
6
6
|
} from "../../../types/components";
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
9
|
* pops.prompt
|
|
10
10
|
*/
|
|
11
|
-
export interface
|
|
11
|
+
export interface PopsPromptConfig
|
|
12
12
|
extends PopsTitleConfig,
|
|
13
13
|
PopsDragConfig,
|
|
14
14
|
PopsMoreButtonConfig<{
|
|
15
15
|
text: string;
|
|
16
16
|
}>,
|
|
17
|
-
|
|
17
|
+
PopsGeneralConfig {
|
|
18
18
|
/**
|
|
19
19
|
* 内容配置
|
|
20
20
|
*/
|
|
@@ -49,6 +49,7 @@ export interface PopsPromptDetails
|
|
|
49
49
|
placeholder?: string;
|
|
50
50
|
/**
|
|
51
51
|
* (可选)文字的自定义CSS
|
|
52
|
+
* @default ""
|
|
52
53
|
*/
|
|
53
54
|
style?: string;
|
|
54
55
|
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { PopsIcon } from "../../PopsIcon";
|
|
2
|
-
import type {
|
|
2
|
+
import type { PopsRightClickMenuConfig } from "./types";
|
|
3
3
|
|
|
4
|
-
export const
|
|
4
|
+
export const PopsRightClickMenuDefaultConfig = (): DeepRequired<PopsRightClickMenuConfig> => {
|
|
5
5
|
return {
|
|
6
|
-
target: document.documentElement,
|
|
6
|
+
$target: document.documentElement,
|
|
7
7
|
targetSelector: null,
|
|
8
8
|
position: "fixed",
|
|
9
9
|
data: [
|
|
@@ -12,8 +12,8 @@ export const rightClickMenuConfig = (): DeepRequired<PopsRightClickMenuDetails>
|
|
|
12
12
|
iconIsLoading: false,
|
|
13
13
|
text: "搜索",
|
|
14
14
|
item: [],
|
|
15
|
-
callback(clickEvent, contextMenuEvent,
|
|
16
|
-
console.log("点击:" + this.text, [clickEvent, contextMenuEvent,
|
|
15
|
+
callback(clickEvent, contextMenuEvent, $li) {
|
|
16
|
+
console.log("点击:" + this.text, [clickEvent, contextMenuEvent, $li]);
|
|
17
17
|
},
|
|
18
18
|
},
|
|
19
19
|
{
|
|
@@ -21,8 +21,8 @@ export const rightClickMenuConfig = (): DeepRequired<PopsRightClickMenuDetails>
|
|
|
21
21
|
iconIsLoading: false,
|
|
22
22
|
text: "复制",
|
|
23
23
|
item: [],
|
|
24
|
-
callback(clickEvent, contextMenuEvent,
|
|
25
|
-
console.log("点击:" + this.text, [clickEvent, contextMenuEvent,
|
|
24
|
+
callback(clickEvent, contextMenuEvent, $li) {
|
|
25
|
+
console.log("点击:" + this.text, [clickEvent, contextMenuEvent, $li]);
|
|
26
26
|
},
|
|
27
27
|
},
|
|
28
28
|
{
|
|
@@ -30,8 +30,8 @@ export const rightClickMenuConfig = (): DeepRequired<PopsRightClickMenuDetails>
|
|
|
30
30
|
text: "删除",
|
|
31
31
|
iconIsLoading: false,
|
|
32
32
|
item: [],
|
|
33
|
-
callback(clickEvent, contextMenuEvent,
|
|
34
|
-
console.log("点击:" + this.text, [clickEvent, contextMenuEvent,
|
|
33
|
+
callback(clickEvent, contextMenuEvent, $li) {
|
|
34
|
+
console.log("点击:" + this.text, [clickEvent, contextMenuEvent, $li]);
|
|
35
35
|
},
|
|
36
36
|
},
|
|
37
37
|
{
|
|
@@ -39,8 +39,8 @@ export const rightClickMenuConfig = (): DeepRequired<PopsRightClickMenuDetails>
|
|
|
39
39
|
iconIsLoading: true,
|
|
40
40
|
text: "加载",
|
|
41
41
|
item: [],
|
|
42
|
-
callback(clickEvent, contextMenuEvent,
|
|
43
|
-
console.log("点击:" + this.text, [clickEvent, contextMenuEvent,
|
|
42
|
+
callback(clickEvent, contextMenuEvent, $li) {
|
|
43
|
+
console.log("点击:" + this.text, [clickEvent, contextMenuEvent, $li]);
|
|
44
44
|
return false;
|
|
45
45
|
},
|
|
46
46
|
},
|
|
@@ -48,8 +48,8 @@ export const rightClickMenuConfig = (): DeepRequired<PopsRightClickMenuDetails>
|
|
|
48
48
|
icon: PopsIcon.getIcon("elemePlus")!,
|
|
49
49
|
iconIsLoading: true,
|
|
50
50
|
text: "饿了么",
|
|
51
|
-
callback(clickEvent, contextMenuEvent,
|
|
52
|
-
console.log("点击:" + this.text, [clickEvent, contextMenuEvent,
|
|
51
|
+
callback(clickEvent, contextMenuEvent, $li) {
|
|
52
|
+
console.log("点击:" + this.text, [clickEvent, contextMenuEvent, $li]);
|
|
53
53
|
return false;
|
|
54
54
|
},
|
|
55
55
|
item: [
|
|
@@ -58,16 +58,17 @@ export const rightClickMenuConfig = (): DeepRequired<PopsRightClickMenuDetails>
|
|
|
58
58
|
iconIsLoading: false,
|
|
59
59
|
text: "处理文件",
|
|
60
60
|
item: [],
|
|
61
|
-
callback(clickEvent, contextMenuEvent,
|
|
62
|
-
console.log("点击:" + this.text, [clickEvent, contextMenuEvent,
|
|
61
|
+
callback(clickEvent, contextMenuEvent, $li) {
|
|
62
|
+
console.log("点击:" + this.text, [clickEvent, contextMenuEvent, $li]);
|
|
63
63
|
},
|
|
64
64
|
},
|
|
65
65
|
{
|
|
66
66
|
icon: "",
|
|
67
67
|
iconIsLoading: false,
|
|
68
68
|
text: "其它处理",
|
|
69
|
-
callback(clickEvent, contextMenuEvent,
|
|
70
|
-
console.log("点击:" + this.text, [clickEvent, contextMenuEvent,
|
|
69
|
+
callback(clickEvent, contextMenuEvent, $li) {
|
|
70
|
+
console.log("点击:" + this.text, [clickEvent, contextMenuEvent, $li]);
|
|
71
|
+
return false;
|
|
71
72
|
},
|
|
72
73
|
item: [
|
|
73
74
|
{
|
|
@@ -75,8 +76,8 @@ export const rightClickMenuConfig = (): DeepRequired<PopsRightClickMenuDetails>
|
|
|
75
76
|
iconIsLoading: false,
|
|
76
77
|
text: "查看",
|
|
77
78
|
item: [],
|
|
78
|
-
callback(clickEvent, contextMenuEvent,
|
|
79
|
-
console.log("点击:" + this.text, [clickEvent, contextMenuEvent,
|
|
79
|
+
callback(clickEvent, contextMenuEvent, $li) {
|
|
80
|
+
console.log("点击:" + this.text, [clickEvent, contextMenuEvent, $li]);
|
|
80
81
|
},
|
|
81
82
|
},
|
|
82
83
|
],
|