Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/peckzeg/vc-portal
https://github.com/peckzeg/vc-portal
Last synced: 28 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/peckzeg/vc-portal
- Owner: PeckZeg
- License: mit
- Created: 2018-06-15T09:38:30.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2018-07-16T02:49:39.000Z (over 6 years ago)
- Last Synced: 2024-11-13T14:07:57.436Z (about 2 months ago)
- Language: JavaScript
- Size: 22.5 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# VcPortal
[`rc-util`][rc-util] 中关于 `Portal` 的 Vue 实现。
## Props
参数 | 说明 | 类型 | 默认值
-------------- | -------------------------- | -------------------------- | ----
`getContainer` | 获取承载的容器元素 | `Function() : HTMLElement` | -
`didUpdate` | 每次更新后的执行的回调函数 | `Function()` | -
`targetClass` | 传送后的目标的样式 | `string/object/array` | -
`provide` | 向子孙提供一些东西 | `object/function` | -## Slots
插槽 | 说明
--------- | ----
`default` | 默认插槽,内容为传送后的目标[rc-util]: https://github.com/react-component/util