Skip to content
该翻译已同步到了 的版本,其对应的 commit hash 是 02a476d。

API 文档 / pinia / StoreProperties

接口:StoreProperties<Id> ​

pinia.StoreProperties

store 的属性。

类型参数 ​

名称类型
Idextends string

层次结构 ​

属性 ​

$id ​

• $id: Id

store 的唯一标识符


_customProperties ​

• _customProperties: Set<string>

供 devtools 插件使用,用于检索插件添加的属性。 在生产环境中会被移除。 开发者可用于添加应在 devtools 中显示的 store 的属性键。

Released under the MIT License.