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.
- package/README.md +16 -5
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,8 +1,19 @@
|
|
|
1
|
-
#
|
|
1
|
+
# IframePlugin
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
npm i react-iframe-plugin
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
or yarn add react-iframe-plugin
|
|
6
6
|
|
|
7
|
-
|
|
8
|
-
|
|
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
|
+
|