bfg-common 1.3.271 → 1.3.273
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.
|
@@ -7,7 +7,6 @@
|
|
|
7
7
|
>
|
|
8
8
|
<slot name="elem" />
|
|
9
9
|
</div>
|
|
10
|
-
|
|
11
10
|
<Teleport to="body">
|
|
12
11
|
<div class="popover__content" :style="popoverPosition">
|
|
13
12
|
<slot name="content" />
|
|
@@ -36,11 +35,7 @@ interface UI_I_PositionEl {
|
|
|
36
35
|
}
|
|
37
36
|
const popoverPosition = ref<UI_I_PositionEl | null>(null)
|
|
38
37
|
|
|
39
|
-
const
|
|
40
|
-
|
|
41
|
-
const id = computed<string>(() =>
|
|
42
|
-
props.testId !== '' ? `popover${props.testId}` : uniqueId
|
|
43
|
-
)
|
|
38
|
+
const id = ref<string>(`popover${useUniqueId()}`)
|
|
44
39
|
|
|
45
40
|
const handleClick = (): void => {
|
|
46
41
|
emits('click')
|
|
@@ -13,15 +13,15 @@ export interface UI_I_ContextMenu {
|
|
|
13
13
|
titleIconClassName: string
|
|
14
14
|
items: UI_I_ContextMenuItem[]
|
|
15
15
|
}
|
|
16
|
-
export interface UI_I_ContextMenuItem {
|
|
16
|
+
export interface UI_I_ContextMenuItem<T = string> {
|
|
17
17
|
name: string
|
|
18
|
-
actionType:
|
|
18
|
+
actionType: T | ''
|
|
19
19
|
iconClassName: string
|
|
20
|
+
items: UI_I_ContextMenuItem<T>[]
|
|
20
21
|
shortcut?: string
|
|
21
22
|
hasBorderTop?: boolean
|
|
22
23
|
isHeader?: boolean
|
|
23
24
|
disabled?: boolean
|
|
24
25
|
isShowItems?: boolean
|
|
25
|
-
items: UI_I_ContextMenuItem[]
|
|
26
26
|
testId?: string
|
|
27
27
|
}
|