Browse Source
fix: [adapter] 表格配置类型报错 (#6327)
配置toolbarConfig中的search时会有类型报错
pull/5500/head
zyy
11 months ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with
11 additions and
4 deletions
-
apps/web-antd/src/adapter/vxe-table.ts
-
apps/web-ele/src/adapter/vxe-table.ts
-
apps/web-naive/src/adapter/vxe-table.ts
-
playground/src/adapter/vxe-table.ts
|
|
|
@ -1,3 +1,5 @@ |
|
|
|
import type { VxeTableGridOptions } from '@vben/plugins/vxe-table'; |
|
|
|
|
|
|
|
import { h } from 'vue'; |
|
|
|
|
|
|
|
import { setupVbenVxeTable, useVbenVxeGrid } from '@vben/plugins/vxe-table'; |
|
|
|
@ -33,7 +35,7 @@ setupVbenVxeTable({ |
|
|
|
round: true, |
|
|
|
showOverflow: true, |
|
|
|
size: 'small', |
|
|
|
}, |
|
|
|
} as VxeTableGridOptions, |
|
|
|
}); |
|
|
|
|
|
|
|
// 表格配置项可以用 cellRender: { name: 'CellImage' },
|
|
|
|
|
|
|
|
@ -1,3 +1,5 @@ |
|
|
|
import type { VxeTableGridOptions } from '@vben/plugins/vxe-table'; |
|
|
|
|
|
|
|
import { h } from 'vue'; |
|
|
|
|
|
|
|
import { setupVbenVxeTable, useVbenVxeGrid } from '@vben/plugins/vxe-table'; |
|
|
|
@ -33,7 +35,7 @@ setupVbenVxeTable({ |
|
|
|
round: true, |
|
|
|
showOverflow: true, |
|
|
|
size: 'small', |
|
|
|
}, |
|
|
|
} as VxeTableGridOptions, |
|
|
|
}); |
|
|
|
|
|
|
|
// 表格配置项可以用 cellRender: { name: 'CellImage' },
|
|
|
|
|
|
|
|
@ -1,3 +1,5 @@ |
|
|
|
import type { VxeTableGridOptions } from '@vben/plugins/vxe-table'; |
|
|
|
|
|
|
|
import { h } from 'vue'; |
|
|
|
|
|
|
|
import { setupVbenVxeTable, useVbenVxeGrid } from '@vben/plugins/vxe-table'; |
|
|
|
@ -33,7 +35,7 @@ setupVbenVxeTable({ |
|
|
|
round: true, |
|
|
|
showOverflow: true, |
|
|
|
size: 'small', |
|
|
|
}, |
|
|
|
} as VxeTableGridOptions, |
|
|
|
}); |
|
|
|
|
|
|
|
// 表格配置项可以用 cellRender: { name: 'CellImage' },
|
|
|
|
|
|
|
|
@ -1,3 +1,4 @@ |
|
|
|
import type { VxeTableGridOptions } from '@vben/plugins/vxe-table'; |
|
|
|
import type { Recordable } from '@vben/types'; |
|
|
|
|
|
|
|
import type { ComponentType } from './component'; |
|
|
|
@ -47,7 +48,7 @@ setupVbenVxeTable({ |
|
|
|
round: true, |
|
|
|
showOverflow: true, |
|
|
|
size: 'small', |
|
|
|
}, |
|
|
|
} as VxeTableGridOptions, |
|
|
|
}); |
|
|
|
|
|
|
|
/** |
|
|
|
|