From 959a062f830042b78af498e2d6cbc4e5f82fa3d4 Mon Sep 17 00:00:00 2001 From: Hufe921 Date: Thu, 20 Jun 2024 21:58:27 +0800 Subject: [PATCH] feat: add conceptId attribute to table td #654 --- docs/en/guide/schema.md | 1 + docs/guide/schema.md | 1 + src/editor/dataset/constant/Element.ts | 1 + src/editor/interface/table/Td.ts | 1 + 4 files changed, 4 insertions(+) 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