umoteam-editor.d.ts 1.02 KB
declare module "@umoteam/editor" {
  import { DefineComponent } from "vue";

  export interface UmoEditorOptions {
    editorKey?: string;
    locale?: string;
    dicts?: any[];
    toolbar?: {
      defaultMode?: "classic" | "ribbon" | "source";
      menus?: string[];
      [key: string]: any;
    };
    page?: {
      defaultOrientation?: "portrait" | "landscape";
      defaultBackground?: string;
      [key: string]: any;
    };
    document?: {
      title?: string;
      content?: string;
      placeholder?: string;
      enableMarkdown?: boolean;
      enableBubbleMenu?: boolean;
      enableBlockMenu?: boolean;
      readOnly?: boolean;
      [key: string]: any;
    };
    assistant?: {
      enabled?: boolean;
      [key: string]: any;
    };
    [key: string]: any;
  }

  export const UmoEditor: DefineComponent<{
    modelValue?: string;
    options?: UmoEditorOptions;
    height?: string | number;
    [key: string]: any;
  }>;
}

declare module "@umoteam/editor/style" {
  const content: any;
  export default content;
}