@guihz/trading-vue-editor-tes 0.0.37 → 0.0.39

Sign up to get free protection for your applications and to get access to all the features.
@@ -11,13 +11,14 @@ interface IProps {
11
11
  options?: editor.IStandaloneEditorConstructionOptions;
12
12
  hasDiff?: boolean;
13
13
  defaultValue?: string;
14
+ onEditorDidMount?: () => void;
14
15
  onCursorPositionChange?: (position: IPosition) => void;
15
16
  onChange?: (value: string) => void;
16
17
  onDeclareConfigChange?: (value: IKeyObjectValue) => void;
17
18
  onActionTrigger?: (actionId: string) => void;
18
19
  }
19
20
  export interface IRefs {
20
- saveScript: () => void;
21
+ setOriginalScript: (val: string) => void;
21
22
  gotoLine: () => void;
22
23
  setScript: (code: string) => void;
23
24
  getEditorLayout: () => undefined | {
@@ -13,7 +13,7 @@ export default class InitEditor {
13
13
  removeDiffDecorations(): void;
14
14
  setValue(val: string): void;
15
15
  setPosition(position: IPosition): void;
16
- saveScripts(): void;
16
+ setOriginalScript(val: string): void;
17
17
  getEditorLayout(): {
18
18
  contentHeight: number;
19
19
  lineCount: number | undefined;