perf: vxe

pull/2/head
xingyu 2022-11-15 20:12:32 +08:00
parent a123c47042
commit 12ac097b47
2 changed files with 2 additions and 1 deletions

View File

@ -114,7 +114,7 @@ const filterSearchSchema = (crudSchema: VxeCrudSchema): VxeFormItemProps[] => {
const searchSchema: VxeFormItemProps[] = [] const searchSchema: VxeFormItemProps[] = []
eachTree(crudSchema.columns, (schemaItem: VxeCrudColumns) => { eachTree(crudSchema.columns, (schemaItem: VxeCrudColumns) => {
// 判断是否显示 // 判断是否显示
if (schemaItem?.isSearch) { if (schemaItem?.isSearch || schemaItem.search?.show) {
let itemRenderName = schemaItem?.search?.itemRender?.name || '$input' let itemRenderName = schemaItem?.search?.itemRender?.name || '$input'
const options: any[] = [] const options: any[] = []
let itemRender: FormItemRenderOptions = { let itemRender: FormItemRenderOptions = {

View File

@ -65,6 +65,7 @@ const crudSchemas = reactive<VxeCrudSchema>({
formatter: 'formatDate', formatter: 'formatDate',
isForm: false, isForm: false,
search: { search: {
show: true,
itemRender: { itemRender: {
name: 'XDataTimePicker' name: 'XDataTimePicker'
} }