feat: add element group

This commit is contained in:
Hufe921
2023-08-25 20:00:02 +08:00
committed by Hufe
parent f19077b2ce
commit 3e183aefa5
27 changed files with 488 additions and 17 deletions
+4 -2
View File
@@ -26,7 +26,8 @@ export const EDITOR_ELEMENT_COPY_ATTR: Array<keyof IElement> = [
'url',
'hyperlinkId',
'dateId',
'dateFormat'
'dateFormat',
'groupIds'
]
export const EDITOR_ELEMENT_ZIP_ATTR: Array<keyof IElement> = [
@@ -56,7 +57,8 @@ export const EDITOR_ELEMENT_ZIP_ATTR: Array<keyof IElement> = [
'level',
'listType',
'listStyle',
'listWrap'
'listWrap',
'groupIds'
]
export const TABLE_CONTEXT_ATTR: Array<keyof IElement> = [
+9
View File
@@ -0,0 +1,9 @@
import { IGroup } from '../../interface/Group'
export const defaultGroupOption: Readonly<Required<IGroup>> = {
opacity: 0.1,
backgroundColor: '#E99D00',
activeOpacity: 0.5,
activeBackgroundColor: '#E99D00',
disabled: false
}
+2 -1
View File
@@ -5,7 +5,8 @@ export enum EditorComponent {
FOOTER = 'footer',
CONTEXTMENU = 'contextmenu',
POPUP = 'popup',
CATALOG = 'catalog'
CATALOG = 'catalog',
COMMENT = 'comment'
}
export enum EditorContext {