@textbus/xnote
Version:
A high-performance rich text editor that supports multiplayer online collaboration.
20 lines (19 loc) • 468 B
TypeScript
import { Slot } from '@textbus/core';
import { TableComponentMergeCellConfig } from '../table.component';
export interface TableCellConfig {
rowspan: number;
colspan: number;
slot: Slot;
id: string;
}
/**
* 修复不规范表格,并补全空位
* @param table
*/
export declare function autoComplete(table: TableCellConfig[][]): {
mergedConfig: TableComponentMergeCellConfig;
table: {
id: string;
slot: Slot;
}[][];
};