UNPKG

tdesign-vue

Version:
26 lines (25 loc) 853 B
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?: any; includeMargin?: boolean; marginSize?: number; imageSettings?: ImageSettings; title?: string; minVersion?: number; } export declare type QRCodeCanvas = QRCodeSubComponent & any; export declare type QRCodeSVG = QRCodeSubComponent & any; export interface QRCodeStatus { locale: QRCodeConfig; classPrefix: string; onRefresh?: TdQRCodeProps['onRefresh']; statusRender?: TdQRCodeProps['statusRender']; status: StatusRenderInfo['status']; }