watermark.d.ts 2.1 KB

123456789101112131415161718192021222324252627282930313233343536
  1. import type { ExtractPropTypes, ExtractPublicPropTypes } from 'vue';
  2. import type Watermark from './watermark.vue';
  3. export interface WatermarkFontType {
  4. color?: string;
  5. fontSize?: number | string;
  6. fontWeight?: 'normal' | 'light' | 'weight' | number;
  7. fontStyle?: 'none' | 'normal' | 'italic' | 'oblique';
  8. fontFamily?: string;
  9. fontGap?: number;
  10. textAlign?: 'start' | 'end' | 'left' | 'right' | 'center';
  11. textBaseline?: 'top' | 'hanging' | 'middle' | 'alphabetic' | 'ideographic' | 'bottom';
  12. }
  13. export declare const watermarkProps: {
  14. readonly zIndex: import("element-plus/es/utils").EpPropFinalized<NumberConstructor, unknown, unknown, 9, boolean>;
  15. readonly rotate: import("element-plus/es/utils").EpPropFinalized<NumberConstructor, unknown, unknown, -22, boolean>;
  16. readonly width: NumberConstructor;
  17. readonly height: NumberConstructor;
  18. readonly image: StringConstructor;
  19. readonly content: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => string | string[]) | (() => string | string[]) | ((new (...args: any[]) => string | string[]) | (() => string | string[]))[], unknown, unknown, "Element Plus", boolean>;
  20. readonly font: {
  21. readonly type: import("vue").PropType<WatermarkFontType>;
  22. readonly required: false;
  23. readonly validator: ((val: unknown) => boolean) | undefined;
  24. __epPropKey: true;
  25. };
  26. readonly gap: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => [number, number]) | (() => [number, number]) | ((new (...args: any[]) => [number, number]) | (() => [number, number]))[], unknown, unknown, () => number[], boolean>;
  27. readonly offset: {
  28. readonly type: import("vue").PropType<[number, number]>;
  29. readonly required: false;
  30. readonly validator: ((val: unknown) => boolean) | undefined;
  31. __epPropKey: true;
  32. };
  33. };
  34. export type WatermarkProps = ExtractPropTypes<typeof watermarkProps>;
  35. export type WatermarkPropsPublic = ExtractPublicPropTypes<typeof watermarkProps>;
  36. export type WatermarkInstance = InstanceType<typeof Watermark> & unknown;