You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
34 lines
727 B
34 lines
727 B
import type { CSSProperties } from 'react';
|
|
|
|
interface ImageSettings {
|
|
src: string;
|
|
height: number;
|
|
width: number;
|
|
excavate: boolean;
|
|
x?: number;
|
|
y?: number;
|
|
}
|
|
|
|
interface QRProps {
|
|
value: string;
|
|
size?: number;
|
|
color?: string;
|
|
style?: CSSProperties;
|
|
includeMargin?: boolean;
|
|
imageSettings?: ImageSettings;
|
|
bgColor?: string;
|
|
}
|
|
|
|
export type QRPropsCanvas = QRProps & React.CanvasHTMLAttributes<HTMLCanvasElement>;
|
|
|
|
export interface QRCodeProps extends QRProps {
|
|
className?: string;
|
|
rootClassName?: string;
|
|
prefixCls?: string;
|
|
icon?: string;
|
|
iconSize?: number;
|
|
bordered?: boolean;
|
|
errorLevel?: 'L' | 'M' | 'Q' | 'H';
|
|
status?: 'active' | 'expired' | 'loading';
|
|
onRefresh?: () => void;
|
|
}
|
|
|