refactor: add prettier and format

This commit is contained in:
Hufe921
2023-07-18 20:33:59 +08:00
parent 9c2bd33b7a
commit d464c50435
158 changed files with 3749 additions and 2265 deletions
+46 -46
View File
@@ -2,62 +2,62 @@ import { Command } from '../../core/command/Command'
import { IElement } from '../Element'
export interface IContextMenuContext {
startElement: IElement | null;
endElement: IElement | null;
isReadonly: boolean;
editorHasSelection: boolean;
editorTextFocus: boolean;
isInTable: boolean;
isCrossRowCol: boolean;
startElement: IElement | null
endElement: IElement | null
isReadonly: boolean
editorHasSelection: boolean
editorTextFocus: boolean
isInTable: boolean
isCrossRowCol: boolean
}
export interface IRegisterContextMenu {
i18nPath?: string;
isDivider?: boolean;
icon?: string;
name?: string;
shortCut?: string;
when?: (payload: IContextMenuContext) => boolean;
callback?: (command: Command, context: IContextMenuContext) => any;
childMenus?: IRegisterContextMenu[];
i18nPath?: string
isDivider?: boolean
icon?: string
name?: string
shortCut?: string
when?: (payload: IContextMenuContext) => boolean
callback?: (command: Command, context: IContextMenuContext) => any
childMenus?: IRegisterContextMenu[]
}
export interface IContextmenuLang {
global: {
cut: string;
copy: string;
paste: string;
selectAll: string;
print: string;
};
cut: string
copy: string
paste: string
selectAll: string
print: string
}
control: {
delete: string;
};
delete: string
}
hyperlink: {
delete: string;
cancel: string;
edit: string;
};
delete: string
cancel: string
edit: string
}
image: {
change: string;
saveAs: string;
textWrap: string;
change: string
saveAs: string
textWrap: string
textWrapType: {
embed: string;
upDown: string;
embed: string
upDown: string
}
};
}
table: {
insertRowCol: string;
insertTopRow: string;
insertBottomRow: string;
insertLeftCol: string;
insertRightCol: string;
deleteRowCol: string;
deleteRow: string;
deleteCol: string;
deleteTable: string;
mergeCell: string;
mergeCancelCell: string;
};
}
insertRowCol: string
insertTopRow: string
insertBottomRow: string
insertLeftCol: string
insertRightCol: string
deleteRowCol: string
deleteRow: string
deleteCol: string
deleteTable: string
mergeCell: string
mergeCancelCell: string
}
}