diff --git a/docs/en/guide/schema.md b/docs/en/guide/schema.md index 5e4295d..2359115 100644 --- a/docs/en/guide/schema.md +++ b/docs/en/guide/schema.md @@ -44,6 +44,7 @@ interface IElement { // groupIds groupIds?: string[]; // table + conceptId?: string; colgroup?: { width: number; }[]; diff --git a/docs/guide/schema.md b/docs/guide/schema.md index 177deab..64fc662 100644 --- a/docs/guide/schema.md +++ b/docs/guide/schema.md @@ -44,6 +44,7 @@ interface IElement { // 组信息-可用于批注等其他成组使用场景 groupIds?: string[]; // 表格 + conceptId?: string; colgroup?: { width: number; }[]; diff --git a/src/editor/dataset/constant/Element.ts b/src/editor/dataset/constant/Element.ts index 891a085..9b40cf6 100644 --- a/src/editor/dataset/constant/Element.ts +++ b/src/editor/dataset/constant/Element.ts @@ -59,7 +59,8 @@ export const EDITOR_ELEMENT_ZIP_ATTR: Array = [ 'listType', 'listStyle', 'listWrap', - 'groupIds' + 'groupIds', + 'conceptId' ] export const TABLE_TD_ZIP_ATTR: Array = [ diff --git a/src/editor/interface/Element.ts b/src/editor/interface/Element.ts index c2eaa18..9ad9963 100644 --- a/src/editor/interface/Element.ts +++ b/src/editor/interface/Element.ts @@ -60,6 +60,7 @@ export interface ITableElement { tdId?: string trId?: string tableId?: string + conceptId?: string } export type ITable = ITableAttr & ITableElement