跳到主要内容

snapshotSelection()

function snapshotSelection(table, columns?): ClipboardContent | null;

Defined in: packages/rxdb-model/src/entity-table/vtable/table-clipboard.ts:181

将当前 VTable 选区快照为剪贴板内容。

跳过:表头行、只读行、新增行、元字段列(_ 前缀)。

Parameters​

ParameterTypeDescription
tableListTableAll目标表格实例
columns?readonly Record<string, unknown>[]列定义列表(可选),用于读取列属性类型

Returns​

ClipboardContent | null

剪贴板快照;无可复制单元格时返回 null