fix:ts syntax error
This commit is contained in:
@@ -28,7 +28,7 @@ export interface IGetPositionByXYPayload {
|
||||
|
||||
export interface IPositionContext {
|
||||
isTable: boolean;
|
||||
isControl: boolean;
|
||||
isControl?: boolean;
|
||||
index?: number;
|
||||
trIndex?: number;
|
||||
tdIndex?: number;
|
||||
|
||||
@@ -19,7 +19,7 @@ export function deepClone<T>(obj: T): T {
|
||||
if (Array.isArray(obj)) {
|
||||
newObj = obj.map(item => deepClone(item))
|
||||
} else {
|
||||
Object.keys(obj).forEach((key) => {
|
||||
Object.keys(obj as any).forEach((key) => {
|
||||
// @ts-ignore
|
||||
return newObj[key] = deepClone(obj[key])
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user