improve: history stack memory
This commit is contained in:
@@ -1,4 +1,11 @@
|
||||
import { cloneProperty, deepClone, getUUID, isArrayEqual, splitText } from '.'
|
||||
import {
|
||||
cloneProperty,
|
||||
deepClone,
|
||||
deepCloneOmitKeys,
|
||||
getUUID,
|
||||
isArrayEqual,
|
||||
splitText
|
||||
} from '.'
|
||||
import {
|
||||
ElementType,
|
||||
IEditorOption,
|
||||
@@ -28,6 +35,7 @@ import {
|
||||
} from '../dataset/constant/Title'
|
||||
import { ControlComponent, ControlType } from '../dataset/enum/Control'
|
||||
import { DeepRequired } from '../interface/Common'
|
||||
import { IRowElement } from '../interface/Row'
|
||||
import { ITd } from '../interface/table/Td'
|
||||
import { ITr } from '../interface/table/Tr'
|
||||
|
||||
@@ -1169,3 +1177,10 @@ export function getTextFromElementList(elementList: IElement[]) {
|
||||
}
|
||||
return buildText(zipElementList(elementList))
|
||||
}
|
||||
|
||||
export function getSlimCloneElementList(elementList: IElement[]) {
|
||||
return deepCloneOmitKeys<IElement[], IRowElement>(elementList, [
|
||||
'metrics',
|
||||
'style'
|
||||
])
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user