mirror of
https://github.com/YMFE/yapi.git
synced 2025-02-17 13:49:43 +08:00
opti: fix project-env 样式
This commit is contained in:
parent
4f9742cd52
commit
9c63e72dc2
@ -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 ? (
|
||||
|
@ -198,6 +198,7 @@
|
||||
|
||||
.project-env{
|
||||
// 环境配置中首个item的删除按钮定位调整
|
||||
margin-top: .5rem;
|
||||
.env-first-row {
|
||||
.ant-col-2 {
|
||||
position: relative;
|
||||
|
Loading…
Reference in New Issue
Block a user