react-iframe-plugin 0.0.16 → 0.0.17

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 +16 -5
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -1,8 +1,19 @@
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
+ npm i react-iframe-plugin
4
4
 
5
- Currently, two official plugins are available:
5
+ or yarn add react-iframe-plugin
6
6
 
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
7
+ or pnpm i eact-iframe-plugin
8
+
9
+ - import IframePlugin from 'react-iframe-plugin';
10
+ - <IframePlugin
11
+ currentDomain="http://localhost:3000" //當前domain
12
+ iframeDomain="https://amcm.staging.wizmacau.com" //加載domain
13
+ src="https://amcm.staging.wizmacau.com/zh-hant/header" //加載地址
14
+ url="https://amcm.staging.wizmacau.com" //點擊跳轉地址
15
+ basicHeight="250px" //初始高度
16
+ height="800px" //展開高度
17
+ width="100%" //寬度
18
+ />
19
+
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.17",
5
5
  "scripts": {
6
6
  "dev": "vite",
7
7
  "lint": "eslint .",