react-iframe-plugin 0.0.16 → 0.0.18

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +26 -5
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -1,8 +1,29 @@
1
- # React + Vite
1
+ # IframePlugin
2
2
 
3
- This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.
3
+ Install `node_modules`:
4
4
 
5
- Currently, two official plugins are available:
5
+ ```bash
6
+ npm i react-iframe-plugin
7
+ ```
8
+ ```bash
9
+ or yarn add react-iframe-plugin
10
+ ```
11
+ ```bash
12
+ or pnpm i eact-iframe-plugin
13
+ ```
6
14
 
7
- - [@vitejs/plugin-react](https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react/README.md) uses [Babel](https://babeljs.io/) for Fast Refresh
8
- - [@vitejs/plugin-react-swc](https://github.com/vitejs/vite-plugin-react-swc) uses [SWC](https://swc.rs/) for Fast Refresh
15
+ ```bash
16
+ - import IframePlugin from 'react-iframe-plugin';
17
+ ```
18
+ ```bash
19
+ - <IframePlugin
20
+ currentDomain="http://localhost:3000" //當前domain
21
+ iframeDomain="https://xxxxxxxxxxx.com" //加載domain
22
+ src="https://xxxxxxxxxx.com/zh-hant/header" //加載地址
23
+ url="https://xxxxxxxxxx.com" //點擊跳轉地址
24
+ basicHeight="250px" //初始高度
25
+ height="800px" //展開高度
26
+ width="100%" //寬度
27
+ />
28
+ ```
29
+
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "react-iframe-plugin",
3
3
  "private": false,
4
- "version": "0.0.16",
4
+ "version": "0.0.18",
5
5
  "scripts": {
6
6
  "dev": "vite",
7
7
  "lint": "eslint .",