Skip to content

Complete guide to

Mastering Pinia

written by its creator

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.