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