1、不能获取编辑这行数据的更新数据。 例如 let body = this.$refs.xTable.getRecordset() let { insertRecords, removeRecords, updateRecords } = body 不能获取updateRecords的数据 原因是没有用keep-sourece的。只对 keep-source 开启有效,是否显示单元格值的修改状态 ...
835 removeMergeFooterItems(merges: TableMergeConfig | TableMergeConfig[]): Promise<MergeItem[]>; 836 /** 837 * 获取表格数据集 838 * 获取新增、删除、更改的数据 839 */ 840 getRecordset(): { 841 insertRecords: RowInfo[]; 842 removeRecords: RowInfo[]; 843 updateRecords: RowInf...
getRecordset () { return { insertRecords: editMethods.getInsertRecords(), removeRecords: editMethods.getRemoveRecords(), updateRecords: editMethods.getUpdateRecords() updateRecords: editMethods.getUpdateRecords(), pendingRecords: $xetable.getPendingRecords() } }, /** @@ -486,7 +487,7 @@ co...
Expand Up@@ -428,11 +428,18 @@ hooks.add('tableEditModule', { * 获取表格数据集,包含新增、删除、修改、标记 */ getRecordset(){ constremoveRecords=editMethods.getRemoveRecords() constpendingRecords=$xeTable.getPendingRecords() constdelRecords=removeRecords.concat(pendingRecords) ...
VXETable, Table, Grid, ColumnOptions, ColumnCellRenderParams } from 'vxe-table' interface VirtualTree extends Grid { $refs: { xTable: Table; [key: string]: any; }; _loadTreeData(data: any[]): Promise<any>; handleColumns(columns: ColumnOptions[]): ColumnOptions...
835 removeMergeFooterItems(merges: TableMergeConfig | TableMergeConfig[]): Promise<MergeItem[]>; 836 /** 837 * 获取表格数据集 838 * 获取新增、删除、更改的数据 839 */ 840 getRecordset(): { 841 insertRecords: RowInfo[]; 842 removeRecords: RowInfo[]; 843 updateRecords: RowInf...
VXETable, Table, Grid, ColumnOptions, ColumnCellRenderParams } from 'vxe-table' interface VirtualTree extends Grid { $refs: { xTable: Table; [key: string]: any; }; _loadTreeData(data: any[]): Promise<any>; handleColumns(columns: ColumnOptions[]): ColumnOptions...
value; if ($table) { const selectRecords = $table.getCheckboxRecords(); VxeUI.modal.alert(selectRecords.length); } }; const saveEvent = () => { const $table = tableRef.value; if ($table) { const { insertRecords, removeRecords, updateRecords } = $table.getRecordset(); VxeUI.modal...
const tableEditMethodKeys: (keyof TableEditMethods)[] = ['insert', 'insertAt', 'insertNextAt', 'remove', 'removeCheckboxRow', 'removeRadioRow', 'removeCurrentRow', 'getRecordset', 'getInsertRecords', 'getRemoveRecords', 'getUpdateRecords', 'getEditRecord', 'getActiveRecord', 'getSelected...
vxe-table/types/table.d.ts Version: 30.1 kBTypeScriptView Raw 1 import { VXETableModule } from './component' 2 import { ColumnOptions, ColumnConfig, ColumnCellRenderParams } from './column' 3 import { RenderParams, RenderOptions } from './extends/renderer' 4 import { ExportOptons...