tdesign-mobile-vue
Version:
tdesign-mobile-vue
27 lines (26 loc) • 964 B
TypeScript
import { CanvasHTMLAttributes, CSSProperties, SVGAttributes } from 'vue';
import type { ErrorCorrectionLevel, ImageSettings } from '../../_common/js/qrcode/types';
import { QRCodeConfig } from '../../config-provider/type';
import { StatusRenderInfo, TdQRCodeProps } from '../type';
export interface QRCodeSubComponent {
value: string;
size?: number;
level?: ErrorCorrectionLevel;
bgColor?: string;
fgColor?: string;
style?: CSSProperties;
includeMargin?: boolean;
marginSize?: number;
imageSettings?: ImageSettings;
title?: string;
minVersion?: number;
}
export declare type QRCodeCanvas = QRCodeSubComponent & CanvasHTMLAttributes;
export declare type QRCodeSVG = QRCodeSubComponent & SVGAttributes;
export interface QRCodeStatus {
locale: QRCodeConfig;
classPrefix: string;
onRefresh?: TdQRCodeProps['onRefresh'];
statusRender?: TdQRCodeProps['statusRender'];
status: StatusRenderInfo['status'];
}