diff --git a/docs/en/guide/schema.md b/docs/en/guide/schema.md index 392a8fc..682dd59 100644 --- a/docs/en/guide/schema.md +++ b/docs/en/guide/schema.md @@ -61,6 +61,7 @@ interface IElement { tdList: { colspan: number; rowspan: number; + conceptId?: string; verticalAlign?: VerticalAlign; backgroundColor?: string; borderTypes?: TdBorder[]; diff --git a/docs/guide/schema.md b/docs/guide/schema.md index 9299252..8965300 100644 --- a/docs/guide/schema.md +++ b/docs/guide/schema.md @@ -61,6 +61,7 @@ interface IElement { tdList: { colspan: number; rowspan: number; + conceptId?: string; verticalAlign?: VerticalAlign; backgroundColor?: string; borderTypes?: TdBorder[]; diff --git a/src/editor/dataset/constant/Element.ts b/src/editor/dataset/constant/Element.ts index 7ef23b3..75e70ff 100644 --- a/src/editor/dataset/constant/Element.ts +++ b/src/editor/dataset/constant/Element.ts @@ -77,6 +77,7 @@ export const EDITOR_ELEMENT_ZIP_ATTR: Array = [ ] export const TABLE_TD_ZIP_ATTR: Array = [ + 'conceptId', 'verticalAlign', 'backgroundColor', 'borderTypes', diff --git a/src/editor/interface/table/Td.ts b/src/editor/interface/table/Td.ts index 7e9f366..9270ab5 100644 --- a/src/editor/interface/table/Td.ts +++ b/src/editor/interface/table/Td.ts @@ -4,6 +4,7 @@ import { IElement, IElementPosition } from '../Element' import { IRow } from '../Row' export interface ITd { + conceptId?: string id?: string x?: number y?: number