Commit 12ac097b47740d35632282496e9905133e3dbada

Authored by xingyu
1 parent a123c470

perf: vxe

yudao-ui-admin-vue3/src/hooks/web/useVxeCrudSchemas.ts
@@ -114,7 +114,7 @@ const filterSearchSchema = (crudSchema: VxeCrudSchema): VxeFormItemProps[] => { @@ -114,7 +114,7 @@ const filterSearchSchema = (crudSchema: VxeCrudSchema): VxeFormItemProps[] => {
114 const searchSchema: VxeFormItemProps[] = [] 114 const searchSchema: VxeFormItemProps[] = []
115 eachTree(crudSchema.columns, (schemaItem: VxeCrudColumns) => { 115 eachTree(crudSchema.columns, (schemaItem: VxeCrudColumns) => {
116 // 判断是否显示 116 // 判断是否显示
117 - if (schemaItem?.isSearch) { 117 + if (schemaItem?.isSearch || schemaItem.search?.show) {
118 let itemRenderName = schemaItem?.search?.itemRender?.name || '$input' 118 let itemRenderName = schemaItem?.search?.itemRender?.name || '$input'
119 const options: any[] = [] 119 const options: any[] = []
120 let itemRender: FormItemRenderOptions = { 120 let itemRender: FormItemRenderOptions = {
yudao-ui-admin-vue3/src/views/system/operatelog/operatelog.data.ts
@@ -65,6 +65,7 @@ const crudSchemas = reactive<VxeCrudSchema>({ @@ -65,6 +65,7 @@ const crudSchemas = reactive<VxeCrudSchema>({
65 formatter: 'formatDate', 65 formatter: 'formatDate',
66 isForm: false, 66 isForm: false,
67 search: { 67 search: {
  68 + show: true,
68 itemRender: { 69 itemRender: {
69 name: 'XDataTimePicker' 70 name: 'XDataTimePicker'
70 } 71 }