Files
FreeERP.Applet/miniprogram/miniprogram_npm/tdesign-miniprogram/qrcode/qrcode.d.ts

81 lines
1.9 KiB
TypeScript
Raw Normal View History

2025-11-28 16:49:36 +08:00
import { SuperComponent } from '../common/src/index';
export default class QRCode extends SuperComponent {
externalClasses: string[];
options: {
multipleSlots: boolean;
virtualHost: boolean;
};
properties: {
statusRender: {
type: BooleanConstructor;
value: boolean;
};
style: {
type: StringConstructor;
value: string;
};
customStyle: {
type: StringConstructor;
value: string;
};
bgColor?: {
type: StringConstructor;
value?: string;
};
borderless?: {
type: BooleanConstructor;
value?: boolean;
};
color?: {
type: StringConstructor;
value?: string;
};
icon?: {
type: StringConstructor;
value?: string;
};
iconSize?: {
type: null;
value?: number | {
width: number;
height: number;
};
};
level?: {
type: StringConstructor;
value?: "M" | "L" | "Q" | "H";
};
size?: {
type: NumberConstructor;
value?: number;
};
status?: {
type: StringConstructor;
value?: import("./type").QRStatus;
};
value?: {
type: StringConstructor;
value?: string;
};
};
data: {
prefix: string;
showMask: boolean;
classPrefix: string;
canvasReady: boolean;
};
lifetimes: {
ready(): Promise<void>;
attached(): void;
};
observers: {
status: (newVal: string) => void;
};
methods: {
handleDrawCompleted(): void;
handleDrawError(err: any): void;
handleRefresh(): void;
handleDownload(): Promise<void>;
};
}