API 文档 / pinia / PiniaCustomProperties
接口:PiniaCustomProperties<Id, S, G, A>
pinia.PiniaCustomProperties
当用户通过插件添加属性时,接口可被扩展。
类型参数
Name | Type |
---|---|
Id | extends string = string |
S | extends StateTree = StateTree |
G | _GettersTree <S > |
A | _ActionsTree |
属性
$nuxt
• $nuxt: Context
Nuxt 上下文
定义于
double
• double: number
定义于
pinia/tests/storePlugins.spec.ts:14
globalA
• globalA: string
定义于
pinia/tests/storePlugins.spec.ts:11
globalB
• globalB: string
定义于
pinia/tests/storePlugins.spec.ts:12
hasApp
• hasApp: boolean
定义于
pinia/tests/storePlugins.spec.ts:9
idFromPlugin
• idFromPlugin: Id
定义于
pinia/tests/storePlugins.spec.ts:10
pluginN
• pluginN: number
定义于
pinia/tests/storePlugins.spec.ts:7
shared
• shared: number
定义于
pinia/tests/storePlugins.spec.ts:13
uid
• uid: number
定义于
pinia/tests/storePlugins.spec.ts:8
Accessors
route
• get
route(): RouteLocationNormalized
返回值
RouteLocationNormalized
定义于
• set
route(value
): void
参数
Name | Type |
---|---|
value | RouteLocationNormalizedLoaded | Ref <RouteLocationNormalizedLoaded > |
返回值
void