Commit ebd48e90 authored by miaojiale's avatar miaojiale

修改样式问题

parent 682da225
...@@ -20,12 +20,12 @@ ...@@ -20,12 +20,12 @@
> >
<el-row> <el-row>
<template v-for="(item, index) in formDataSet"> <template v-for="(item, index) in formDataSet">
<el-col <!-- <el-col
v-if="!item.hidden" v-if="!item.hidden"
:span="item.spanCount ? item.spanCount : countLine" :span="item.spanCount ? item.spanCount : countLine"
:key="item.prop" :key="item.prop"
:class="item.class" :class="item.class"
> > -->
<el-form-item <el-form-item
:key="index" :key="index"
:label="item.label ? `${item.label}:` : ''" :label="item.label ? `${item.label}:` : ''"
...@@ -82,10 +82,7 @@ ...@@ -82,10 +82,7 @@
</el-input> </el-input>
<!-- 数字输入框 --> <!-- 数字输入框 -->
<div <div v-if="item.type === 'number'" style="display: inline-table">
v-if="item.type === 'number'"
style="display: inline-table"
>
<el-input-number <el-input-number
:min="item.min" :min="item.min"
:max="item.max" :max="item.max"
...@@ -146,10 +143,9 @@ ...@@ -146,10 +143,9 @@
:disabled="opt.disabled" :disabled="opt.disabled"
> >
<span style="float: left">{{ opt.label }}</span> <span style="float: left">{{ opt.label }}</span>
<span <span style="float: right; color: #8492a6; font-size: 10px">{{
style="float: right; color: #8492a6; font-size: 10px" opt.description
>{{ opt.description }}</span }}</span>
>
</el-option> </el-option>
</el-select> </el-select>
...@@ -267,7 +263,7 @@ ...@@ -267,7 +263,7 @@
form[item.prop] form[item.prop]
}}</span> }}</span>
</el-form-item> </el-form-item>
</el-col> <!-- </el-col> -->
</template> </template>
</el-row> </el-row>
</el-form> </el-form>
...@@ -571,4 +567,8 @@ export default { ...@@ -571,4 +567,8 @@ export default {
.el-autocomplete { .el-autocomplete {
width: 100%; width: 100%;
} }
.el-row {
display: flex;
flex-wrap: wrap;
}
</style> </style>
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