初始化项目, 添加TDesign等包
This commit is contained in:
80
miniprogram/miniprogram_npm/tdesign-miniprogram/qrcode/qrcode.d.ts
vendored
Normal file
80
miniprogram/miniprogram_npm/tdesign-miniprogram/qrcode/qrcode.d.ts
vendored
Normal file
@@ -0,0 +1,80 @@
|
||||
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>;
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user