mirror of
https://gitee.com/huangge1199_admin/vue-pro.git
synced 2024-11-26 17:21:53 +08:00
perf: 添加可配置高度
This commit is contained in:
parent
6b35f5c664
commit
ca2cdc031d
@ -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 // 当鼠标移到行时,是否要高亮当前行
|
||||||
|
Loading…
Reference in New Issue
Block a user