UNPKG

screen-shot-forvue

Version:

web端自定义截屏插件(Vue3版),一个基于vue-web-screen-shot二开的插件

48 lines (47 loc) 2.07 kB
import { getColor } from "@/module/common-methords/GetColor"; import { selectColor } from "@/module/common-methords/SelectColor"; import { SetupContext } from "@vue/runtime-core"; import { setBrushSize } from "@/module/common-methords/SetBrushSize"; declare const _default: { name: string; props: {}; setup(props: Record<string, any>, context: SetupContext<any>): { screenShortStatus: import("vue").Ref<boolean>; screenShortWidth: import("vue").Ref<number>; screenShortHeight: import("vue").Ref<number>; screenShortController: import("vue").Ref<HTMLCanvasElement | null>; textInputController: import("vue").Ref<HTMLDivElement | null>; toolController: import("vue").Ref<HTMLDivElement | null>; optionIcoController: import("vue").Ref<HTMLDivElement | null>; optionController: import("vue").Ref<HTMLDivElement | null>; toolStatus: import("vue").Ref<boolean>; textStatus: import("vue").Ref<boolean>; undoStatus: import("vue").Ref<boolean>; optionStatus: import("vue").Ref<boolean>; colorPanelStatus: import("vue").Ref<boolean>; currentName: import("vue").Ref<string>; toolLeft: import("vue").Ref<number>; toolTop: import("vue").Ref<number>; optionIcoPosition: import("vue").Ref<number>; selectedColor: import("vue").Ref<string>; toolbar: { id: number; title: string; }[]; toolClickEvent: (toolName: string, index: number, mouseEvent: MouseEvent) => void; getColor: typeof getColor; selectColor: typeof selectColor; setBrushSize: typeof setBrushSize; hiddenToolIco: import("vue").Ref<{ save?: boolean | undefined; undo?: boolean | undefined; confirm?: boolean | undefined; }>; isDestroy: import("vue").Ref<boolean>; }; emits: { "destroy-component": (status: boolean) => boolean; "get-image-data": (base64: string) => boolean; }; }; export default _default;