mirror of
				https://github.com/YunaiV/ruoyi-vue-pro.git
				synced 2025-10-31 10:37:41 +08:00 
			
		
		
		
	perf: vxe img 渲染增加预览
This commit is contained in:
		| @ -11,6 +11,7 @@ VXETable.renderer.add('XImg', { | |||||||
|         style="width: 80px; height: 50px" |         style="width: 80px; height: 50px" | ||||||
|         src={row[column.field]} |         src={row[column.field]} | ||||||
|         key={row[column.field]} |         key={row[column.field]} | ||||||
|  |         preview-src-list={[row[column.field]]} | ||||||
|         fit="contain" |         fit="contain" | ||||||
|         lazy |         lazy | ||||||
|       ></ElImage> |       ></ElImage> | ||||||
|  | |||||||
| @ -39,8 +39,9 @@ const crudSchemas = reactive<VxeCrudSchema>({ | |||||||
|       title: '应用图标', |       title: '应用图标', | ||||||
|       field: 'logo', |       field: 'logo', | ||||||
|       table: { |       table: { | ||||||
|         type: 'html', |         cellRender: { | ||||||
|         formatter: 'formatImg' |           name: 'XImg' | ||||||
|  |         } | ||||||
|       } |       } | ||||||
|     }, |     }, | ||||||
|     { |     { | ||||||
|  | |||||||
		Reference in New Issue
	
	Block a user
	 xingyu4j
					xingyu4j