@vtj/designer 0.10.6 → 0.10.8
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/{Editor-BFm57YMW.js → Editor-7SLplEph.js} +1 -1
- package/dist/index.mjs +1911 -1898
- package/dist/{ts.worker-D9KUThWN.js → ts.worker-Bjq4oI3m.js} +7 -7
- package/package.json +8 -8
- 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/empty.d.ts +1 -1
- package/types/components/regions/index.d.ts +259 -11
- 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/css.d.ts +46 -2
- package/types/components/setters/file.d.ts +1 -1
- package/types/components/setters/function.d.ts +46 -2
- package/types/components/setters/icon.d.ts +1 -1
- package/types/components/setters/index.d.ts +140 -10
- package/types/components/setters/json.d.ts +46 -2
- package/types/components/setters/section.d.ts +1 -1
- package/types/components/setters/slider.d.ts +1 -1
- package/types/components/setters/tag.d.ts +1 -1
- package/types/components/setters/vanIcon/index.d.ts +1 -1
- package/types/components/shared/binder.d.ts +742 -70
- package/types/components/shared/box.d.ts +13 -45
- package/types/components/shared/item.d.ts +13 -143
- package/types/components/shared/panel.d.ts +15 -72
- package/types/components/shared/tabs.d.ts +13 -37
- package/types/components/shared/viewer.d.ts +766 -2
- package/types/components/shared/viewport.d.ts +13 -29
- package/types/components/skeleton.d.ts +180 -2
- package/types/components/widgets/about/index.d.ts +1 -1
- package/types/components/widgets/actions/coder.d.ts +1 -1
- package/types/components/widgets/actions/index.d.ts +1 -1
- package/types/components/widgets/apis/base-info.d.ts +1 -1
- package/types/components/widgets/apis/form.d.ts +1520 -2
- package/types/components/widgets/apis/jsonp-options.d.ts +1 -1
- package/types/components/widgets/apis/mock-template.d.ts +1 -1
- package/types/components/widgets/apis/request-settings.d.ts +1 -1
- package/types/components/widgets/css/index.d.ts +46 -2
- package/types/components/widgets/designer/actions.d.ts +1 -1
- package/types/components/widgets/designer/index.d.ts +4 -1
- package/types/components/widgets/docs/index.d.ts +101 -2
- package/types/components/widgets/empty/index.d.ts +1 -1
- package/types/components/widgets/index.d.ts +342 -11
- 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 +983 -51
- 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;
|
@@ -10,5 +10,36 @@ declare const _default: DefineComponent<Props, {
|
|
10
10
|
widgetsRef: Ref<any, any>;
|
11
11
|
openTab: (name: string, props?: Record<string, any>) => void;
|
12
12
|
reload: () => void;
|
13
|
-
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<Props> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
13
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<Props> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
14
|
+
widgetsRef: ( CreateComponentPublicInstanceWithMixins<Readonly< ExtractPropTypes<{
|
15
|
+
region: {
|
16
|
+
type: PropType<RegionType>;
|
17
|
+
required: true;
|
18
|
+
};
|
19
|
+
widget: {
|
20
|
+
type: PropType<Widget>;
|
21
|
+
required: true;
|
22
|
+
};
|
23
|
+
}>> & Readonly<{}>, {
|
24
|
+
widgetRef: Ref<any, any>;
|
25
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, PublicProps, {}, true, {}, {}, GlobalComponents, GlobalDirectives, string, {}, any, ComponentProvideOptions, {
|
26
|
+
P: {};
|
27
|
+
B: {};
|
28
|
+
D: {};
|
29
|
+
C: {};
|
30
|
+
M: {};
|
31
|
+
Defaults: {};
|
32
|
+
}, Readonly< ExtractPropTypes<{
|
33
|
+
region: {
|
34
|
+
type: PropType<RegionType>;
|
35
|
+
required: true;
|
36
|
+
};
|
37
|
+
widget: {
|
38
|
+
type: PropType<Widget>;
|
39
|
+
required: true;
|
40
|
+
};
|
41
|
+
}>> & Readonly<{}>, {
|
42
|
+
widgetRef: Ref<any, any>;
|
43
|
+
}, {}, {}, {}, {}> | null)[];
|
44
|
+
}, any>;
|
14
45
|
export default _default;
|
@@ -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?: 'CSS';
|
@@ -10,5 +11,48 @@ declare const _default: DefineComponent<Props, {}, {}, {}, {}, ComponentOptionsM
|
|
10
11
|
}>, {
|
11
12
|
type: "CSS";
|
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;
|
@@ -9,5 +9,5 @@ declare const _default: DefineComponent<Props, {}, {}, {}, {}, ComponentOptionsM
|
|
9
9
|
}, string, PublicProps, Readonly<Props> & Readonly<{
|
10
10
|
onChange?: ((...args: any[]) => any) | undefined;
|
11
11
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
12
|
-
}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {},
|
12
|
+
}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
13
13
|
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
|
defaultCode?: string;
|
@@ -11,5 +12,48 @@ declare const _default: DefineComponent<Props, {}, {}, {}, {}, ComponentOptionsM
|
|
11
12
|
}>, {
|
12
13
|
modelValue: JSFunction;
|
13
14
|
defaultCode: string;
|
14
|
-
}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
15
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
16
|
+
codeEditor: CreateComponentPublicInstanceWithMixins<Readonly< Props> & Readonly<{
|
17
|
+
onBlur?: ((...args: any[]) => any) | undefined;
|
18
|
+
onChange?: ((...args: any[]) => any) | undefined;
|
19
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
20
|
+
}>, {
|
21
|
+
getEditor: () => import("monaco-editor").editor.IStandaloneCodeEditor | null;
|
22
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
23
|
+
blur: (...args: any[]) => void;
|
24
|
+
change: (...args: any[]) => void;
|
25
|
+
"update:modelValue": (...args: any[]) => void;
|
26
|
+
}, PublicProps, {
|
27
|
+
height: string;
|
28
|
+
modelValue: string;
|
29
|
+
dark: boolean;
|
30
|
+
readonly: boolean;
|
31
|
+
options: import("monaco-editor").editor.IEditorConstructionOptions;
|
32
|
+
lang: string;
|
33
|
+
minimap: boolean;
|
34
|
+
}, false, {}, {}, GlobalComponents, GlobalDirectives, string, {
|
35
|
+
container: HTMLDivElement;
|
36
|
+
}, HTMLDivElement, ComponentProvideOptions, {
|
37
|
+
P: {};
|
38
|
+
B: {};
|
39
|
+
D: {};
|
40
|
+
C: {};
|
41
|
+
M: {};
|
42
|
+
Defaults: {};
|
43
|
+
}, Readonly< Props> & Readonly<{
|
44
|
+
onBlur?: ((...args: any[]) => any) | undefined;
|
45
|
+
onChange?: ((...args: any[]) => any) | undefined;
|
46
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
47
|
+
}>, {
|
48
|
+
getEditor: () => import("monaco-editor").editor.IStandaloneCodeEditor | null;
|
49
|
+
}, {}, {}, {}, {
|
50
|
+
height: string;
|
51
|
+
modelValue: string;
|
52
|
+
dark: boolean;
|
53
|
+
readonly: boolean;
|
54
|
+
options: import("monaco-editor").editor.IEditorConstructionOptions;
|
55
|
+
lang: string;
|
56
|
+
minimap: boolean;
|
57
|
+
}> | null;
|
58
|
+
}, HTMLDivElement>;
|
15
59
|
export default _default;
|
@@ -12,5 +12,5 @@ declare const _default: DefineComponent<Props, {}, {}, {}, {}, ComponentOptionsM
|
|
12
12
|
}>, {
|
13
13
|
size: "small" | "large" | "default" | "";
|
14
14
|
modelValue: string;
|
15
|
-
}, {}, {}, {}, string, ComponentProvideOptions, false, {},
|
15
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
16
16
|
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';
|
@@ -44,7 +45,7 @@ export declare const setters: {
|
|
44
45
|
}>, {
|
45
46
|
size: "small" | "large" | "default" | "";
|
46
47
|
modelValue: string;
|
47
|
-
}, {}, {}, {}, string, ComponentProvideOptions, false, {},
|
48
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
48
49
|
JsonSetter: DefineComponent<Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
49
50
|
change: (...args: any[]) => void;
|
50
51
|
}, string, PublicProps, Readonly< Props> & Readonly<{
|
@@ -52,7 +53,50 @@ export declare const setters: {
|
|
52
53
|
}>, {
|
53
54
|
type: "Array" | "Object" | "JSON";
|
54
55
|
modelValue: any;
|
55
|
-
}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
56
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
57
|
+
codeEditor: CreateComponentPublicInstanceWithMixins<Readonly< Props> & Readonly<{
|
58
|
+
onBlur?: ((...args: any[]) => any) | undefined;
|
59
|
+
onChange?: ((...args: any[]) => any) | undefined;
|
60
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
61
|
+
}>, {
|
62
|
+
getEditor: () => import("monaco-editor").editor.IStandaloneCodeEditor | null;
|
63
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
64
|
+
blur: (...args: any[]) => void;
|
65
|
+
change: (...args: any[]) => void;
|
66
|
+
"update:modelValue": (...args: any[]) => void;
|
67
|
+
}, PublicProps, {
|
68
|
+
height: string;
|
69
|
+
modelValue: string;
|
70
|
+
dark: boolean;
|
71
|
+
readonly: boolean;
|
72
|
+
options: import("monaco-editor").editor.IEditorConstructionOptions;
|
73
|
+
lang: string;
|
74
|
+
minimap: boolean;
|
75
|
+
}, false, {}, {}, GlobalComponents, GlobalDirectives, string, {
|
76
|
+
container: HTMLDivElement;
|
77
|
+
}, HTMLDivElement, ComponentProvideOptions, {
|
78
|
+
P: {};
|
79
|
+
B: {};
|
80
|
+
D: {};
|
81
|
+
C: {};
|
82
|
+
M: {};
|
83
|
+
Defaults: {};
|
84
|
+
}, Readonly< Props> & Readonly<{
|
85
|
+
onBlur?: ((...args: any[]) => any) | undefined;
|
86
|
+
onChange?: ((...args: any[]) => any) | undefined;
|
87
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
88
|
+
}>, {
|
89
|
+
getEditor: () => import("monaco-editor").editor.IStandaloneCodeEditor | null;
|
90
|
+
}, {}, {}, {}, {
|
91
|
+
height: string;
|
92
|
+
modelValue: string;
|
93
|
+
dark: boolean;
|
94
|
+
readonly: boolean;
|
95
|
+
options: import("monaco-editor").editor.IEditorConstructionOptions;
|
96
|
+
lang: string;
|
97
|
+
minimap: boolean;
|
98
|
+
}> | null;
|
99
|
+
}, HTMLDivElement>;
|
56
100
|
FunctionSetter: DefineComponent<Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
57
101
|
change: (...args: any[]) => void;
|
58
102
|
}, string, PublicProps, Readonly< Props> & Readonly<{
|
@@ -60,7 +104,50 @@ export declare const setters: {
|
|
60
104
|
}>, {
|
61
105
|
modelValue: JSFunction;
|
62
106
|
defaultCode: string;
|
63
|
-
}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
107
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
108
|
+
codeEditor: CreateComponentPublicInstanceWithMixins<Readonly< Props> & Readonly<{
|
109
|
+
onBlur?: ((...args: any[]) => any) | undefined;
|
110
|
+
onChange?: ((...args: any[]) => any) | undefined;
|
111
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
112
|
+
}>, {
|
113
|
+
getEditor: () => import("monaco-editor").editor.IStandaloneCodeEditor | null;
|
114
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
115
|
+
blur: (...args: any[]) => void;
|
116
|
+
change: (...args: any[]) => void;
|
117
|
+
"update:modelValue": (...args: any[]) => void;
|
118
|
+
}, PublicProps, {
|
119
|
+
height: string;
|
120
|
+
modelValue: string;
|
121
|
+
dark: boolean;
|
122
|
+
readonly: boolean;
|
123
|
+
options: import("monaco-editor").editor.IEditorConstructionOptions;
|
124
|
+
lang: string;
|
125
|
+
minimap: boolean;
|
126
|
+
}, false, {}, {}, GlobalComponents, GlobalDirectives, string, {
|
127
|
+
container: HTMLDivElement;
|
128
|
+
}, HTMLDivElement, ComponentProvideOptions, {
|
129
|
+
P: {};
|
130
|
+
B: {};
|
131
|
+
D: {};
|
132
|
+
C: {};
|
133
|
+
M: {};
|
134
|
+
Defaults: {};
|
135
|
+
}, Readonly< Props> & Readonly<{
|
136
|
+
onBlur?: ((...args: any[]) => any) | undefined;
|
137
|
+
onChange?: ((...args: any[]) => any) | undefined;
|
138
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
139
|
+
}>, {
|
140
|
+
getEditor: () => import("monaco-editor").editor.IStandaloneCodeEditor | null;
|
141
|
+
}, {}, {}, {}, {
|
142
|
+
height: string;
|
143
|
+
modelValue: string;
|
144
|
+
dark: boolean;
|
145
|
+
readonly: boolean;
|
146
|
+
options: import("monaco-editor").editor.IEditorConstructionOptions;
|
147
|
+
lang: string;
|
148
|
+
minimap: boolean;
|
149
|
+
}> | null;
|
150
|
+
}, HTMLDivElement>;
|
64
151
|
RadioSetter: DefineComponent<Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< Props> & Readonly<{}>, {
|
65
152
|
options: {
|
66
153
|
label: string;
|
@@ -80,7 +167,7 @@ export declare const setters: {
|
|
80
167
|
value: any;
|
81
168
|
svg?: string;
|
82
169
|
}[];
|
83
|
-
}, {}, {}, {}, string, ComponentProvideOptions, false, {},
|
170
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
84
171
|
SizeSetter: DefineComponent<Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
85
172
|
change: (...args: any[]) => void;
|
86
173
|
}, string, PublicProps, Readonly< Props> & Readonly<{
|
@@ -101,7 +188,7 @@ export declare const setters: {
|
|
101
188
|
onChange?: ((...args: any[]) => any) | undefined;
|
102
189
|
}>, {
|
103
190
|
sections: number;
|
104
|
-
}, {}, {}, {}, string, ComponentProvideOptions, false, {},
|
191
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
105
192
|
SliderSetter: DefineComponent<Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
106
193
|
change: (...args: any[]) => void;
|
107
194
|
"update:modelValue": (...args: any[]) => void;
|
@@ -110,14 +197,14 @@ export declare const setters: {
|
|
110
197
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
111
198
|
}>, {
|
112
199
|
modelValue: number | number[];
|
113
|
-
}, {}, {}, {}, string, ComponentProvideOptions, false, {},
|
200
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
114
201
|
FileSetter: DefineComponent<Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
115
202
|
change: (...args: any[]) => void;
|
116
203
|
"update:modelValue": (...args: any[]) => void;
|
117
204
|
}, string, PublicProps, Readonly< Props> & Readonly<{
|
118
205
|
onChange?: ((...args: any[]) => any) | undefined;
|
119
206
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
120
|
-
}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {},
|
207
|
+
}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
121
208
|
VanIconSetter: DefineComponent<Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
122
209
|
change: (...args: any[]) => void;
|
123
210
|
"update:modelValue": (...args: any[]) => void;
|
@@ -127,7 +214,7 @@ export declare const setters: {
|
|
127
214
|
}>, {
|
128
215
|
size: "small" | "large" | "default" | "";
|
129
216
|
modelValue: string;
|
130
|
-
}, {}, {}, {}, string, ComponentProvideOptions, false, {},
|
217
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
131
218
|
CssSetter: DefineComponent<Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
132
219
|
change: (...args: any[]) => void;
|
133
220
|
}, string, PublicProps, Readonly< Props> & Readonly<{
|
@@ -135,5 +222,48 @@ export declare const setters: {
|
|
135
222
|
}>, {
|
136
223
|
type: "CSS";
|
137
224
|
modelValue: any;
|
138
|
-
}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
225
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
226
|
+
codeEditor: CreateComponentPublicInstanceWithMixins<Readonly< Props> & Readonly<{
|
227
|
+
onBlur?: ((...args: any[]) => any) | undefined;
|
228
|
+
onChange?: ((...args: any[]) => any) | undefined;
|
229
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
230
|
+
}>, {
|
231
|
+
getEditor: () => import("monaco-editor").editor.IStandaloneCodeEditor | null;
|
232
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
233
|
+
blur: (...args: any[]) => void;
|
234
|
+
change: (...args: any[]) => void;
|
235
|
+
"update:modelValue": (...args: any[]) => void;
|
236
|
+
}, PublicProps, {
|
237
|
+
height: string;
|
238
|
+
modelValue: string;
|
239
|
+
dark: boolean;
|
240
|
+
readonly: boolean;
|
241
|
+
options: import("monaco-editor").editor.IEditorConstructionOptions;
|
242
|
+
lang: string;
|
243
|
+
minimap: boolean;
|
244
|
+
}, false, {}, {}, GlobalComponents, GlobalDirectives, string, {
|
245
|
+
container: HTMLDivElement;
|
246
|
+
}, HTMLDivElement, ComponentProvideOptions, {
|
247
|
+
P: {};
|
248
|
+
B: {};
|
249
|
+
D: {};
|
250
|
+
C: {};
|
251
|
+
M: {};
|
252
|
+
Defaults: {};
|
253
|
+
}, Readonly< Props> & Readonly<{
|
254
|
+
onBlur?: ((...args: any[]) => any) | undefined;
|
255
|
+
onChange?: ((...args: any[]) => any) | undefined;
|
256
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
257
|
+
}>, {
|
258
|
+
getEditor: () => import("monaco-editor").editor.IStandaloneCodeEditor | null;
|
259
|
+
}, {}, {}, {}, {
|
260
|
+
height: string;
|
261
|
+
modelValue: string;
|
262
|
+
dark: boolean;
|
263
|
+
readonly: boolean;
|
264
|
+
options: import("monaco-editor").editor.IEditorConstructionOptions;
|
265
|
+
lang: string;
|
266
|
+
minimap: boolean;
|
267
|
+
}> | null;
|
268
|
+
}, HTMLDivElement>;
|
139
269
|
};
|
@@ -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;
|
@@ -9,5 +9,5 @@ declare const _default: DefineComponent<Props, {}, {}, {}, {}, ComponentOptionsM
|
|
9
9
|
onChange?: ((...args: any[]) => any) | undefined;
|
10
10
|
}>, {
|
11
11
|
sections: number;
|
12
|
-
}, {}, {}, {}, string, ComponentProvideOptions, false, {},
|
12
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
13
13
|
export default _default;
|
@@ -10,5 +10,5 @@ declare const _default: DefineComponent<Props, {}, {}, {}, {}, ComponentOptionsM
|
|
10
10
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
11
11
|
}>, {
|
12
12
|
modelValue: number | number[];
|
13
|
-
}, {}, {}, {}, string, ComponentProvideOptions, false, {},
|
13
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
14
14
|
export default _default;
|
@@ -19,5 +19,5 @@ declare const _default: DefineComponent<Props, {}, {}, {}, {}, ComponentOptionsM
|
|
19
19
|
value: any;
|
20
20
|
svg?: string;
|
21
21
|
}[];
|
22
|
-
}, {}, {}, {}, string, ComponentProvideOptions, false, {},
|
22
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
23
23
|
export default _default;
|
@@ -12,5 +12,5 @@ declare const _default: DefineComponent<Props, {}, {}, {}, {}, ComponentOptionsM
|
|
12
12
|
}>, {
|
13
13
|
size: "small" | "large" | "default" | "";
|
14
14
|
modelValue: string;
|
15
|
-
}, {}, {}, {}, string, ComponentProvideOptions, false, {},
|
15
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
16
16
|
export default _default;
|