feat:增加格式刷

This commit is contained in:
黄云飞
2021-11-16 09:37:32 +08:00
parent e9607674c7
commit 6cef3f096b
8 changed files with 106 additions and 26 deletions
+8 -3
View File
@@ -1,6 +1,4 @@
export interface IElement {
type?: 'TEXT' | 'IMAGE';
value: string;
export interface IElementStyle {
font?: string;
size?: number;
width?: number;
@@ -12,6 +10,13 @@ export interface IElement {
strikeout?: boolean;
}
export interface IElementBasic {
type?: 'TEXT' | 'IMAGE';
value: string;
}
export type IElement = IElementBasic & IElementStyle
export interface IElementPosition {
index: number;
value: string,