type.d.ts 992 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. export interface TdQRCodeProps {
  2. bgColor?: {
  3. type: StringConstructor;
  4. value?: string;
  5. };
  6. borderless?: {
  7. type: BooleanConstructor;
  8. value?: boolean;
  9. };
  10. color?: {
  11. type: StringConstructor;
  12. value?: string;
  13. };
  14. icon?: {
  15. type: StringConstructor;
  16. value?: string;
  17. };
  18. iconSize?: {
  19. type: null;
  20. value?: number | {
  21. width: number;
  22. height: number;
  23. };
  24. };
  25. level?: {
  26. type: StringConstructor;
  27. value?: 'L' | 'M' | 'Q' | 'H';
  28. };
  29. size?: {
  30. type: NumberConstructor;
  31. value?: number;
  32. };
  33. status?: {
  34. type: StringConstructor;
  35. value?: QRStatus;
  36. };
  37. value?: {
  38. type: StringConstructor;
  39. value?: string;
  40. };
  41. }
  42. export declare type QRStatus = 'active' | 'expired' | 'loading' | 'scanned';
  43. export declare type StatusRenderInfo = {
  44. status: QRStatus;
  45. onRefresh?: () => void;
  46. };