安装插件后的基础文件
This commit is contained in:
27
app/admin/view/easyflow/index/index.html
Normal file
27
app/admin/view/easyflow/index/index.html
Normal file
@@ -0,0 +1,27 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>我是后台首页控制器模板</title>
|
||||
</head>
|
||||
<!--Easyflow-->
|
||||
<body>
|
||||
<iframe id="external-frame" src="/static/plugin/easyflow/dist/index.html?v={:release()}" width="100%" style="border: 0px"></iframe>
|
||||
</body>
|
||||
</html>
|
||||
<script>
|
||||
function reinitIframe(){
|
||||
var iframe = document.getElementById("external-frame");
|
||||
try{
|
||||
var bHeight = iframe.contentWindow.document.body.scrollHeight;
|
||||
var dHeight = iframe.contentWindow.document.documentElement.scrollHeight;
|
||||
var height = Math.max(bHeight, dHeight);
|
||||
iframe.height = window.innerHeight-50;
|
||||
console.log(height);
|
||||
}catch (ex){}
|
||||
}
|
||||
window.onload = reinitIframe()
|
||||
//window.setInterval("reinitIframe()", 200);
|
||||
</script>
|
||||
Reference in New Issue
Block a user