am-watermark
Version:
一款Vue3的水印组件、支持指令和组件使用
44 lines (43 loc) • 1.4 kB
TypeScript
import { App } from 'vue';
export declare const WaterMark: import("vue").DefineComponent<{
text: {
type: StringConstructor;
default: string;
};
options: {
type: () => Partial<import("./config").Options>;
default: () => import("./config").Options;
};
}, {
url: string;
options: import("vue").ComputedRef<{
width: number;
height: number;
fontSize: number;
fontFamily: string;
fontColor: string;
fontWidth?: 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900 | undefined;
offsetLeft: number;
offsetTop: number;
gapX: number;
gapY: number;
rotate?: number | undefined;
conentZ?: number | undefined;
}>;
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
text: {
type: StringConstructor;
default: string;
};
options: {
type: () => Partial<import("./config").Options>;
default: () => import("./config").Options;
};
}>>, {
text: string;
options: Partial<import("./config").Options>;
}, {}>;
declare const WaterMarkPlugin: {
install: (app: App) => void;
};
export default WaterMarkPlugin;