opti: fix project-env 样式

This commit is contained in:
suxiaoxin 2017-12-04 11:47:17 +08:00
parent 4f9742cd52
commit 9c63e72dc2
2 changed files with 3 additions and 2 deletions

View File

@ -13,7 +13,7 @@ const formItemLayout = {
wrapperCol: {
sm: { span: 24 }
},
className: 'form-item'
className: 'form-item project-env'
};
let uuid = 0; // 环境配置的计数
@ -137,7 +137,7 @@ class PrpjectEnv extends Component {
const envSettingItems = envs.map((k, index) => {
const secondIndex = 'next' + index; // 为保证key的唯一性
return (
<Row key={index} type="flex" justify="space-between" className={index === 0 ? 'project-env env-first-row' : 'project-env'} align={index === 0 ? 'bottom' : 'top'}>
<Row key={index} type="flex" justify="space-between" className={index === 0 ? ' env-first-row' : null} align={index === 0 ? 'bottom' : 'top'}>
<Col span={11}>
<FormItem
label={index === 0 ? (

View File

@ -198,6 +198,7 @@
.project-env{
// 环境配置中首个item的删除按钮定位调整
margin-top: .5rem;
.env-first-row {
.ant-col-2 {
position: relative;