Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jardenliu/wujie-polyfill
极致的微前端框架的polyfill
https://github.com/jardenliu/wujie-polyfill
Last synced: 7 days ago
JSON representation
极致的微前端框架的polyfill
- Host: GitHub
- URL: https://github.com/jardenliu/wujie-polyfill
- Owner: jardenliu
- Created: 2022-11-26T16:00:06.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-11-08T06:52:56.000Z (2 months ago)
- Last Synced: 2024-12-26T01:08:51.648Z (14 days ago)
- Language: TypeScript
- Homepage: https://wujie-polyfill.github.io/doc/
- Size: 255 KB
- Stars: 73
- Watchers: 2
- Forks: 8
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# wujie-polyfill
由于wujie(无界)采用的是WebComponents + iframe 来是脚本沙箱和样式隔离,该仓库用于弥补该方案的在特定的场景下的不足。
## 文档
文档详见:[文档](https://wujie-polyfill.github.io/doc/)
## 插件列表
- [ ] LocationSyncPlugin (地址同步插件)
- [X] LocationReloadPlugin (页面刷新插件)
- [X] EventTargetPlugin (事件目标插件)
- [X] WindowGetterPlugin (window获取插件)
- [X] WindowMessagePlugin (window通信插件)
- [X] DocFullscreenPlugin (全屏插件)
- [X] InstanceofPlugin (原型链判定插件)
- [X] DocElementRectPlugin(代理documentElement主应用尺寸插件)## 使用
- 安装
```bash
npm i wujie-polyfill -S
```- 使用
```tsx
import { startApp } from 'wujie'
import { LocationReloadPlugin } from "wujie-polyfill";// javascript
setupApp({
name: '唯一id',
url: '子应用地址',
exec: true,
el: '容器',
sync: true
plugins: [LocationReloadPlugin()]
})// vue
// react
```
![STAR HISTORY](https://api.star-history.com/svg?repos=jardenliu/wujie-polyfill&type=Date)