mirror of
				https://github.com/YunaiV/ruoyi-vue-pro.git
				synced 2025-10-31 18:49:06 +08:00 
			
		
		
		
	perf: vxe
This commit is contained in:
		| @ -104,8 +104,8 @@ export const useVxeCrudSchemas = ( | |||||||
|  |  | ||||||
| // 过滤 Search 结构 | // 过滤 Search 结构 | ||||||
| const filterSearchSchema = (crudSchema: VxeCrudSchema): VxeFormItemProps[] => { | const filterSearchSchema = (crudSchema: VxeCrudSchema): VxeFormItemProps[] => { | ||||||
|   const searchSchema: VxeFormItemProps[] = [] |  | ||||||
|   const { t } = useI18n() |   const { t } = useI18n() | ||||||
|  |   const searchSchema: VxeFormItemProps[] = [] | ||||||
|   eachTree(crudSchema.columns, (schemaItem: VxeCrudColumns) => { |   eachTree(crudSchema.columns, (schemaItem: VxeCrudColumns) => { | ||||||
|     // 判断是否显示 |     // 判断是否显示 | ||||||
|     if (schemaItem?.search?.show) { |     if (schemaItem?.search?.show) { | ||||||
| @ -132,14 +132,11 @@ const filterSearchSchema = (crudSchema: VxeCrudSchema): VxeFormItemProps[] => { | |||||||
|       const searchSchemaItem = { |       const searchSchemaItem = { | ||||||
|         // 默认为 input |         // 默认为 input | ||||||
|         folding: searchSchema.length > 2, |         folding: searchSchema.length > 2, | ||||||
|         itemRender: itemRender, |         itemRender: schemaItem.itemRender ? schemaItem.itemRender : itemRender, | ||||||
|         ...schemaItem.search, |  | ||||||
|         field: schemaItem.field, |         field: schemaItem.field, | ||||||
|         title: schemaItem.search?.title || schemaItem.title, |         title: schemaItem.search?.title || schemaItem.title, | ||||||
|         span: 8 |         span: 8 | ||||||
|       } |       } | ||||||
|       // 删除不必要的字段 |  | ||||||
|       delete searchSchemaItem.show |  | ||||||
|  |  | ||||||
|       searchSchema.push(searchSchemaItem) |       searchSchema.push(searchSchemaItem) | ||||||
|     } |     } | ||||||
|  | |||||||
| @ -10,18 +10,6 @@ | |||||||
|           @click="handleCreate()" |           @click="handleCreate()" | ||||||
|         /> |         /> | ||||||
|       </template> |       </template> | ||||||
|       <template #createTime_item="{ data }"> |  | ||||||
|         <el-date-picker |  | ||||||
|           v-model="data.createTime" |  | ||||||
|           type="datetimerange" |  | ||||||
|           range-separator="-" |  | ||||||
|           :start-placeholder="t('common.startTimeText')" |  | ||||||
|           :end-placeholder="t('common.endTimeText')" |  | ||||||
|         /> |  | ||||||
|       </template> |  | ||||||
|       <template #type_default="{ row }"> |  | ||||||
|         <DictTag :type="DICT_TYPE.COMMON_STATUS" :value="row.status" /> |  | ||||||
|       </template> |  | ||||||
|       <template #actionbtns_default="{ row }"> |       <template #actionbtns_default="{ row }"> | ||||||
|         <XTextButton |         <XTextButton | ||||||
|           preIcon="ep:edit" |           preIcon="ep:edit" | ||||||
| @ -93,7 +81,6 @@ import { useMessage } from '@/hooks/web/useMessage' | |||||||
| import { useVxeGrid } from '@/hooks/web/useVxeGrid' | import { useVxeGrid } from '@/hooks/web/useVxeGrid' | ||||||
| import { VxeGridInstance } from 'vxe-table' | import { VxeGridInstance } from 'vxe-table' | ||||||
| import { FormExpose } from '@/components/Form' | import { FormExpose } from '@/components/Form' | ||||||
| import { ElDatePicker } from 'element-plus' |  | ||||||
|  |  | ||||||
| const { t } = useI18n() // 国际化 | const { t } = useI18n() // 国际化 | ||||||
| const message = useMessage() // 消息弹窗 | const message = useMessage() // 消息弹窗 | ||||||
|  | |||||||
| @ -10,9 +10,6 @@ | |||||||
|           @click="handleCreate()" |           @click="handleCreate()" | ||||||
|         /> |         /> | ||||||
|       </template> |       </template> | ||||||
|       <template #status_default="{ row }"> |  | ||||||
|         <DictTag :type="DICT_TYPE.COMMON_STATUS" :value="row.status" /> |  | ||||||
|       </template> |  | ||||||
|       <template #actionbtns_default="{ row }"> |       <template #actionbtns_default="{ row }"> | ||||||
|         <XTextButton |         <XTextButton | ||||||
|           preIcon="ep:edit" |           preIcon="ep:edit" | ||||||
|  | |||||||
		Reference in New Issue
	
	Block a user
	 xingyu4j
					xingyu4j