feat:set the cursor style when dragging text

This commit is contained in:
Hufe921
2023-02-23 21:19:48 +08:00
parent 8043449d58
commit 29771838f0
6 changed files with 57 additions and 9 deletions
+6
View File
@@ -0,0 +1,6 @@
export interface ICursorOption {
width?: number;
color?: string;
dragWidth?: number;
dragColor?: string;
}
+2
View File
@@ -2,6 +2,7 @@ import { IElement } from '..'
import { EditorMode, PageMode } from '../dataset/enum/Editor'
import { ICheckboxOption } from './Checkbox'
import { IControlOption } from './Control'
import { ICursorOption } from './Cursor'
import { IHeader } from './Header'
import { IMargin } from './Margin'
import { IWatermark } from './Watermark'
@@ -44,6 +45,7 @@ export interface IEditorOption {
watermark?: IWatermark;
control?: IControlOption;
checkbox?: ICheckboxOption;
cursor?: ICursorOption;
}
export interface IEditorResult {