|
@ -4,7 +4,7 @@
|
|
|
<div class="search-bar" v-if="showSearchBar">
|
|
|
<el-form :inline="true">
|
|
|
<template v-for="(item, i) in configs.columns">
|
|
|
<el-form-item :label="item.label" :key="i" v-if="item.isSearch" :class="{'radioGroup-item':item.type=='radioGroup'}">
|
|
|
<el-form-item :label="item.showLabel===false? '' : item.label" :key="i" v-if="item.isSearch" :class="{'radioGroup-item':item.type=='radioGroup'}">
|
|
|
<slot v-if="$scopedSlots[item.id+'Search']" :name="item.id+'Search'"/>
|
|
|
<template v-else>
|
|
|
<el-input v-if="item.type=='text'" v-model="searchForm[item.id]" :placeholder="item.placeholder||item.label" clearable/>
|
|
@ -323,7 +323,7 @@ export default {
|
|
|
}
|
|
|
.el-form-item{
|
|
|
width: auto;
|
|
|
margin-right: 40px;
|
|
|
margin-right: 24px;
|
|
|
}
|
|
|
.mb22{
|
|
|
margin-bottom: 22px;
|