Commit 62b96740 authored by 李俊赕's avatar 李俊赕

样式优化

parent 43a5923f
<template> <template>
<div class="input-item"> <div class="input-item">
<div class="label">施工方案<span class="required">*</span></div> <div class="label">{{item.label}}<span class="required">*</span></div>
<!-- <div class="required">*</div> --> <!-- <div class="required">*</div> -->
<div class="input-box img-box"> <div class="input-box img-box">
<div :key="index" class="img-item" v-for="(item, index) in imgList"> <div :key="index" class="img-item" v-for="(item, index) in imgList">
...@@ -69,46 +69,17 @@ export default { ...@@ -69,46 +69,17 @@ export default {
<style lang="less" scoped> <style lang="less" scoped>
@import '~@/assets/css/func.less'; @import '~@/assets/css/func.less';
.input-item{ .input-item{
// display: flex; display: block!important;
width:100%;
padding:px2rem(10) 0;
text-align: left;
} }
.label{ .label{
font-size: px2rem(28); text-align: left;
line-height:px2rem(40);
} }
.input-box{ .input-box{
width:100%; width:100%;
padding:px2rem(20) 0 0 px2rem(20); padding:px2rem(20) 0 0 px2rem(20);
min-height: px2rem(212); min-height: px2rem(212);
background: #f3f3f3; background: #f3f3f3;
// flex:1;
display: flex; display: flex;
// justify-content: flex-end;
}
.txt,.input{
display: inline-block;
margin-right:px2rem(10) ;
line-height:px2rem(40);
font-size: px2rem(20);;
color:#999;
}
.input{
margin-right:0;
width:px2rem(100);
}
.item{
margin-right:px2rem(20);
&:last-child{
margin-right: 0;
}
}
.required{
padding:0 px2rem(10);
line-height:px2rem(40);
font-size: px2rem(20);
color:red;
} }
.img-box{ .img-box{
.img-item{ .img-item{
...@@ -144,41 +115,6 @@ export default { ...@@ -144,41 +115,6 @@ export default {
} }
.upload-box{ .upload-box{
position: relative; position: relative;
// width:px2rem(160);
// height:px2rem(160);
// border: px2rem(4) dashed #d9d9d9;
// border-radius: 6px;
// cursor: pointer;
// position: relative;
// overflow: hidden;
// /deep/ .add-icon{
// &:before{
// content: '';
// position: absolute;
// left: 50%;
// top: 50%;
// width: px2rem(120);
// margin-left: px2rem(-60);
// margin-top: px2rem(-4);
// border-top: px2rem(8) solid #ddd;
// }
// &:after {
// content: '';
// position: absolute;
// left: 50%;
// top: 50%;
// height: px2rem(120);
// margin-left: px2rem(-8);
// margin-top: px2rem(-60);
// border-left: px2rem(8) solid #ddd;
// }
// width:px2rem(160);
// height:px2rem(160);
// }
.file-input{
// width:px2rem(160);
// height:px2rem(160);
}
} }
</style> </style>
<template> <template>
<div class="input-item"> <div class="input-item">
<div class="label">{{item.label}}</div> <div class="label">{{item.label}}</div>
<div class="required">*</div> <div class="required" v-if="item.required">*</div>
<div class="input-box" v-if="inputLength>0"> <div class="input-box" v-if="!item.otherField || item.otherField.length<0">
<input placeholder="请输入数值" /> <input class="input" placeholder="请输入" />
</div> </div>
<div class="input-box" v-if="inputLength<1"> <div class="input-box more" v-else>
<div class="item"> <div class="item">
<div class="txt">数值</div> <div class="txt">数值</div>
<input class="input" placeholder="请输入数值" /> <input class="input" placeholder="请输入" />
</div> </div>
<div class="item"> <div class="item">
<div class="txt">数值</div> <div class="txt">数值</div>
<input class="input" placeholder="请输入数值" /> <input class="input" placeholder="请输入" />
</div> </div>
<div class="item"> <div class="item">
<div class="txt">数值</div> <div class="txt">数值</div>
<input class="input" placeholder="请输入数值" /> <input class="input" placeholder="请输入" />
</div> </div>
</div> </div>
...@@ -59,42 +59,24 @@ export default { ...@@ -59,42 +59,24 @@ export default {
<style lang="less" scoped> <style lang="less" scoped>
@import '~@/assets/css/func.less'; @import '~@/assets/css/func.less';
.input-item{
display: flex;
width:100%;
padding:px2rem(20) 0;
}
.label{
font-size: px2rem(28);
line-height:px2rem(40);
}
.input-box{ .input-box{
flex:1; flex:1;
display: flex; display: flex;
justify-content: flex-end; justify-content: flex-end;
} &.more{
.txt,.input{ .input{
display: inline-block;
margin-right:px2rem(10) ;
line-height:px2rem(40);
font-size: px2rem(20);;
color:#999;
}
.input{
margin-right:0; margin-right:0;
width:px2rem(100); width:px2rem(100);
} text-align: right;
.item{ }
.item{
display: flex;
margin-right:px2rem(20); margin-right:px2rem(20);
&:last-child{ &:last-child{
margin-right: 0; margin-right: 0;
} }
} }
.required{ }
padding:0 px2rem(10);
line-height:px2rem(40);
font-size: px2rem(20);
color:red;
} }
</style> </style>
...@@ -81,20 +81,9 @@ export default { ...@@ -81,20 +81,9 @@ export default {
<style lang="less" scoped> <style lang="less" scoped>
@import '~@/assets/css/func.less'; @import '~@/assets/css/func.less';
.input-item{
display: flex;
position: relative;
width:100%;
padding:px2rem(10) 0;
padding-right:px2rem(20)
}
.mint-cell-allow-right:after{ .mint-cell-allow-right:after{
right:0; right:0;
} }
.label{
font-size: px2rem(28);
line-height:px2rem(40);
}
.input-box{ .input-box{
flex:1; flex:1;
display: flex; display: flex;
...@@ -109,20 +98,15 @@ export default { ...@@ -109,20 +98,15 @@ export default {
padding:px2rem(10) px2rem(20); padding:px2rem(10) px2rem(20);
} }
.list-item{ .list-item{
// margin-right:px2rem(10) ;
padding:px2rem(10) 0; padding:px2rem(10) 0;
border-top:px2rem(2) solid #fafafa; border-top:px2rem(2) solid #fafafa;
line-height:px2rem(40); line-height:px2rem(40);
font-size: px2rem(28); font-size: px2rem(28);
color:#333; color:#333;
// &:last-child{
// border-bottom: none;
// }
} }
.select-title{ .select-title{
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
// padding:px2rem(10) px2rem(20);
.btn{ .btn{
padding:px2rem(10) px2rem(20); padding:px2rem(10) px2rem(20);
line-height:px2rem(40); line-height:px2rem(40);
...@@ -135,31 +119,4 @@ export default { ...@@ -135,31 +119,4 @@ export default {
} }
} }
.txt,.input{
display: inline-block;
margin-right:px2rem(10) ;
line-height:px2rem(40);
font-size: px2rem(20);;
color:#999;
}
.input{
margin-right:0;
width:px2rem(100);
color:#333;
&.grey{
color:#999;
}
}
.item{
margin-right:px2rem(20);
&:last-child{
margin-right: 0;
}
}
.required{
padding:0 px2rem(10);
line-height:px2rem(40);
font-size: px2rem(20);
color:red;
}
</style> </style>
...@@ -202,15 +202,6 @@ export default { ...@@ -202,15 +202,6 @@ export default {
.mint-cell-allow-right:after{ .mint-cell-allow-right:after{
right:0; right:0;
} }
.label{
font-size: px2rem(28);
line-height:px2rem(40);
}
.input-box{
flex:1;
display: flex;
justify-content: flex-end;
}
.mint-popup-bottom{ .mint-popup-bottom{
width:100%; width:100%;
} }
...@@ -220,20 +211,15 @@ export default { ...@@ -220,20 +211,15 @@ export default {
padding:px2rem(10) px2rem(20); padding:px2rem(10) px2rem(20);
} }
.list-item{ .list-item{
// margin-right:px2rem(10) ;
padding:px2rem(10) 0; padding:px2rem(10) 0;
border-top:px2rem(2) solid #fafafa; border-top:px2rem(2) solid #fafafa;
line-height:px2rem(40); line-height:px2rem(40);
font-size: px2rem(28); font-size: px2rem(28);
color:#333; color:#333;
// &:last-child{
// border-bottom: none;
// }
} }
.select-title{ .select-title{
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
// padding:px2rem(10) px2rem(20);
.btn{ .btn{
padding:px2rem(10) px2rem(20); padding:px2rem(10) px2rem(20);
line-height:px2rem(40); line-height:px2rem(40);
...@@ -245,32 +231,4 @@ export default { ...@@ -245,32 +231,4 @@ export default {
} }
} }
} }
.txt,.input{
display: inline-block;
margin-right:px2rem(10) ;
line-height:px2rem(40);
font-size: px2rem(20);;
color:#999;
}
.input{
margin-right:0;
width:px2rem(100);
color:#333;
&.grey{
color:#999;
}
}
.item{
margin-right:px2rem(20);
&:last-child{
margin-right: 0;
}
}
.required{
padding:0 px2rem(10);
line-height:px2rem(40);
font-size: px2rem(20);
color:red;
}
</style> </style>
...@@ -45,11 +45,11 @@ export default { ...@@ -45,11 +45,11 @@ export default {
<style lang="less" scoped> <style lang="less" scoped>
@import '~@/assets/css/func.less'; @import '~@/assets/css/func.less';
.input-item{ // .input-item{
display: flex; // display: flex;
width:100%; // width:100%;
padding:px2rem(10) 0; // padding:px2rem(10) 0;
} // }
/deep/ .mint-switch{ /deep/ .mint-switch{
.mint-switch-core{ .mint-switch-core{
width: px2rem(79); width: px2rem(79);
...@@ -71,20 +71,11 @@ export default { ...@@ -71,20 +71,11 @@ export default {
color:#999; color:#999;
} }
} }
.label{
font-size: px2rem(28);
line-height:px2rem(40);
}
.input-box{ .input-box{
flex:1; flex:1;
display: flex; display: flex;
justify-content: flex-end; justify-content: flex-end;
} }
.required{
padding:0 px2rem(10);
line-height:px2rem(40);
font-size: px2rem(20);
color:red;
}
</style> </style>
...@@ -63,9 +63,7 @@ textarea{ ...@@ -63,9 +63,7 @@ textarea{
line-height:px2rem(40); line-height:px2rem(40);
} }
.input-item{ .input-item{
display: block; display: block!important;
width:100%;
padding:px2rem(10) 0;
} }
.required{ .required{
padding:0 px2rem(10); padding:0 px2rem(10);
......
...@@ -312,13 +312,35 @@ export default { ...@@ -312,13 +312,35 @@ export default {
} }
} }
/deep/ .input-item{ /deep/ .input-item{
padding:px2rem(15) 0; position: relative;
display: flex;
width:100%;
padding:px2rem(18) 0;
.txt,.input{ .txt,.input{
font-size: px2rem(28); font-size: px2rem(28);
} }
.mint-cell-allow-right{ .mint-cell-allow-right{
margin-left:px2rem(20) ; margin-left:px2rem(20) ;
} }
.label{
font-size: px2rem(28);
line-height:px2rem(40);
}
.txt,.input{
width:100%;
display: inline-block;
margin-right:px2rem(10) ;
line-height:px2rem(40);
font-size: px2rem(28);
text-align: right;
color:#666;
}
.required{
padding:0 px2rem(5);
line-height:px2rem(40);
font-size: px2rem(20);
color:red;
}
} }
// .mint-popup{ // .mint-popup{
// width: 100%; // width: 100%;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment