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

    接口 AlertConfig

    二次弹窗配置(完整映射 SDK AuthUiConfig.privacyAlert*)

    interface AlertConfig {
        autoCancel?: boolean;
        backgroundColor?: string;
        borderRadius?: RadiusValue;
        cancel?: AlertButtonConfig;
        cancelText?: string;
        confirm?: AlertButtonConfig;
        confirmBackgroundColor?: string;
        confirmFontColor?: string;
        confirmText?: string;
        content?: AlertContentConfig;
        height?: string | number;
        maskColor?: string;
        operatorFontColor?: string;
        operatorFontSize?: number;
        operatorFontWeight?: "bold" | "normal" | "medium" | "lighter" | "bolder";
        position?: PointValue;
        title?: string;
        titleFontColor?: string;
        titleFontSize?: number;
        titleFontWeight?: "bold" | "normal" | "medium" | "lighter" | "bolder";
        visible?: boolean;
        width?: string | number;
    }
    索引

    属性

    autoCancel?: boolean

    点击弹窗外区域是否自动关闭

    backgroundColor?: string

    弹窗背景色

    borderRadius?: RadiusValue

    弹窗圆角

    取消按钮配置(完整可定制)

    cancelText?: string

    取消按钮文字(简化用法,等价 cancel.text)

    确认按钮配置(完整可定制)

    confirmBackgroundColor?: string

    确认按钮背景色(简化用法,等价 confirm.backgroundColor)

    confirmFontColor?: string

    确认按钮文字颜色(简化用法,等价 confirm.fontColor)

    confirmText?: string

    确认按钮文字(简化用法,等价 confirm.text)

    内容区配置

    height?: string | number

    弹窗高度

    maskColor?: string

    弹窗遮罩颜色

    operatorFontColor?: string

    弹窗内运营商协议样式:字体颜色

    operatorFontSize?: number

    弹窗内运营商协议样式:字体大小

    operatorFontWeight?: "bold" | "normal" | "medium" | "lighter" | "bolder"

    弹窗内运营商协议样式:字体粗细

    position?: PointValue

    弹窗位置

    title?: string

    弹窗标题

    titleFontColor?: string

    标题颜色

    titleFontSize?: number

    标题字号

    titleFontWeight?: "bold" | "normal" | "medium" | "lighter" | "bolder"

    标题字体粗细

    visible?: boolean

    未勾选协议时是否弹二次确认弹窗

    true
    
    width?: string | number

    弹窗宽度