浏览代码

add deploy button

xy 7 年之前
父节点
当前提交
4c1f6ffdfe
共有 2 个文件被更改,包括 13 次插入1 次删除
  1. 9 0
      src/components/common/deploy/index.css
  2. 4 1
      src/components/common/deploy/tencent/TencentConfig.js

+ 9 - 0
src/components/common/deploy/index.css

@@ -43,4 +43,13 @@ p.show {
     font-size: large;
     display: block;
     height: 35px;
+}
+
+.deploy {
+    width: 50px;
+    height: 30px;
+    background-color: green;
+    color: #ffffff;
+    font-weight: bold;
+    padding-top: 500px;
 }

+ 4 - 1
src/components/common/deploy/tencent/TencentConfig.js

@@ -1,5 +1,5 @@
 import React, {Component} from 'react';
-import {Row, Col, Card} from 'antd';
+import {Row, Col, Card, Button} from 'antd';
 import APIGroupCard from './APIGroupCard';
 import APIPathCard from './APIPathCard';
 import DeployCard from './DeployCard';
@@ -29,6 +29,9 @@ class TencentConfig extends Component {
                             <Card title="API Group" style={{marginBottom: 10}}><APIGroupCard switchRegion={this.switchRegion} region={this.state.region}/></Card>
                             <Card title="API Path" ><APIPathCard/></Card>
                         </Col>
+                        <Col offset={2} span={8}>
+                            <Button type='primary'>deploy it</Button>
+                        </Col>
                     </Row>
                 </div>
             </div>