feat:data persistence

This commit is contained in:
黄云飞
2021-12-29 20:42:34 +08:00
parent e4002c3415
commit 8a4688cfd1
8 changed files with 119 additions and 5 deletions
+20 -1
View File
@@ -1,6 +1,6 @@
import { IElement } from "../../interface/Element"
export const EDITOR_ELEMENT_STYLE = [
export const EDITOR_ELEMENT_STYLE_ATTR = [
'bold',
'color',
'highlight',
@@ -24,4 +24,23 @@ export const EDITOR_ELEMENT_COPY_ATTR: Array<keyof IElement> = [
'rowFlex',
'url',
'hyperlinkId'
]
export const EDITOR_ELEMENT_ZIP_ATTR: Array<keyof IElement> = [
'type',
'font',
'size',
'bold',
'color',
'italic',
'highlight',
'underline',
'strikeout',
'rowFlex',
'trList',
'width',
'height',
'url',
'colgroup',
'valueList'
]
+1
View File
@@ -8,6 +8,7 @@ export enum KeyMap {
Down = "ArrowDown",
A = "a",
C = "c",
S = "s",
X = "x",
Y = "y",
Z = "z"