ymx-aliyun-pns
    正在准备搜索索引...

    接口 LoginWidget

    授权页自定义元素(SDK loginPageComponent 插槽,可添加多个)

    元素为绝对定位:top 相对授权页内容区顶部、left / right 控制水平位置 (不设置 left / right 时水平居中);元素互不占位、可按坐标自由摆放, 并通过 zIndex 控制层级(数值越大越靠上,默认按数组顺序)。

    interface LoginWidget {
        borderRadius?: string | number;
        bottom?: string | number;
        color?: string;
        fontSize?: number;
        fontWeight?: "bold" | "normal" | "medium" | "lighter" | "bolder";
        height?: string | number;
        left?: string | number;
        right?: string | number;
        src?: string;
        text?: string;
        top?: string | number;
        type: "image" | "text";
        width?: string | number;
        zIndex?: number;
    }
    索引

    属性

    borderRadius?: string | number

    圆角(图片)

    bottom?: string | number

    距授权页内容区底部偏移(绝对定位;与 top 同时设置时以 bottom 为准)

    color?: string

    颜色(文字)

    #999999
    
    fontSize?: number

    字号(文字)

    13
    
    fontWeight?: "bold" | "normal" | "medium" | "lighter" | "bolder"

    字体粗细(文字)

    height?: string | number

    高度(图片)

    left?: string | number

    距容器左侧偏移(绝对定位;不设置则水平居中,与 right 同时设置时以 left 为准)

    right?: string | number

    距容器右侧偏移(绝对定位;不设置则水平居中)

    src?: string

    图片(type 为 image 时必填;网络 URL 或 rawfile 路径)

    text?: string

    文案(type 为 text 时必填)

    top?: string | number

    距授权页内容区顶部偏移(绝对定位)

    0
    
    type: "image" | "text"

    元素类型

    • image 图片
    • text 文字
    width?: string | number

    宽度(图片)

    zIndex?: number

    层级(zIndex):数值越大越靠上,可覆盖其它元素

    0