-
Notifications
You must be signed in to change notification settings - Fork 121
Expand file tree
/
Copy pathindex.d.ts
More file actions
57 lines (51 loc) · 1.16 KB
/
Copy pathindex.d.ts
File metadata and controls
57 lines (51 loc) · 1.16 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
import type { App, DefineComponent } from 'vue'
export type ComponentOptions = {
data?: { scale?: number }
timing?: { scale?: number; protectors?: boolean }
alignment?: { scale?: number; protectors?: boolean }
cornerAlignment?: { scale?: number; protectors?: boolean }
}
export interface VueQrProps {
text: string
qid?: string
correctLevel?: number
size?: number
margin?: number
colorDark?: string
colorLight?: string
bgSrc?: string
background?: string
backgroundDimming?: string
logoSrc?: string
logoBackgroundColor?: string
gifBgSrc?: string
logoScale?: number
logoMargin?: number
logoCornerRadius?: number
whiteMargin?: boolean | string
dotScale?: number
autoColor?: boolean | string
binarize?: boolean | string
binarizeThreshold?: number
bindElement?: boolean
backgroundColor?: string
components?: ComponentOptions
}
export type VueQrEmits = {
generated: (dataUrl: string, qid?: string) => void
}
declare const VueQr: DefineComponent<
VueQrProps,
{},
{},
{},
{},
{},
{},
VueQrEmits
> & {
install: (app: App) => void
}
export declare function install(app: App): void
export { VueQr }
export default VueQr