提交 ad18dfa9 authored 作者: 钟是志's avatar 钟是志

iframe 样式修改

上级 103bbdea
...@@ -69,14 +69,14 @@ export default class Detail extends Component { ...@@ -69,14 +69,14 @@ export default class Detail extends Component {
if (iframe) { if (iframe) {
let iframeWin = iframe.contentWindow || iframe.contentDocument.parentWindow; let iframeWin = iframe.contentWindow || iframe.contentDocument.parentWindow;
if (iframeWin.document.body) { if (iframeWin.document.body) {
iframe.height = iframeWin.document.documentElement.scrollHeight || iframeWin.document.body.scrollHeight; iframe.style.height = (iframeWin.document.documentElement.scrollHeight || iframeWin.document.body.scrollHeight) + 'px';
} }
} }
}; };
render() { render() {
const { id } = this.state; const { id } = this.state;
const iframeUrl = `${config.gateWayPort}/portal/#/showSmartFormOnly?id=${id}&token=${getToken()}&isShow=true`; let iframeUrl = `${config.gateWayPort}/portal/#/showSmartFormOnly?id=${id}&token=${getToken()}&isShow=true`;
return ( return (
<PageHeaderWrapper title=""> <PageHeaderWrapper title="">
<Shell> <Shell>
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论