File tree Expand file tree Collapse file tree 10 files changed +13
-17
lines changed Expand file tree Collapse file tree 10 files changed +13
-17
lines changed Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ const defaultPt = ref<BreadcrumbPassThroughOptions>({
16
16
17
17
type BreadcrumbType = InstanceType <typeof Breadcrumb >;
18
18
const childRef = useTemplateRef <BreadcrumbType >(' child-ref' );
19
- defineExpose ({ el: childRef });
19
+ defineExpose ({ $ el: childRef });
20
20
</script >
21
21
22
22
<template >
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ type ContextMenuType = InstanceType<typeof ContextMenu>;
14
14
const childRef = useTemplateRef <ContextMenuType >(' child-ref' );
15
15
16
16
defineExpose ({
17
- el: childRef ,
17
+ $ el: childRef ,
18
18
toggle : (event : Event ) => childRef .value ?.toggle (event )
19
19
});
20
20
</script >
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ type MenuType = InstanceType<typeof Menu>;
13
13
const childRef = useTemplateRef <MenuType >(' child-ref' );
14
14
15
15
defineExpose ({
16
- el: childRef ,
16
+ $ el: childRef ,
17
17
toggle : (event : Event ) => childRef .value ?.toggle (event )
18
18
});
19
19
</script >
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ const componentProps = withDefaults(
16
16
type MenubarType = InstanceType <typeof Menubar >;
17
17
const childRef = useTemplateRef <MenubarType >(' child-ref' );
18
18
19
- defineExpose ({ el: childRef });
19
+ defineExpose ({ $ el: childRef });
20
20
</script >
21
21
22
22
<template >
Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ const defaultPt: PanelMenuPassThroughOptions = {
19
19
20
20
type PanelMenuType = InstanceType <typeof PanelMenu >;
21
21
const childRef = useTemplateRef <PanelMenuType >(' child-ref' );
22
- defineExpose ({ el: childRef });
22
+ defineExpose ({ $ el: childRef });
23
23
</script >
24
24
25
25
<template >
Original file line number Diff line number Diff line change @@ -24,9 +24,7 @@ const currentRoute = computed(() => {
24
24
25
25
type TabsType = InstanceType <typeof Tabs >;
26
26
const childRef = useTemplateRef <TabsType >(' child-ref' );
27
- defineExpose ({
28
- el: childRef ,
29
- });
27
+ defineExpose ({ $el: childRef });
30
28
</script >
31
29
32
30
<template >
Original file line number Diff line number Diff line change @@ -13,9 +13,7 @@ const componentProps = defineProps<ExtendedTieredMenuProps>();
13
13
type TieredMenuType = InstanceType <typeof TieredMenu >;
14
14
const childRef = useTemplateRef <TieredMenuType >(' child-ref' );
15
15
16
- defineExpose ({
17
- el: childRef ,
18
- });
16
+ defineExpose ({ $el: childRef });
19
17
</script >
20
18
21
19
<template >
Original file line number Diff line number Diff line change @@ -29,12 +29,12 @@ const {
29
29
30
30
const userMenu = useTemplateRef (' user-menu' );
31
31
const toggleUserMenu = (event ) => {
32
- userMenu .value .el .toggle (event );
32
+ userMenu .value .$ el .toggle (event );
33
33
};
34
34
35
35
const mobileUserMenu = useTemplateRef (' mobile-user-menu' );
36
36
const toggleMobileUserMenu = (event ) => {
37
- mobileUserMenu .value .el .toggle (event );
37
+ mobileUserMenu .value .$ el .toggle (event );
38
38
};
39
39
</script >
40
40
Original file line number Diff line number Diff line change @@ -27,12 +27,12 @@ const {
27
27
28
28
const userMenu = useTemplateRef (' user-menu' );
29
29
const toggleUserMenu = (event ) => {
30
- userMenu .value .el .toggle (event );
30
+ userMenu .value .$ el .toggle (event );
31
31
};
32
32
33
33
const mobileUserMenu = useTemplateRef (' mobile-user-menu' );
34
34
const toggleMobileUserMenu = (event ) => {
35
- mobileUserMenu .value .el .toggle (event );
35
+ mobileUserMenu .value .$ el .toggle (event );
36
36
};
37
37
</script >
38
38
Original file line number Diff line number Diff line change @@ -35,8 +35,8 @@ function toggleUserContextMenu(event, userData) {
35
35
},
36
36
];
37
37
// Show the menu
38
- if (userContextMenu .value && userContextMenu .value ? .el ) {
39
- userContextMenu .value .el .toggle (event );
38
+ if (userContextMenu .value && userContextMenu .value ? .$ el ) {
39
+ userContextMenu .value .$ el .toggle (event );
40
40
}
41
41
}
42
42
You can’t perform that action at this time.
0 commit comments