feat: add externalId property to element #552

pr675
Hufe921 2 years ago
parent 64630f2f63
commit 65255229c5

@ -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 {

Loading…
Cancel
Save