@guihz/trading-vue-editor-tes 0.0.218 → 0.0.220

Sign up to get free protection for your applications and to get access to all the features.
@@ -3,7 +3,7 @@ import { Theme } from "@monaco-editor/react";
3
3
  import { IPosition, editor } from "monaco-editor";
4
4
  import "./style.css";
5
5
  import { IKeyObjectValue } from "./type";
6
- import '../../i18n';
6
+ import "../../i18n";
7
7
  interface IProps {
8
8
  height?: string | number;
9
9
  width?: string | number;
@@ -12,6 +12,7 @@ interface IProps {
12
12
  options?: editor.IStandaloneEditorConstructionOptions;
13
13
  hasDiff?: boolean;
14
14
  defaultValue?: string;
15
+ language?: string;
15
16
  onEditorDidMount?: () => void;
16
17
  onCursorPositionChange?: (position: IPosition) => void;
17
18
  onChange?: (value: string) => void;
@@ -1,5 +1,6 @@
1
1
  import { BuiltInVariables } from "../buildInVariables";
2
2
  import { PseudoArray } from "./array";
3
+ import { BuildInStr } from ".";
3
4
  interface ILogArgs {
4
5
  message?: string;
5
6
  formatString?: string;
@@ -15,7 +16,8 @@ export declare class Log {
15
16
  private _logs;
16
17
  private _variables;
17
18
  private _intlFormat;
18
- constructor(variables: BuiltInVariables);
19
+ private _str;
20
+ constructor(variables: BuiltInVariables, str: BuildInStr);
19
21
  get logs(): ILog[];
20
22
  clearLogs(): void;
21
23
  info(args: ILogArgs, replaces: (string | number | PseudoArray)[], posStr: string): void;
@@ -45,6 +45,7 @@ export default class BuildInStr {
45
45
  private _toStringFormat;
46
46
  private _formatOthers;
47
47
  private _formatNumber;
48
+ strformat({ formatString }: IStrArgs, args: any[], precision?: number): string;
48
49
  private _strFormat;
49
50
  }
50
51
  export {};
@@ -4,6 +4,7 @@ import { Theme } from "@monaco-editor/react";
4
4
  import '../../i18n';
5
5
  interface IProps {
6
6
  theme?: Theme;
7
+ language?: string;
7
8
  currentValue: {
8
9
  index?: number;
9
10
  value?: string;
@@ -53,6 +53,9 @@ declare const _default: {
53
53
  Fields: string;
54
54
  Description: string;
55
55
  Example: string;
56
- EnumMembers: string;
56
+ 'Enum members': string;
57
+ statement: string;
58
+ loop: string;
59
+ '`click` on keyword for more help': string;
57
60
  };
58
61
  export default _default;
@@ -53,6 +53,9 @@ declare const _default: {
53
53
  Fields: string;
54
54
  Description: string;
55
55
  Example: string;
56
- EnumMembers: string;
56
+ 'Enum members': string;
57
+ statement: string;
58
+ loop: string;
59
+ '`click` on keyword for more help': string;
57
60
  };
58
61
  export default _default;