diff --git a/package.json b/package.json index eaaa582..e3e09d0 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "vxe-pc-ui", - "version": "4.3.21", + "version": "4.3.22", "description": "A vue based PC component library", "scripts": { "update": "npm install --legacy-peer-deps", diff --git a/types/components/table.d.ts b/types/components/table.d.ts index 917b7e9..605ecfb 100644 --- a/types/components/table.d.ts +++ b/types/components/table.d.ts @@ -2711,6 +2711,8 @@ export interface TableReactData { }, scrollVMLoading: boolean + isCustomStatus: boolean + isDragRowMove: Boolean dragRow: any isDragColMove: boolean @@ -3040,6 +3042,10 @@ export interface TableMethods
{ visibleColumn: VxeTableDefines.ColumnInfo
[] tableColumn: VxeTableDefines.ColumnInfo
[] } + /** + * 获取表格的全量列 + */ + getFullColumns(): VxeTableDefines.ColumnInfo[] /** * 获取数据,和 data 的行为一致,也可以指定索引获取数据 */ @@ -3082,6 +3088,10 @@ export interface TableMethods
{ tableData: DT[] footerData: DT[][] } + /** + * 获取表格的全量数据,如果是 tree-config 则返回带层级的树结构 + */ + getFullData(): DT[] /** * 设置指定列为固定列 * @param fieldOrColumns 列对象或字段名,支持传多个 @@ -4407,6 +4417,7 @@ export namespace VxeTableDefines { columns: VxeTableDefines.ColumnInfo[] isAllChecked: boolean isAllIndeterminate: boolean + isCustomStatus: boolean } export interface RowDragSlotParams {