Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs(zh): add translation for @pinia/nuxt.ModuleOptions to avoid 404 #2312

Merged
merged 4 commits into from Jul 18, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
40 changes: 40 additions & 0 deletions packages/docs/zh/api/interfaces/pinia_nuxt.ModuleOptions.md
@@ -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`
4 changes: 2 additions & 2 deletions packages/docs/zh/api/modules/pinia.md
Expand Up @@ -458,7 +458,7 @@ ___

▸ (...`args`): `any`

Generic type for a function that can infer arguments and return type
可以推断参数和返回值类型的函数通用类型。

**仅**供内部使用

Expand Down Expand Up @@ -1199,4 +1199,4 @@ getter 和 plugin 添加的 state 属性。

#### 返回值

`ToRefs`<[`StoreState`](pinia.md#storestate)<`SS`\> & [`StoreGetters`](pinia.md#storegetters)<`SS`\> & [`PiniaCustomStateProperties`](../interfaces/pinia.PiniaCustomStateProperties.md)<[`StoreState`](pinia.md#storestate)<`SS`\>\>\>
`ToRefs`<[`StoreState`](pinia.md#storestate)<`SS`\> & [`StoreGetters`](pinia.md#storegetters)<`SS`\> & [`PiniaCustomStateProperties`](../interfaces/pinia.PiniaCustomStateProperties.md)<[`StoreState`](pinia.md#storestate)<`SS`\>\>\>