feat: add conceptId attribute to table element

pr675
Hufe921 2 years ago
parent 3312254742
commit b55471b134

@ -44,6 +44,7 @@ interface IElement {
// groupIds // groupIds
groupIds?: string[]; groupIds?: string[];
// table // table
conceptId?: string;
colgroup?: { colgroup?: {
width: number; width: number;
}[]; }[];

@ -44,6 +44,7 @@ interface IElement {
// 组信息-可用于批注等其他成组使用场景 // 组信息-可用于批注等其他成组使用场景
groupIds?: string[]; groupIds?: string[];
// 表格 // 表格
conceptId?: string;
colgroup?: { colgroup?: {
width: number; width: number;
}[]; }[];

@ -59,7 +59,8 @@ export const EDITOR_ELEMENT_ZIP_ATTR: Array<keyof IElement> = [
'listType', 'listType',
'listStyle', 'listStyle',
'listWrap', 'listWrap',
'groupIds' 'groupIds',
'conceptId'
] ]
export const TABLE_TD_ZIP_ATTR: Array<keyof ITd> = [ export const TABLE_TD_ZIP_ATTR: Array<keyof ITd> = [

@ -60,6 +60,7 @@ export interface ITableElement {
tdId?: string tdId?: string
trId?: string trId?: string
tableId?: string tableId?: string
conceptId?: string
} }
export type ITable = ITableAttr & ITableElement export type ITable = ITableAttr & ITableElement

Loading…
Cancel
Save