WXL
4 天以前 2cc85c64f1c64a2dbaeae276a3e2ca8420de76b7
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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
import {AllowedComponentProps, VNodeProps} from './_common'
 
declare interface QrcodeProps {
    /**
     * 实例ID字符串(必须)
     */
    cid: string
 
    /**
     * 二维码大小
     * @default 200
     */
    size?: number
 
    /**
     * 二维码内容
     */
    val: string
 
    /**
     * 背景色
     * @default "#ffffff"
     */
    background?: string
 
    /**
     * 前景色
     * @default "#000000"
     */
    foreground?: string
 
    /**
     * 二维码中间图标
     * @default "#000000"
     */
    icon?: string
 
    /**
     * 显示加载状态
     * @default true
     */
    showLoading?: boolean
 
    /**
     * 加载中提示语
     * @default "二维码生成中"
     */
    loadingText?: string
 
    /**
     * 使用根节点的宽高 设置为true会导致size失效
     * @default false
     */
    useRootHeightAndWidth: boolean
 
    /**
     * 二维码生成成功回调事件
     */
    result?: () => any
 
    /**
     * 长按触发事件
     * @param url 二维码本地生成url
     */
    longpressCallback?: (url: string) => any
 
}
 
declare interface _Qrcode {
    new(): {
        $props: AllowedComponentProps &
            VNodeProps &
            QrcodeProps
    }
}
 
export declare const Qrcode: _Qrcode