Skip to content

pantoken-root / formats/scope/src / ScopeMessage

接口: ScopeMessage ​

Beta

作用域与其附加框架之间交换的消息信封。

扩展 ​

属性 ​

theme? ​

optional theme?: string

Beta

主题键,例如 "rebrand"。 被 [data-pantoken-theme="…"] 匹配。

继承自 ​

ScopeConfig.theme


scheme? ​

optional scheme?: Scheme

Beta

固定的配色方案。省略则跟随操作系统偏好。

继承自 ​

ScopeConfig.scheme


color? ​

optional color?: string

Beta

自定义品牌颜色键。

继承自 ​

ScopeConfig.color


type ​

type: "pantoken-scope" | "pantoken-scope-request"

Beta


instanceId ​

instanceId: string

Beta

拥有此作用域的 pantoken 实例的标识符。

重写 ​

ScopeConfig.instanceId