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

    接口 PrivacyConfig

    协议栏配置

    协议栏由「前置文本 + 运营商协议 + 自定义协议(1-3 项) + 后置文本」拼接而成。 颜色分两类,互不继承:

    • [color] 普通文字颜色(前置 / 后置文本、运营商协议名),如灰色;
    • [protocolColor] 协议链接颜色(自定义协议条款,可点击),如蓝色; 弹窗(alert.content)内的同一套协议自动复用本配置,无需重复设置。
    interface PrivacyConfig {
        clauses?: ClauseItem[];
        color?: string;
        fontSize?: number;
        fontWeight?: "bold" | "normal" | "medium" | "lighter" | "bolder";
        margin?: string | number | EdgeValue;
        operatorIndex?: "begin" | "end";
        prefixFontColor?: string;
        prefixFontSize?: number;
        prefixFontWeight?: "bold" | "normal" | "medium" | "lighter" | "bolder";
        prefixText?: string;
        protocolColor?: string;
        suffixFontColor?: string;
        suffixFontSize?: number;
        suffixFontWeight?: "bold" | "normal" | "medium" | "lighter" | "bolder";
        suffixText?: string;
        vendorPrefix?: string;
        vendorSuffix?: string;
    }
    索引

    属性

    clauses?: ClauseItem[]

    自定义协议列表(最多 3 项;颜色未设置时使用 [protocolColor])

    color?: string

    普通文字颜色(区域基准:前置 / 后置文本、运营商协议名未单独配置时使用),如 '#666666' 灰色

    fontSize?: number

    协议栏字体大小(区域基准:前置 / 后置 / 运营商协议 / 协议链接未单独配置时统一使用)

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

    协议栏字体粗细(区域基准)

    margin?: string | number | EdgeValue

    协议栏整体外边距(如 { left: 40, right: 40, bottom: 30 })

    operatorIndex?: "begin" | "end"

    运营商协议位置

    begin
    
    prefixFontColor?: string

    前置文本颜色(未设置时使用 [color] 普通文字色)

    prefixFontSize?: number

    前置文本字号

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

    前置文本字体粗细

    prefixText?: string

    前置文本(默认 12 号灰字)

    protocolColor?: string

    协议链接颜色(区域基准):所有可点击的协议统一使用—— 自定义协议条款(clauses)与默认运营商协议(如《中国移动认证服务条款》); 未单独配置时使用,如 '#0B57D0' 蓝色。

    suffixFontColor?: string

    后置文本颜色(未设置时使用 [color] 普通文字色)

    suffixFontSize?: number

    后置文本字号

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

    后置文本字体粗细

    suffixText?: string

    后置文本

    vendorPrefix?: string

    运营商协议前缀符号

    《
    
    vendorSuffix?: string

    运营商协议后缀符号

    》