-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs(zh): add translation for
@pinia/nuxt.ModuleOptions
to avoid `4…
…04` (#2312)
- Loading branch information
Showing
2 changed files
with
42 additions
and
2 deletions.
There are no files selected for viewing
40 changes: 40 additions & 0 deletions
40
packages/docs/zh/api/interfaces/pinia_nuxt.ModuleOptions.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
--- | ||
editLink: false | ||
--- | ||
|
||
[API 文档](../index.md) / [@pinia/nuxt](../modules/pinia_nuxt.md) / ModuleOptions | ||
|
||
# 接口:ModuleOptions | ||
|
||
[@pinia/nuxt](../modules/pinia_nuxt.md).ModuleOptions | ||
|
||
## 属性 %{#Properties}% | ||
|
||
### autoImports %{#Properties-autoImports}% | ||
|
||
• `Optional` **autoImports**: (`string` \| [`string`, `string`])[] | ||
|
||
将被添加到 nuxt.config.js 文件的自动导入数组。 | ||
|
||
**`Example`** | ||
|
||
```js | ||
autoImports: [ | ||
// automatically import `defineStore` | ||
'defineStore', | ||
// automatically import `defineStore` as `definePiniaStore` | ||
['defineStore', 'definePiniaStore', | ||
] | ||
``` | ||
|
||
--- | ||
|
||
### disableVuex %{#Properties-disableVuex}% | ||
|
||
• `Optional` **disableVuex**: `boolean` | ||
|
||
默认情况下,Pinia 会禁用 Vuex,将此选项设置为 `false` 可启用 Vuex,然后便可同时使用 Pinia 和 Vuex(仅在 Nuxt 2 中支持)。 | ||
|
||
**`Default`** | ||
|
||
`true` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters