first commit
This commit is contained in:
61
miniprogram_npm/tdesign-miniprogram/qrcode/components/qrcode-canvas/qrcode-canvas.d.ts
vendored
Normal file
61
miniprogram_npm/tdesign-miniprogram/qrcode/components/qrcode-canvas/qrcode-canvas.d.ts
vendored
Normal file
@@ -0,0 +1,61 @@
|
||||
import { SuperComponent } from '../../../common/src/index';
|
||||
export default class QRCode extends SuperComponent {
|
||||
properties: {
|
||||
value: {
|
||||
type: StringConstructor;
|
||||
value: string;
|
||||
};
|
||||
icon: {
|
||||
type: StringConstructor;
|
||||
value: string;
|
||||
};
|
||||
size: {
|
||||
type: NumberConstructor;
|
||||
value: number;
|
||||
};
|
||||
iconSize: {
|
||||
type: any;
|
||||
value: null;
|
||||
};
|
||||
level: {
|
||||
type: StringConstructor;
|
||||
value: import("../../../common/shared/qrcode/types").ErrorCorrectionLevel;
|
||||
};
|
||||
bgColor: {
|
||||
type: StringConstructor;
|
||||
value: string;
|
||||
};
|
||||
color: {
|
||||
type: StringConstructor;
|
||||
value: string;
|
||||
};
|
||||
includeMargin: {
|
||||
type: BooleanConstructor;
|
||||
value: boolean;
|
||||
};
|
||||
marginSize: {
|
||||
type: NumberConstructor;
|
||||
value: number;
|
||||
};
|
||||
};
|
||||
lifeTimes: {
|
||||
ready(): void;
|
||||
};
|
||||
observers: {
|
||||
'**': () => void;
|
||||
};
|
||||
methods: {
|
||||
initCanvas(): Promise<void>;
|
||||
drawQrcode(canvas: WechatMiniprogram.Canvas, ctx: WechatMiniprogram.CanvasContext): Promise<void>;
|
||||
drawCenterIcon(canvas: WechatMiniprogram.Canvas, ctx: WechatMiniprogram.CanvasContext, width: number, height: number, numCells: number): Promise<void>;
|
||||
getSizeProp(iconSize: number | {
|
||||
width: number;
|
||||
height: number;
|
||||
} | null | undefined): {
|
||||
width: number;
|
||||
height: number;
|
||||
};
|
||||
checkdefaultValue(): void;
|
||||
getCanvasNode(): Promise<unknown>;
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user