@guihz/trading-vue-editor-tes 0.0.219 → 0.0.221
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/assets/{scriptsRunWorker-B3l8bZZ1.js → scriptsRunWorker-WkixvPLh.js} +10 -10
- package/lib/components/editor/index.d.ts +2 -1
- package/lib/components/editor/parseScript/buildInFuncNamespace/log.d.ts +3 -1
- package/lib/components/editor/parseScript/buildInFuncNamespace/string.d.ts +1 -0
- package/lib/components/referenceManual/index.d.ts +1 -0
- package/lib/trading-vue-editor.js +2259 -2255
- package/lib/trading-vue-editor.umd.cjs +33 -33
- package/package.json +1 -1
@@ -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
|
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
|
-
|
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;
|