初始化项目, 添加TDesign等包
This commit is contained in:
27
miniprogram/miniprogram_npm/tdesign-miniprogram/qrcode/hooks/useQRCode.d.ts
vendored
Normal file
27
miniprogram/miniprogram_npm/tdesign-miniprogram/qrcode/hooks/useQRCode.d.ts
vendored
Normal file
@@ -0,0 +1,27 @@
|
||||
import { QrCode } from '../../common/shared/qrcode/qrcodegen';
|
||||
import type { ErrorCorrectionLevel, Excavation, ImageSettings } from '../../common/shared/qrcode/types';
|
||||
interface Options {
|
||||
value: string;
|
||||
level: ErrorCorrectionLevel;
|
||||
minVersion: number;
|
||||
includeMargin: boolean;
|
||||
marginSize?: number;
|
||||
imageSettings?: ImageSettings;
|
||||
size: number;
|
||||
}
|
||||
interface QRCodeResult {
|
||||
cells: boolean[][];
|
||||
margin: number;
|
||||
numCells: number;
|
||||
calculatedImageSettings: {
|
||||
x: number;
|
||||
y: number;
|
||||
h: number;
|
||||
w: number;
|
||||
excavation: Excavation | null;
|
||||
opacity: number;
|
||||
} | null;
|
||||
qrcode: QrCode;
|
||||
}
|
||||
declare const useQRCode: (opt: Options) => QRCodeResult;
|
||||
export default useQRCode;
|
||||
Reference in New Issue
Block a user