feat: add conceptId attribute to table element

This commit is contained in:
Hufe921
2023-12-19 21:42:59 +08:00
parent 3312254742
commit b55471b134
4 changed files with 5 additions and 1 deletions
+1
View File
@@ -44,6 +44,7 @@ interface IElement {
// groupIds // groupIds
groupIds?: string[]; groupIds?: string[];
// table // table
conceptId?: string;
colgroup?: { colgroup?: {
width: number; width: number;
}[]; }[];
+1
View File
@@ -44,6 +44,7 @@ interface IElement {
// 组信息-可用于批注等其他成组使用场景 // 组信息-可用于批注等其他成组使用场景
groupIds?: string[]; groupIds?: string[];
// 表格 // 表格
conceptId?: string;
colgroup?: { colgroup?: {
width: number; width: number;
}[]; }[];
+2 -1
View File
@@ -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> = [
+1
View File
@@ -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