Browse Source

添加控制隐藏label功能

lincl 1 year ago
parent
commit
450ee6b90e
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/components/TablePage/index.vue

+ 2 - 2
src/components/TablePage/index.vue

@ -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;