feat: control default style #340

This commit is contained in:
Hufe921
2024-04-14 14:48:30 +08:00
parent de06f6cc9b
commit eee22363d3
7 changed files with 89 additions and 21 deletions
+11
View File
@@ -1,6 +1,7 @@
import { ElementType } from '../enum/Element'
import { IElement } from '../../interface/Element'
import { ITd } from '../../interface/table/Td'
import { IControlStyle } from '../../interface/Control'
export const EDITOR_ELEMENT_STYLE_ATTR: Array<keyof IElement> = [
'bold',
@@ -99,6 +100,16 @@ export const CONTROL_CONTEXT_ATTR: Array<keyof IElement> = [
'controlComponent'
]
export const CONTROL_STYLE_ATTR: Array<keyof IControlStyle> = [
'font',
'size',
'bold',
'color',
'highlight',
'italic',
'strikeout'
]
export const EDITOR_ELEMENT_CONTEXT_ATTR: Array<keyof IElement> = [
...TABLE_CONTEXT_ATTR,
...TITLE_CONTEXT_ATTR,