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

样式优化

parent 43a5923f
<template>
<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="input-box img-box">
<div :key="index" class="img-item" v-for="(item, index) in imgList">
......@@ -69,46 +69,17 @@ export default {
<style lang="less" scoped>
@import '~@/assets/css/func.less';
.input-item{
// display: flex;
width:100%;
padding:px2rem(10) 0;
text-align: left;
display: block!important;
}
.label{
font-size: px2rem(28);
line-height:px2rem(40);
text-align: left;
}
.input-box{
width:100%;
padding:px2rem(20) 0 0 px2rem(20);
min-height: px2rem(212);
background: #f3f3f3;
// flex:1;
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-item{
......@@ -144,41 +115,6 @@ export default {
}
.upload-box{
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>
<template>
<div class="input-item">
<div class="label">{{item.label}}</div>
<div class="required">*</div>
<div class="input-box" v-if="inputLength>0">
<input placeholder="请输入数值" />
<div class="required" v-if="item.required">*</div>
<div class="input-box" v-if="!item.otherField || item.otherField.length<0">
<input class="input" placeholder="请输入" />
</div>
<div class="input-box" v-if="inputLength<1">
<div class="input-box more" v-else>
<div class="item">
<div class="txt">数值</div>
<input class="input" placeholder="请输入数值" />
<input class="input" placeholder="请输入" />
</div>
<div class="item">
<div class="txt">数值</div>
<input class="input" placeholder="请输入数值" />
<input class="input" placeholder="请输入" />
</div>
<div class="item">
<div class="txt">数值</div>
<input class="input" placeholder="请输入数值" />
<input class="input" placeholder="请输入" />
</div>
</div>
......@@ -59,42 +59,24 @@ export default {
<style lang="less" scoped>
@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{
flex:1;
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;
&.more{
.input{
margin-right:0;
width:px2rem(100);
text-align: right;
}
.item{
display: flex;
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>
......@@ -81,20 +81,9 @@ export default {
<style lang="less" scoped>
@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{
right:0;
}
.label{
font-size: px2rem(28);
line-height:px2rem(40);
}
.input-box{
flex:1;
display: flex;
......@@ -109,20 +98,15 @@ export default {
padding:px2rem(10) px2rem(20);
}
.list-item{
// margin-right:px2rem(10) ;
padding:px2rem(10) 0;
border-top:px2rem(2) solid #fafafa;
line-height:px2rem(40);
font-size: px2rem(28);
color:#333;
// &:last-child{
// border-bottom: none;
// }
}
.select-title{
display: flex;
justify-content: space-between;
// padding:px2rem(10) px2rem(20);
.btn{
padding:px2rem(10) px2rem(20);
line-height:px2rem(40);
......@@ -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>
......@@ -202,15 +202,6 @@ export default {
.mint-cell-allow-right:after{
right:0;
}
.label{
font-size: px2rem(28);
line-height:px2rem(40);
}
.input-box{
flex:1;
display: flex;
justify-content: flex-end;
}
.mint-popup-bottom{
width:100%;
}
......@@ -220,20 +211,15 @@ export default {
padding:px2rem(10) px2rem(20);
}
.list-item{
// margin-right:px2rem(10) ;
padding:px2rem(10) 0;
border-top:px2rem(2) solid #fafafa;
line-height:px2rem(40);
font-size: px2rem(28);
color:#333;
// &:last-child{
// border-bottom: none;
// }
}
.select-title{
display: flex;
justify-content: space-between;
// padding:px2rem(10) px2rem(20);
.btn{
padding:px2rem(10) px2rem(20);
line-height:px2rem(40);
......@@ -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>
......@@ -45,11 +45,11 @@ export default {
<style lang="less" scoped>
@import '~@/assets/css/func.less';
.input-item{
display: flex;
width:100%;
padding:px2rem(10) 0;
}
// .input-item{
// display: flex;
// width:100%;
// padding:px2rem(10) 0;
// }
/deep/ .mint-switch{
.mint-switch-core{
width: px2rem(79);
......@@ -71,20 +71,11 @@ export default {
color:#999;
}
}
.label{
font-size: px2rem(28);
line-height:px2rem(40);
}
.input-box{
flex:1;
display: flex;
justify-content: flex-end;
}
.required{
padding:0 px2rem(10);
line-height:px2rem(40);
font-size: px2rem(20);
color:red;
}
</style>
......@@ -63,9 +63,7 @@ textarea{
line-height:px2rem(40);
}
.input-item{
display: block;
width:100%;
padding:px2rem(10) 0;
display: block!important;
}
.required{
padding:0 px2rem(10);
......
......@@ -312,13 +312,35 @@ export default {
}
}
/deep/ .input-item{
padding:px2rem(15) 0;
position: relative;
display: flex;
width:100%;
padding:px2rem(18) 0;
.txt,.input{
font-size: px2rem(28);
}
.mint-cell-allow-right{
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{
// 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