feat: add externalId property to element #552

This commit is contained in:
Hufe921
2024-05-19 20:03:03 +08:00
parent 64630f2f63
commit 65255229c5
4 changed files with 5 additions and 1 deletions
+1
View File
@@ -24,6 +24,7 @@ interface IElement {
value: string;
valueList?: IElement[]; // Use of composite elements (hyperlinks, titles, lists, and so on).
extension?: unknown;
externalId?: string;
// style
font?: string;
size?: number;
+1
View File
@@ -24,6 +24,7 @@ interface IElement {
value: string;
valueList?: IElement[]; // 复合元素(超链接、标题、列表等)使用
extension?: unknown;
externalId?: string;
// 样式
font?: string;
size?: number;
+2 -1
View File
@@ -73,7 +73,8 @@ export const EDITOR_ELEMENT_ZIP_ATTR: Array<keyof IElement> = [
'imgDisplay',
'imgFloatPosition',
'textDecoration',
'extension'
'extension',
'externalId'
]
export const TABLE_TD_ZIP_ATTR: Array<keyof ITd> = [
+1
View File
@@ -19,6 +19,7 @@ export interface IElementBasic {
type?: ElementType
value: string
extension?: unknown
externalId?: string
}
export interface IElementStyle {