xusd
7 days ago 998218675eb243d43912c203174a6b72b299c0f8
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
Component({
    /**
     * 组件的属性列表
     * width: number 展示宽度
     * content: string 展示内容
     * visible: boolean 是否显示
     * placement: string 方向,可传入参数:left,right,center
     */
    properties: {
        content: String,
        visible: Boolean,
        width: {
            type: Number,
            value: 300,
        },
        placement: {
            type: String,
            value: 'center',
        },
        fontsize: {
            type: String,
            value: '28rpx',
        },
    },
});