@rc-hooks/portal
TypeScript icon, indicating that this package has built-in type declarations

1.0.11 • Public • Published

Portal 一 传送门

API

属性 说明 类型 默认值
getContainer 获取父容器的方法,可选,如果不传默认是document.body function -
children 传送门内容 ReactNode -
onUpdated updated方法回调,用于准确获取传送门内的dom元素 () => void -

Readme

Keywords

none

Package Sidebar

Install

npm i @rc-hooks/portal

Weekly Downloads

2

Version

1.0.11

License

none

Unpacked Size

16.4 kB

Total Files

11

Last publish

Collaborators

  • niuxingxing
  • afcfzf
  • imhele
  • wuqi567
  • liuxuanzy