电速宝
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. import { SuperComponent } from '../../../common/src/index';
  2. export default class QRCode extends SuperComponent {
  3. properties: {
  4. value: {
  5. type: StringConstructor;
  6. value: string;
  7. };
  8. icon: {
  9. type: StringConstructor;
  10. value: string;
  11. };
  12. size: {
  13. type: NumberConstructor;
  14. value: number;
  15. };
  16. iconSize: {
  17. type: any;
  18. value: null;
  19. };
  20. level: {
  21. type: StringConstructor;
  22. value: import("../../../common/shared/qrcode/types").ErrorCorrectionLevel;
  23. };
  24. bgColor: {
  25. type: StringConstructor;
  26. value: string;
  27. };
  28. color: {
  29. type: StringConstructor;
  30. value: string;
  31. };
  32. includeMargin: {
  33. type: BooleanConstructor;
  34. value: boolean;
  35. };
  36. marginSize: {
  37. type: NumberConstructor;
  38. value: number;
  39. };
  40. };
  41. lifeTimes: {
  42. ready(): void;
  43. };
  44. observers: {
  45. '**': () => void;
  46. };
  47. methods: {
  48. initCanvas(): Promise<void>;
  49. drawQrcode(canvas: WechatMiniprogram.Canvas, ctx: WechatMiniprogram.CanvasContext): Promise<void>;
  50. drawCenterIcon(canvas: WechatMiniprogram.Canvas, ctx: WechatMiniprogram.CanvasContext, width: number, height: number, numCells: number): Promise<void>;
  51. getSizeProp(iconSize: number | {
  52. width: number;
  53. height: number;
  54. } | null | undefined): {
  55. width: number;
  56. height: number;
  57. };
  58. checkdefaultValue(): void;
  59. getCanvasNode(): Promise<unknown>;
  60. };
  61. }