watermark.d.ts 1.9 KB

12345678910111213141516171819202122232425262728293031323334
  1. import type { ExtractPropTypes } 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. textAlign?: 'start' | 'end' | 'left' | 'right' | 'center';
  10. textBaseline?: 'top' | 'hanging' | 'middle' | 'alphabetic' | 'ideographic' | 'bottom';
  11. }
  12. export declare const watermarkProps: {
  13. readonly zIndex: import("element-plus/es/utils").EpPropFinalized<NumberConstructor, unknown, unknown, 9, boolean>;
  14. readonly rotate: import("element-plus/es/utils").EpPropFinalized<NumberConstructor, unknown, unknown, -22, boolean>;
  15. readonly width: NumberConstructor;
  16. readonly height: NumberConstructor;
  17. readonly image: StringConstructor;
  18. 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>;
  19. readonly font: {
  20. readonly type: import("vue").PropType<WatermarkFontType>;
  21. readonly required: false;
  22. readonly validator: ((val: unknown) => boolean) | undefined;
  23. __epPropKey: true;
  24. };
  25. 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>;
  26. readonly offset: {
  27. readonly type: import("vue").PropType<[number, number]>;
  28. readonly required: false;
  29. readonly validator: ((val: unknown) => boolean) | undefined;
  30. __epPropKey: true;
  31. };
  32. };
  33. export type WatermarkProps = ExtractPropTypes<typeof watermarkProps>;
  34. export type WatermarkInstance = InstanceType<typeof Watermark> & unknown;