lc-vue-pro-table
Version:
vue3高级表格
59 lines (58 loc) • 2.96 kB
TypeScript
import { Ref } from 'vue';
import { ColumnConfig, CustomColumnConfig, SelectionType, TableConfig } from '@/types';
declare const useProvideTable: () => {
tableConfig: Readonly<Ref<TableConfig>>;
selectionRows: Ref<any[]>;
selectionType: Ref<SelectionType>;
columnConfigs: import("vue").ComputedRef<ColumnConfig[]>;
configMap: import("vue").ComputedRef<{
[index: string]: ColumnConfig;
}>;
columns: import("vue").ComputedRef<CustomColumnConfig[]>;
insertConfig: (config: ColumnConfig, index: number) => void;
updateConfig: (config: any) => void;
removeConfig: (config: ColumnConfig) => void;
getCustomColumns: () => CustomColumnConfig[];
updateCustomColumns: (customColumns: CustomColumnConfig[]) => void;
setTableConfig: (c: any) => void;
isSameRow: (a: any, b: any) => boolean;
reserveSelectionChecked: import("vue").ComputedRef<boolean>;
reserveSelectionIndeterminate: import("vue").ComputedRef<boolean>;
reserveSelectionSetType: (type: SelectionType) => void;
reserveSelectionToggleAll: () => void;
reserveSelectionRowCheckedStatusList: import("vue").ComputedRef<boolean[]>;
reserveSelectionToggleRow: (row: any, selected: any) => void;
selectionChecked: import("vue").ComputedRef<boolean>;
selectionIndeterminate: import("vue").ComputedRef<boolean>;
selectionRowCheckedStatusList: import("vue").ComputedRef<boolean[]>;
selectionToggleRow: (row: any, selected: any) => void;
selectionToggleAll: () => void;
}, useTable: () => {
tableConfig: Readonly<Ref<TableConfig>>;
selectionRows: Ref<any[]>;
selectionType: Ref<SelectionType>;
columnConfigs: import("vue").ComputedRef<ColumnConfig[]>;
configMap: import("vue").ComputedRef<{
[index: string]: ColumnConfig;
}>;
columns: import("vue").ComputedRef<CustomColumnConfig[]>;
insertConfig: (config: ColumnConfig, index: number) => void;
updateConfig: (config: any) => void;
removeConfig: (config: ColumnConfig) => void;
getCustomColumns: () => CustomColumnConfig[];
updateCustomColumns: (customColumns: CustomColumnConfig[]) => void;
setTableConfig: (c: any) => void;
isSameRow: (a: any, b: any) => boolean;
reserveSelectionChecked: import("vue").ComputedRef<boolean>;
reserveSelectionIndeterminate: import("vue").ComputedRef<boolean>;
reserveSelectionSetType: (type: SelectionType) => void;
reserveSelectionToggleAll: () => void;
reserveSelectionRowCheckedStatusList: import("vue").ComputedRef<boolean[]>;
reserveSelectionToggleRow: (row: any, selected: any) => void;
selectionChecked: import("vue").ComputedRef<boolean>;
selectionIndeterminate: import("vue").ComputedRef<boolean>;
selectionRowCheckedStatusList: import("vue").ComputedRef<boolean[]>;
selectionToggleRow: (row: any, selected: any) => void;
selectionToggleAll: () => void;
} | undefined;
export { useProvideTable, useTable };