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