vdrag-topo-ui
Version:
154 lines (153 loc) • 6.14 kB
TypeScript
declare const vtEditor: import("vdrag-topo-utils/dist/lib/src/withinstall").SFCWithInstall<import("vue").DefineComponent<import("vue").ExtractPropTypes<{
config: {
type: null;
required: true;
default: () => {
label: string;
key: string;
readOnly: boolean;
language: string;
height: number;
isShowKey: string;
isShowValue: string;
offLineNumbers: boolean;
tip: string;
};
};
data: {
type: null;
required: true;
};
}>, {
props: any;
emit: (event: "changeValue", ...args: any[]) => void;
config: import("vue").Ref<any, any>;
data: import("vue").Ref<any, any>;
codeEditor: import("vue").Ref<HTMLDivElement | undefined, HTMLDivElement | undefined>;
vsEditor: import("monaco-editor").editor.IStandaloneCodeEditor | null;
values: import("vue").Ref<string, string>;
timer: import("vue").Ref<any, any>;
showFullScreen: import("vue").Ref<boolean, boolean>;
editorContent: import("vue").WritableComputedRef<any, any>;
setEditorValue: (v: any) => void | undefined;
getEditorValue: () => string | undefined;
initEditor: () => void;
resizeObserver: ResizeObserver;
formatContent: () => void;
changeValue: () => void;
fullScreen: () => void;
customSuggestion: () => void;
registerCommand: () => void;
registerCompletionItemProvider: () => void;
completionTriggerKeywords: {
label: string;
kind: import("monaco-editor").languages.CompletionItemKind;
insertText: string;
description: string;
insertTextRules: import("monaco-editor").languages.CompletionItemInsertTextRule;
command: {
id: string;
arguments: never[];
};
}[];
readonly FullScreen: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
vtLabel: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
config: {
type: null;
required: true;
default: () => {
label: string;
tip: string;
};
};
}>, {
readonly QuestionFilled: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
config: {
type: null;
required: true;
default: () => {
label: string;
tip: string;
};
};
}>> & Readonly<{}>, {
config: any;
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
vtFullScreenEditor: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
modelValue: {
type: null;
required: true;
};
showFullScreen: {
type: BooleanConstructor;
required: true;
};
readOnly: {
type: BooleanConstructor;
required: false;
};
language: {
type: StringConstructor;
required: false;
};
}>, {
vsEditor: import("monaco-editor").editor.IStandaloneCodeEditor | null;
timer: import("vue").Ref<any, any>;
dialogVisible: import("vue").WritableComputedRef<any, any>;
props: any;
emit: (event: "update:modelValue" | "update:showFullScreen", ...args: any[]) => void;
language: import("vue").Ref<string, string>;
initEditor: () => void;
getEditorValue: () => string | undefined;
onEditorValueChange: () => void;
formatContent: () => void;
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "update:showFullScreen")[], "update:modelValue" | "update:showFullScreen", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
modelValue: {
type: null;
required: true;
};
showFullScreen: {
type: BooleanConstructor;
required: true;
};
readOnly: {
type: BooleanConstructor;
required: false;
};
language: {
type: StringConstructor;
required: false;
};
}>> & Readonly<{
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
"onUpdate:showFullScreen"?: ((...args: any[]) => any) | undefined;
}>, {
readOnly: boolean;
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "changeValue"[], "changeValue", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
config: {
type: null;
required: true;
default: () => {
label: string;
key: string;
readOnly: boolean;
language: string;
height: number;
isShowKey: string;
isShowValue: string;
offLineNumbers: boolean;
tip: string;
};
};
data: {
type: null;
required: true;
};
}>> & Readonly<{
onChangeValue?: ((...args: any[]) => any) | undefined;
}>, {
config: any;
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>>;
export default vtEditor;