UNPKG

@vuux/editor

Version:

Vue Nuxt 富文本编辑器

20 lines (19 loc) 670 B
import { Ref } from 'vue'; import { Props } from '../types'; /** * 编辑器方法 * * @param props 组件属性 * @param contentRef 内容实例 * @param emits 组件事件 */ export declare const useMethod: (props: Props, contentRef: Ref<HTMLDivElement | null>, emits: (event: "error" | "success", ...args: any[]) => void) => { styles: import('vue').ComputedRef<Record<string, string>>; isFull: Ref<boolean, boolean>; leftWidth: Ref<number, number>; rightWidth: Ref<number, number>; startDrag: (e: MouseEvent) => void; onSuccess: (response: any, fileName: string) => void; onError: () => void; onFull: (full: boolean) => void; };