@vtj/designer 0.9.24 → 0.9.25
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/dist/index.mjs +862 -862
- package/package.json +6 -6
- package/types/components/binders/event.d.ts +46 -2
- package/types/components/binders/variable.d.ts +46 -2
- package/types/components/editor/Editor.d.ts +3 -1
- package/types/components/editor/index.d.ts +3 -1
- package/types/components/regions/actions.d.ts +33 -2
- package/types/components/regions/apps.d.ts +33 -2
- package/types/components/regions/brand.d.ts +33 -2
- package/types/components/regions/index.d.ts +258 -10
- package/types/components/regions/preview.d.ts +33 -2
- package/types/components/regions/settings.d.ts +33 -2
- package/types/components/regions/status.d.ts +33 -2
- package/types/components/regions/toolbar.d.ts +33 -2
- package/types/components/regions/workspace.d.ts +33 -2
- package/types/components/setters/function.d.ts +46 -2
- package/types/components/setters/index.d.ts +90 -3
- package/types/components/setters/json.d.ts +46 -2
- package/types/components/shared/binder.d.ts +552 -3
- package/types/components/skeleton.d.ts +180 -2
- package/types/components/widgets/apis/form.d.ts +1520 -2
- package/types/components/widgets/css/index.d.ts +46 -2
- package/types/components/widgets/designer/index.d.ts +4 -1
- package/types/components/widgets/docs/index.d.ts +101 -2
- package/types/components/widgets/index.d.ts +339 -8
- package/types/components/widgets/market/index.d.ts +101 -2
- package/types/components/widgets/previewer/index.d.ts +4 -1
- package/types/components/widgets/raw/index.d.ts +46 -2
- package/types/components/widgets/schema/index.d.ts +46 -2
- package/types/components/widgets/scripts/group.d.ts +650 -4
- package/types/components/widgets/scripts/lifeCycles.d.ts +46 -2
- package/types/components/widgets/style/JsonMode.d.ts +46 -2
- package/types/components/widgets/style/positioning.d.ts +3 -1
- package/types/components/widgets/style/spacing-input.d.ts +255 -2
- package/types/components/widgets/style/spacing.d.ts +4 -1
- package/types/version.d.ts +2 -2
@@ -1,5 +1,5 @@
|
|
1
1
|
import { RegionType } from '../../framework';
|
2
|
-
import { DefineComponent, ComputedRef, Ref, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
2
|
+
import { DefineComponent, ComputedRef, Ref, ComponentOptionsMixin, PublicProps, ComponentProvideOptions, CreateComponentPublicInstanceWithMixins, ExtractPropTypes, PropType, GlobalComponents, GlobalDirectives } from 'vue';
|
3
3
|
import { Widget } from '../..';
|
4
4
|
export interface Props {
|
5
5
|
region: RegionType;
|
@@ -7,5 +7,36 @@ export interface Props {
|
|
7
7
|
declare const _default: DefineComponent<Props, {
|
8
8
|
widgets: ComputedRef< Widget[]>;
|
9
9
|
widgetsRef: Ref<any, any>;
|
10
|
-
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<Props> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
10
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<Props> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
11
|
+
widgetsRef: ( CreateComponentPublicInstanceWithMixins<Readonly< ExtractPropTypes<{
|
12
|
+
region: {
|
13
|
+
type: PropType<RegionType>;
|
14
|
+
required: true;
|
15
|
+
};
|
16
|
+
widget: {
|
17
|
+
type: PropType<Widget>;
|
18
|
+
required: true;
|
19
|
+
};
|
20
|
+
}>> & Readonly<{}>, {
|
21
|
+
widgetRef: Ref<any, any>;
|
22
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, PublicProps, {}, true, {}, {}, GlobalComponents, GlobalDirectives, string, {}, any, ComponentProvideOptions, {
|
23
|
+
P: {};
|
24
|
+
B: {};
|
25
|
+
D: {};
|
26
|
+
C: {};
|
27
|
+
M: {};
|
28
|
+
Defaults: {};
|
29
|
+
}, Readonly< ExtractPropTypes<{
|
30
|
+
region: {
|
31
|
+
type: PropType<RegionType>;
|
32
|
+
required: true;
|
33
|
+
};
|
34
|
+
widget: {
|
35
|
+
type: PropType<Widget>;
|
36
|
+
required: true;
|
37
|
+
};
|
38
|
+
}>> & Readonly<{}>, {
|
39
|
+
widgetRef: Ref<any, any>;
|
40
|
+
}, {}, {}, {}, {}> | null)[];
|
41
|
+
}, any>;
|
11
42
|
export default _default;
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { RegionType } from '../../framework';
|
2
|
-
import { DefineComponent, ComputedRef, Ref, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
2
|
+
import { DefineComponent, ComputedRef, Ref, ComponentOptionsMixin, PublicProps, ComponentProvideOptions, CreateComponentPublicInstanceWithMixins, ExtractPropTypes, PropType, GlobalComponents, GlobalDirectives } from 'vue';
|
3
3
|
import { Widget } from '../..';
|
4
4
|
export interface Props {
|
5
5
|
region: RegionType;
|
@@ -7,5 +7,36 @@ export interface Props {
|
|
7
7
|
declare const _default: DefineComponent<Props, {
|
8
8
|
widgets: ComputedRef< Widget[]>;
|
9
9
|
widgetsRef: Ref<any, any>;
|
10
|
-
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<Props> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
10
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<Props> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
11
|
+
widgetsRef: ( CreateComponentPublicInstanceWithMixins<Readonly< ExtractPropTypes<{
|
12
|
+
region: {
|
13
|
+
type: PropType<RegionType>;
|
14
|
+
required: true;
|
15
|
+
};
|
16
|
+
widget: {
|
17
|
+
type: PropType<Widget>;
|
18
|
+
required: true;
|
19
|
+
};
|
20
|
+
}>> & Readonly<{}>, {
|
21
|
+
widgetRef: Ref<any, any>;
|
22
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, PublicProps, {}, true, {}, {}, GlobalComponents, GlobalDirectives, string, {}, any, ComponentProvideOptions, {
|
23
|
+
P: {};
|
24
|
+
B: {};
|
25
|
+
D: {};
|
26
|
+
C: {};
|
27
|
+
M: {};
|
28
|
+
Defaults: {};
|
29
|
+
}, Readonly< ExtractPropTypes<{
|
30
|
+
region: {
|
31
|
+
type: PropType<RegionType>;
|
32
|
+
required: true;
|
33
|
+
};
|
34
|
+
widget: {
|
35
|
+
type: PropType<Widget>;
|
36
|
+
required: true;
|
37
|
+
};
|
38
|
+
}>> & Readonly<{}>, {
|
39
|
+
widgetRef: Ref<any, any>;
|
40
|
+
}, {}, {}, {}, {}> | null)[];
|
41
|
+
}, any>;
|
11
42
|
export default _default;
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { RegionType } from '../../framework';
|
2
|
-
import { DefineComponent, ComputedRef, Ref, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
2
|
+
import { DefineComponent, ComputedRef, Ref, ComponentOptionsMixin, PublicProps, ComponentProvideOptions, CreateComponentPublicInstanceWithMixins, ExtractPropTypes, PropType, GlobalComponents, GlobalDirectives } from 'vue';
|
3
3
|
import { Widget } from '../..';
|
4
4
|
export interface Props {
|
5
5
|
region: RegionType;
|
@@ -8,5 +8,36 @@ export interface Props {
|
|
8
8
|
declare const _default: DefineComponent<Props, {
|
9
9
|
widgets: ComputedRef< Widget[]>;
|
10
10
|
widgetsRef: Ref<any, any>;
|
11
|
-
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<Props> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
11
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<Props> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
12
|
+
widgetsRef: ( CreateComponentPublicInstanceWithMixins<Readonly< ExtractPropTypes<{
|
13
|
+
region: {
|
14
|
+
type: PropType<RegionType>;
|
15
|
+
required: true;
|
16
|
+
};
|
17
|
+
widget: {
|
18
|
+
type: PropType<Widget>;
|
19
|
+
required: true;
|
20
|
+
};
|
21
|
+
}>> & Readonly<{}>, {
|
22
|
+
widgetRef: Ref<any, any>;
|
23
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, PublicProps, {}, true, {}, {}, GlobalComponents, GlobalDirectives, string, {}, any, ComponentProvideOptions, {
|
24
|
+
P: {};
|
25
|
+
B: {};
|
26
|
+
D: {};
|
27
|
+
C: {};
|
28
|
+
M: {};
|
29
|
+
Defaults: {};
|
30
|
+
}, Readonly< ExtractPropTypes<{
|
31
|
+
region: {
|
32
|
+
type: PropType<RegionType>;
|
33
|
+
required: true;
|
34
|
+
};
|
35
|
+
widget: {
|
36
|
+
type: PropType<Widget>;
|
37
|
+
required: true;
|
38
|
+
};
|
39
|
+
}>> & Readonly<{}>, {
|
40
|
+
widgetRef: Ref<any, any>;
|
41
|
+
}, {}, {}, {}, {}> | null)[];
|
42
|
+
}, HTMLDivElement>;
|
12
43
|
export default _default;
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { RegionType } from '../../framework';
|
2
|
-
import { DefineComponent, Ref, ComputedRef, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
2
|
+
import { DefineComponent, Ref, ComputedRef, ComponentOptionsMixin, PublicProps, ComponentProvideOptions, CreateComponentPublicInstanceWithMixins, ExtractPropTypes, PropType, GlobalComponents, GlobalDirectives } from 'vue';
|
3
3
|
import { Widget } from '../..';
|
4
4
|
export interface Props {
|
5
5
|
region: RegionType;
|
@@ -9,5 +9,36 @@ declare const _default: DefineComponent<Props, {
|
|
9
9
|
widgets: ComputedRef< Widget[]>;
|
10
10
|
widgetsRef: Ref<any, any>;
|
11
11
|
openTab: (name: string, props?: Record<string, any>) => void;
|
12
|
-
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<Props> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
12
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<Props> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
13
|
+
widgetsRef: ( CreateComponentPublicInstanceWithMixins<Readonly< ExtractPropTypes<{
|
14
|
+
region: {
|
15
|
+
type: PropType<RegionType>;
|
16
|
+
required: true;
|
17
|
+
};
|
18
|
+
widget: {
|
19
|
+
type: PropType<Widget>;
|
20
|
+
required: true;
|
21
|
+
};
|
22
|
+
}>> & Readonly<{}>, {
|
23
|
+
widgetRef: Ref<any, any>;
|
24
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, PublicProps, {}, true, {}, {}, GlobalComponents, GlobalDirectives, string, {}, any, ComponentProvideOptions, {
|
25
|
+
P: {};
|
26
|
+
B: {};
|
27
|
+
D: {};
|
28
|
+
C: {};
|
29
|
+
M: {};
|
30
|
+
Defaults: {};
|
31
|
+
}, Readonly< ExtractPropTypes<{
|
32
|
+
region: {
|
33
|
+
type: PropType<RegionType>;
|
34
|
+
required: true;
|
35
|
+
};
|
36
|
+
widget: {
|
37
|
+
type: PropType<Widget>;
|
38
|
+
required: true;
|
39
|
+
};
|
40
|
+
}>> & Readonly<{}>, {
|
41
|
+
widgetRef: Ref<any, any>;
|
42
|
+
}, {}, {}, {}, {}> | null)[];
|
43
|
+
}, any>;
|
13
44
|
export default _default;
|
@@ -1,5 +1,6 @@
|
|
1
1
|
import { JSFunction } from '@vtj/core';
|
2
|
-
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
2
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions, CreateComponentPublicInstanceWithMixins, GlobalComponents, GlobalDirectives } from 'vue';
|
3
|
+
import { Props } from '../editor/Editor';
|
3
4
|
export interface Props {
|
4
5
|
modelValue?: JSFunction;
|
5
6
|
}
|
@@ -9,5 +10,48 @@ declare const _default: DefineComponent<Props, {}, {}, {}, {}, ComponentOptionsM
|
|
9
10
|
onChange?: ((...args: any[]) => any) | undefined;
|
10
11
|
}>, {
|
11
12
|
modelValue: JSFunction;
|
12
|
-
}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
13
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
14
|
+
codeEditor: CreateComponentPublicInstanceWithMixins<Readonly< Props> & Readonly<{
|
15
|
+
onBlur?: ((...args: any[]) => any) | undefined;
|
16
|
+
onChange?: ((...args: any[]) => any) | undefined;
|
17
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
18
|
+
}>, {
|
19
|
+
getEditor: () => import("monaco-editor").editor.IStandaloneCodeEditor | null;
|
20
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
21
|
+
blur: (...args: any[]) => void;
|
22
|
+
change: (...args: any[]) => void;
|
23
|
+
"update:modelValue": (...args: any[]) => void;
|
24
|
+
}, PublicProps, {
|
25
|
+
height: string;
|
26
|
+
modelValue: string;
|
27
|
+
dark: boolean;
|
28
|
+
readonly: boolean;
|
29
|
+
options: import("monaco-editor").editor.IEditorConstructionOptions;
|
30
|
+
lang: string;
|
31
|
+
minimap: boolean;
|
32
|
+
}, false, {}, {}, GlobalComponents, GlobalDirectives, string, {
|
33
|
+
container: HTMLDivElement;
|
34
|
+
}, HTMLDivElement, ComponentProvideOptions, {
|
35
|
+
P: {};
|
36
|
+
B: {};
|
37
|
+
D: {};
|
38
|
+
C: {};
|
39
|
+
M: {};
|
40
|
+
Defaults: {};
|
41
|
+
}, Readonly< Props> & Readonly<{
|
42
|
+
onBlur?: ((...args: any[]) => any) | undefined;
|
43
|
+
onChange?: ((...args: any[]) => any) | undefined;
|
44
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
45
|
+
}>, {
|
46
|
+
getEditor: () => import("monaco-editor").editor.IStandaloneCodeEditor | null;
|
47
|
+
}, {}, {}, {}, {
|
48
|
+
height: string;
|
49
|
+
modelValue: string;
|
50
|
+
dark: boolean;
|
51
|
+
readonly: boolean;
|
52
|
+
options: import("monaco-editor").editor.IEditorConstructionOptions;
|
53
|
+
lang: string;
|
54
|
+
minimap: boolean;
|
55
|
+
}> | null;
|
56
|
+
}, HTMLDivElement>;
|
13
57
|
export default _default;
|
@@ -1,9 +1,10 @@
|
|
1
|
-
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
1
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions, CreateComponentPublicInstanceWithMixins, GlobalComponents, GlobalDirectives } from 'vue';
|
2
2
|
import { Props } from './expression';
|
3
3
|
import { Props } from './select';
|
4
4
|
import { Props } from './number';
|
5
5
|
import { Props } from './icon';
|
6
6
|
import { Props } from './json';
|
7
|
+
import { Props } from '../editor/Editor';
|
7
8
|
import { Props } from './function';
|
8
9
|
import { JSFunction } from '@vtj/core';
|
9
10
|
import { Props } from './radio';
|
@@ -50,14 +51,100 @@ export declare const setters: {
|
|
50
51
|
}>, {
|
51
52
|
type: "Array" | "Object" | "JSON";
|
52
53
|
modelValue: any;
|
53
|
-
}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
54
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
55
|
+
codeEditor: CreateComponentPublicInstanceWithMixins<Readonly< Props> & Readonly<{
|
56
|
+
onBlur?: ((...args: any[]) => any) | undefined;
|
57
|
+
onChange?: ((...args: any[]) => any) | undefined;
|
58
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
59
|
+
}>, {
|
60
|
+
getEditor: () => import("monaco-editor").editor.IStandaloneCodeEditor | null;
|
61
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
62
|
+
blur: (...args: any[]) => void;
|
63
|
+
change: (...args: any[]) => void;
|
64
|
+
"update:modelValue": (...args: any[]) => void;
|
65
|
+
}, PublicProps, {
|
66
|
+
height: string;
|
67
|
+
modelValue: string;
|
68
|
+
dark: boolean;
|
69
|
+
readonly: boolean;
|
70
|
+
options: import("monaco-editor").editor.IEditorConstructionOptions;
|
71
|
+
lang: string;
|
72
|
+
minimap: boolean;
|
73
|
+
}, false, {}, {}, GlobalComponents, GlobalDirectives, string, {
|
74
|
+
container: HTMLDivElement;
|
75
|
+
}, HTMLDivElement, ComponentProvideOptions, {
|
76
|
+
P: {};
|
77
|
+
B: {};
|
78
|
+
D: {};
|
79
|
+
C: {};
|
80
|
+
M: {};
|
81
|
+
Defaults: {};
|
82
|
+
}, Readonly< Props> & Readonly<{
|
83
|
+
onBlur?: ((...args: any[]) => any) | undefined;
|
84
|
+
onChange?: ((...args: any[]) => any) | undefined;
|
85
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
86
|
+
}>, {
|
87
|
+
getEditor: () => import("monaco-editor").editor.IStandaloneCodeEditor | null;
|
88
|
+
}, {}, {}, {}, {
|
89
|
+
height: string;
|
90
|
+
modelValue: string;
|
91
|
+
dark: boolean;
|
92
|
+
readonly: boolean;
|
93
|
+
options: import("monaco-editor").editor.IEditorConstructionOptions;
|
94
|
+
lang: string;
|
95
|
+
minimap: boolean;
|
96
|
+
}> | null;
|
97
|
+
}, HTMLDivElement>;
|
54
98
|
FunctionSetter: DefineComponent<Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
55
99
|
change: (...args: any[]) => void;
|
56
100
|
}, string, PublicProps, Readonly< Props> & Readonly<{
|
57
101
|
onChange?: ((...args: any[]) => any) | undefined;
|
58
102
|
}>, {
|
59
103
|
modelValue: JSFunction;
|
60
|
-
}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
104
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
105
|
+
codeEditor: CreateComponentPublicInstanceWithMixins<Readonly< Props> & Readonly<{
|
106
|
+
onBlur?: ((...args: any[]) => any) | undefined;
|
107
|
+
onChange?: ((...args: any[]) => any) | undefined;
|
108
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
109
|
+
}>, {
|
110
|
+
getEditor: () => import("monaco-editor").editor.IStandaloneCodeEditor | null;
|
111
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
112
|
+
blur: (...args: any[]) => void;
|
113
|
+
change: (...args: any[]) => void;
|
114
|
+
"update:modelValue": (...args: any[]) => void;
|
115
|
+
}, PublicProps, {
|
116
|
+
height: string;
|
117
|
+
modelValue: string;
|
118
|
+
dark: boolean;
|
119
|
+
readonly: boolean;
|
120
|
+
options: import("monaco-editor").editor.IEditorConstructionOptions;
|
121
|
+
lang: string;
|
122
|
+
minimap: boolean;
|
123
|
+
}, false, {}, {}, GlobalComponents, GlobalDirectives, string, {
|
124
|
+
container: HTMLDivElement;
|
125
|
+
}, HTMLDivElement, ComponentProvideOptions, {
|
126
|
+
P: {};
|
127
|
+
B: {};
|
128
|
+
D: {};
|
129
|
+
C: {};
|
130
|
+
M: {};
|
131
|
+
Defaults: {};
|
132
|
+
}, Readonly< Props> & Readonly<{
|
133
|
+
onBlur?: ((...args: any[]) => any) | undefined;
|
134
|
+
onChange?: ((...args: any[]) => any) | undefined;
|
135
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
136
|
+
}>, {
|
137
|
+
getEditor: () => import("monaco-editor").editor.IStandaloneCodeEditor | null;
|
138
|
+
}, {}, {}, {}, {
|
139
|
+
height: string;
|
140
|
+
modelValue: string;
|
141
|
+
dark: boolean;
|
142
|
+
readonly: boolean;
|
143
|
+
options: import("monaco-editor").editor.IEditorConstructionOptions;
|
144
|
+
lang: string;
|
145
|
+
minimap: boolean;
|
146
|
+
}> | null;
|
147
|
+
}, HTMLDivElement>;
|
61
148
|
RadioSetter: DefineComponent<Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< Props> & Readonly<{}>, {
|
62
149
|
options: {
|
63
150
|
label: string;
|
@@ -1,4 +1,5 @@
|
|
1
|
-
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
1
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions, CreateComponentPublicInstanceWithMixins, GlobalComponents, GlobalDirectives } from 'vue';
|
2
|
+
import { Props } from '../editor/Editor';
|
2
3
|
export interface Props {
|
3
4
|
modelValue?: any;
|
4
5
|
type?: 'Array' | 'Object' | 'JSON';
|
@@ -10,5 +11,48 @@ declare const _default: DefineComponent<Props, {}, {}, {}, {}, ComponentOptionsM
|
|
10
11
|
}>, {
|
11
12
|
type: "Array" | "Object" | "JSON";
|
12
13
|
modelValue: any;
|
13
|
-
}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
14
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
15
|
+
codeEditor: CreateComponentPublicInstanceWithMixins<Readonly< Props> & Readonly<{
|
16
|
+
onBlur?: ((...args: any[]) => any) | undefined;
|
17
|
+
onChange?: ((...args: any[]) => any) | undefined;
|
18
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
19
|
+
}>, {
|
20
|
+
getEditor: () => import("monaco-editor").editor.IStandaloneCodeEditor | null;
|
21
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
22
|
+
blur: (...args: any[]) => void;
|
23
|
+
change: (...args: any[]) => void;
|
24
|
+
"update:modelValue": (...args: any[]) => void;
|
25
|
+
}, PublicProps, {
|
26
|
+
height: string;
|
27
|
+
modelValue: string;
|
28
|
+
dark: boolean;
|
29
|
+
readonly: boolean;
|
30
|
+
options: import("monaco-editor").editor.IEditorConstructionOptions;
|
31
|
+
lang: string;
|
32
|
+
minimap: boolean;
|
33
|
+
}, false, {}, {}, GlobalComponents, GlobalDirectives, string, {
|
34
|
+
container: HTMLDivElement;
|
35
|
+
}, HTMLDivElement, ComponentProvideOptions, {
|
36
|
+
P: {};
|
37
|
+
B: {};
|
38
|
+
D: {};
|
39
|
+
C: {};
|
40
|
+
M: {};
|
41
|
+
Defaults: {};
|
42
|
+
}, Readonly< Props> & Readonly<{
|
43
|
+
onBlur?: ((...args: any[]) => any) | undefined;
|
44
|
+
onChange?: ((...args: any[]) => any) | undefined;
|
45
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
46
|
+
}>, {
|
47
|
+
getEditor: () => import("monaco-editor").editor.IStandaloneCodeEditor | null;
|
48
|
+
}, {}, {}, {}, {
|
49
|
+
height: string;
|
50
|
+
modelValue: string;
|
51
|
+
dark: boolean;
|
52
|
+
readonly: boolean;
|
53
|
+
options: import("monaco-editor").editor.IEditorConstructionOptions;
|
54
|
+
lang: string;
|
55
|
+
minimap: boolean;
|
56
|
+
}> | null;
|
57
|
+
}, HTMLDivElement>;
|
14
58
|
export default _default;
|