mirror of
				https://gitee.com/hhyykk/ipms-sjy.git
				synced 2025-10-31 02:08:43 +08:00 
			
		
		
		
	perf: 添加可配置高度
This commit is contained in:
		| @@ -11,6 +11,7 @@ const message = useMessage() // 消息弹窗 | |||||||
|  |  | ||||||
| interface UseVxeGridConfig<T = any> { | interface UseVxeGridConfig<T = any> { | ||||||
|   allSchemas: VxeAllSchemas |   allSchemas: VxeAllSchemas | ||||||
|  |   height?: number // 高度 默认730 | ||||||
|   topActionSlots?: boolean // 是否开启表格内顶部操作栏插槽 |   topActionSlots?: boolean // 是否开启表格内顶部操作栏插槽 | ||||||
|   treeConfig?: VxeTablePropTypes.TreeConfig // 树形表单配置 |   treeConfig?: VxeTablePropTypes.TreeConfig // 树形表单配置 | ||||||
|   isList?: boolean // 是否不带分页的list |   isList?: boolean // 是否不带分页的list | ||||||
| @@ -48,7 +49,7 @@ export const useVxeGrid = <T = any>(config?: UseVxeGridConfig<T>) => { | |||||||
|   const gridOptions = reactive<VxeGridProps<any>>({ |   const gridOptions = reactive<VxeGridProps<any>>({ | ||||||
|     loading: true, |     loading: true, | ||||||
|     size: currentSize as any, |     size: currentSize as any, | ||||||
|     height: 730, // 1080高度 |     height: config?.height ? config.height : 730, | ||||||
|     rowConfig: { |     rowConfig: { | ||||||
|       isCurrent: true, // 当鼠标点击行时,是否要高亮当前行 |       isCurrent: true, // 当鼠标点击行时,是否要高亮当前行 | ||||||
|       isHover: true // 当鼠标移到行时,是否要高亮当前行 |       isHover: true // 当鼠标移到行时,是否要高亮当前行 | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 xingyu
					xingyu