gepic
Version:
基于vue3的设计器,可视化开发页面表单
40 lines (39 loc) • 1.29 kB
TypeScript
import { editor } from 'monaco-editor';
type __VLS_Props = {
language?: string;
readOnly?: boolean;
valueFormat?: string;
modelValue?: any;
config?: editor.IStandaloneEditorConstructionOptions;
lineNumbers?: 'on' | 'off';
autoToggleTheme?: boolean;
theme?: 'vs-light' | 'vs-dark' | 'hc-black';
};
/**
* 设置文本
* @param text
*/
declare function setValue(text: string): void;
/**
* 光标处插入文本
* @param text
*/
declare function insertText(text: string): void;
declare const _default: import('vue').DefineComponent<__VLS_Props, {
setValue: typeof setValue;
insertText: typeof insertText;
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
"update:modelValue": (...args: any[]) => void;
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
}>, {
language: string;
readOnly: boolean;
valueFormat: string;
config: editor.IStandaloneEditorConstructionOptions;
lineNumbers: "on" | "off";
theme: "vs-light" | "vs-dark" | "hc-black";
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
editContainer: HTMLDivElement;
}, HTMLDivElement>;
export default _default;