feat: add externalId property to element #552
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -24,6 +24,7 @@ interface IElement {
|
||||
value: string;
|
||||
valueList?: IElement[]; // 复合元素(超链接、标题、列表等)使用
|
||||
extension?: unknown;
|
||||
externalId?: string;
|
||||
// 样式
|
||||
font?: string;
|
||||
size?: number;
|
||||
|
||||
@@ -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> = [
|
||||
|
||||
@@ -19,6 +19,7 @@ export interface IElementBasic {
|
||||
type?: ElementType
|
||||
value: string
|
||||
extension?: unknown
|
||||
externalId?: string
|
||||
}
|
||||
|
||||
export interface IElementStyle {
|
||||
|
||||
Reference in New Issue
Block a user