UNPKG

tdesign-mobile-vue

Version:
24 lines (23 loc) 616 B
import { TNode } from '../common'; export interface TdQRCodeProps { bgColor?: string; borderless?: boolean; color?: string; icon?: string; iconSize?: number | { width: number; height: number; }; level?: 'L' | 'M' | 'Q' | 'H'; size?: number; status?: QRStatus; statusRender?: (info: StatusRenderInfo) => TNode; type?: 'canvas' | 'svg'; value?: string; onRefresh?: () => void; } export declare type QRStatus = 'active' | 'expired' | 'loading' | 'scanned'; export declare type StatusRenderInfo = { status: QRStatus; onRefresh?: () => void; };