微调
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
<div v-if='columns.length' class='card table-search'>
|
||||
<el-form ref='formRef' :model='searchParam'>
|
||||
<Grid ref='gridRef' :collapsed='collapsed' :gap='[20, 0]' :cols='searchCol'>
|
||||
<GridItem v-for='(item, index) in columns' :key='item.prop' v-bind='getResponsive(item)' :index='index + 1'>
|
||||
<GridItem v-for='(item, index) in columns' :key='item.prop' v-bind='getResponsive(item)' :index='index'>
|
||||
<el-form-item>
|
||||
<template #label>
|
||||
<el-space :size='4'>
|
||||
@@ -41,10 +41,11 @@ import Grid from '@/components/Grid/index.vue'
|
||||
import GridItem from '@/components/Grid/components/GridItem.vue'
|
||||
|
||||
|
||||
|
||||
interface ProTableProps {
|
||||
columns?: ColumnProps[]; // 搜索配置列
|
||||
searchParam?: { [key: string]: any }; // 搜索参数
|
||||
searchParam?: {
|
||||
[key: string]: any
|
||||
}; // 搜索参数
|
||||
searchCol: number | Record<BreakPoint, number>;
|
||||
search: (params: any) => void; // 搜索方法
|
||||
reset: (params: any) => void; // 重置方法
|
||||
|
||||
Reference in New Issue
Block a user