Skip to content
This repository was archived by the owner on Sep 20, 2024. It is now read-only.

Commit b83de1e

Browse files
committed
feat(portal): move to tsx
1 parent 34fe2ac commit b83de1e

File tree

1 file changed

+4
-9
lines changed

1 file changed

+4
-9
lines changed

packages/c-portal/src/portal.tsx

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -61,15 +61,10 @@ const CPortal = defineComponent({
6161
useStackProvider()
6262

6363
return () => {
64-
return h(
65-
// @ts-ignore
66-
Teleport,
67-
{
68-
...props,
69-
...attrs,
70-
to: target.value,
71-
},
72-
slots
64+
return (
65+
<Teleport {...props} {...attrs} to={target.value}>
66+
{slots}
67+
</Teleport>
7368
)
7469
}
7570
},

0 commit comments

Comments
 (0)