File tree Expand file tree Collapse file tree 6 files changed +8
-8
lines changed Expand file tree Collapse file tree 6 files changed +8
-8
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 @@ -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 @@ -26,12 +26,12 @@ const {
26
26
27
27
const userMenu = useTemplateRef (' user-menu' );
28
28
const toggleUserMenu = (event ) => {
29
- userMenu .value .el .toggle (event );
29
+ userMenu .value .$ el .toggle (event );
30
30
};
31
31
32
32
const mobileUserMenu = useTemplateRef (' mobile-user-menu' );
33
33
const toggleMobileUserMenu = (event ) => {
34
- mobileUserMenu .value .el .toggle (event );
34
+ mobileUserMenu .value .$ el .toggle (event );
35
35
};
36
36
</script >
37
37
Original file line number Diff line number Diff line change @@ -24,12 +24,12 @@ const {
24
24
25
25
const userMenu = useTemplateRef (' user-menu' );
26
26
const toggleUserMenu = (event ) => {
27
- userMenu .value .el .toggle (event );
27
+ userMenu .value .$ el .toggle (event );
28
28
};
29
29
30
30
const mobileUserMenu = useTemplateRef (' mobile-user-menu' );
31
31
const toggleMobileUserMenu = (event ) => {
32
- mobileUserMenu .value .el .toggle (event );
32
+ mobileUserMenu .value .$ el .toggle (event );
33
33
};
34
34
</script >
35
35
You can’t perform that action at this time.
0 commit comments