qrcode.d.ts 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. import { SuperComponent } from '../common/src/index';
  2. export default class QRCode extends SuperComponent {
  3. externalClasses: string[];
  4. options: {
  5. multipleSlots: boolean;
  6. virtualHost: boolean;
  7. };
  8. properties: {
  9. statusRender: {
  10. type: BooleanConstructor;
  11. value: boolean;
  12. };
  13. style: {
  14. type: StringConstructor;
  15. value: string;
  16. };
  17. customStyle: {
  18. type: StringConstructor;
  19. value: string;
  20. };
  21. bgColor?: {
  22. type: StringConstructor;
  23. value?: string;
  24. };
  25. borderless?: {
  26. type: BooleanConstructor;
  27. value?: boolean;
  28. };
  29. color?: {
  30. type: StringConstructor;
  31. value?: string;
  32. };
  33. icon?: {
  34. type: StringConstructor;
  35. value?: string;
  36. };
  37. iconSize?: {
  38. type: null;
  39. value?: number | {
  40. width: number;
  41. height: number;
  42. };
  43. };
  44. level?: {
  45. type: StringConstructor;
  46. value?: "M" | "L" | "Q" | "H";
  47. };
  48. size?: {
  49. type: NumberConstructor;
  50. value?: number;
  51. };
  52. status?: {
  53. type: StringConstructor;
  54. value?: import("./type").QRStatus;
  55. };
  56. value?: {
  57. type: StringConstructor;
  58. value?: string;
  59. };
  60. };
  61. data: {
  62. prefix: string;
  63. showMask: boolean;
  64. classPrefix: string;
  65. canvasReady: boolean;
  66. };
  67. lifetimes: {
  68. ready(): Promise<void>;
  69. attached(): void;
  70. };
  71. observers: {
  72. status: (newVal: string) => void;
  73. };
  74. methods: {
  75. handleDrawCompleted(): void;
  76. handleDrawError(err: any): void;
  77. handleRefresh(): void;
  78. handleDownload(): Promise<void>;
  79. };
  80. }