mirror of
https://github.com/imdap/ruoyi-plus-vben5.git
synced 2026-05-06 10:01:26 +08:00
feat: table 类型VxeTableGridColumns替代VxeTableGridOptions['columns']魔法值写法
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
export { setupVbenVxeTable } from './init';
|
||||
export type { VxeTableGridOptions } from './types';
|
||||
export type { VxeTableGridColumns, VxeTableGridOptions } from './types';
|
||||
export * from './use-vxe-grid';
|
||||
|
||||
export { default as VbenVxeGrid } from './use-vxe-grid.vue';
|
||||
|
||||
@@ -26,6 +26,8 @@ interface ToolbarConfigOptions extends VxeGridPropTypes.ToolbarConfig {
|
||||
search?: boolean;
|
||||
}
|
||||
|
||||
export type VxeTableGridColumns<T = any> = VxeTableGridOptions<T>['columns'];
|
||||
|
||||
export interface VxeTableGridOptions<T = any> extends VxeTableGridProps<T> {
|
||||
/** 工具栏配置 */
|
||||
toolbarConfig?: ToolbarConfigOptions;
|
||||
@@ -40,6 +42,10 @@ export interface VxeGridProps<
|
||||
T extends Record<string, any> = any,
|
||||
D extends BaseFormComponentType = BaseFormComponentType,
|
||||
> {
|
||||
/**
|
||||
* 数据
|
||||
*/
|
||||
tableData?: any[];
|
||||
/**
|
||||
* 标题
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user