From 9d9541c1b932320dbdb0f936bce6c71efc7078b6 Mon Sep 17 00:00:00 2001 From: vapao Date: Sun, 8 Mar 2020 12:39:07 +0800 Subject: [PATCH] =?UTF-8?q?A=20=E5=B8=B8=E8=A7=84=E5=8F=91=E5=B8=83?= =?UTF-8?q?=E9=85=8D=E7=BD=AE=E6=94=AF=E6=8C=81=E5=85=A8=E5=B1=8F=E7=BC=96?= =?UTF-8?q?=E5=86=99=E5=91=BD=E4=BB=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- spug_web/src/pages/deploy/app/Ext1Setup3.js | 69 ++++++++++++++----- .../src/pages/deploy/app/index.module.css | 10 +++ 2 files changed, 63 insertions(+), 16 deletions(-) diff --git a/spug_web/src/pages/deploy/app/Ext1Setup3.js b/spug_web/src/pages/deploy/app/Ext1Setup3.js index 2f6abe4..f16103c 100644 --- a/spug_web/src/pages/deploy/app/Ext1Setup3.js +++ b/spug_web/src/pages/deploy/app/Ext1Setup3.js @@ -6,6 +6,7 @@ import React from 'react'; import { observer } from 'mobx-react'; import { Form, Row, Col, Button, Radio, Icon, message } from "antd"; +import { LinkButton } from 'components'; import Editor from 'react-ace'; import 'ace-builds/src-noconflict/mode-text'; import 'ace-builds/src-noconflict/mode-sh'; @@ -19,7 +20,8 @@ class Ext1Setup3 extends React.Component { constructor(props) { super(props); this.state = { - loading: false + loading: false, + full: '' } } @@ -38,52 +40,78 @@ class Ext1Setup3 extends React.Component { }; FilterLabel = (props) => ( -
- 文件过滤: +
+ 文件过滤: store.deploy['filter_rule']['type'] = e.target.value}> 包含 排除 + {this.state.full === '1' ? ( + this.setState({full: ''})}>退出全屏 + ) : ( + this.setState({full: '1'})}>全屏 + )} +
+ ); + + NormalLabel = (props) => ( +
+ {props.title}: + {this.state.full ? ( + this.setState({full: ''})}>退出全屏 + ) : ( + this.setState({full: props.id})}>全屏 + )}
); render() { const info = store.deploy; + const {full} = this.state; return ( - }> + }> info['filter_rule']['data'] = v} style={{border: '1px solid #e8e8e8'}}/> - + }> info['hook_pre_server'] = v} style={{border: '1px solid #e8e8e8'}}/> - + }> info['hook_pre_host'] = v} @@ -105,34 +133,43 @@ class Ext1Setup3 extends React.Component {
- + }> info['custom_envs'] = v} style={{border: '1px solid #e8e8e8'}}/> - + }> info['hook_post_server'] = v} style={{border: '1px solid #e8e8e8'}}/> - + }> info['hook_post_host'] = v} diff --git a/spug_web/src/pages/deploy/app/index.module.css b/spug_web/src/pages/deploy/app/index.module.css index 58ac1a4..4424488 100644 --- a/spug_web/src/pages/deploy/app/index.module.css +++ b/spug_web/src/pages/deploy/app/index.module.css @@ -57,4 +57,14 @@ .delAction:hover { border-color: rgb(255, 96, 59); color: rgb(255, 96, 59); +} + +.fullScreen { + background-color: #fff; + position: fixed; + top: 0; + left: 0; + right: 0; + bottom: 0; + z-index: 999; } \ No newline at end of file