Ver código fonte

style: 修改cad页面iframe高度

ZhaoJun 1 ano atrás
pai
commit
b1761c2382
1 arquivos alterados com 7 adições e 2 exclusões
  1. 7 2
      src/pages/Cad/detail.js

+ 7 - 2
src/pages/Cad/detail.js

@@ -111,7 +111,12 @@ const CadDeTail = () => {
 
   return (
     <PageContent>
-      <div style={{ fontSize: '20px', marginBottom: '10px' }}>
+      <div
+        style={{
+          fontSize: '20px',
+          marginBottom: '10px',
+        }}
+      >
         CAD在线审批
         <Button
           type="primary"
@@ -122,7 +127,7 @@ const CadDeTail = () => {
         </Button>
       </div>
       <iframe
-        style={{ width: '100%', height: '80vh' }}
+        style={{ width: '100%', height: 'calc(100vh - 280px)' }}
         ref={iframeRef}
         onLoad={handlerLoad}
         src="/cad.html"