Skip to content

Commit 22d4a1e

Browse files
Jinjiangktsn
authored andcommitted
[docs] fixed text cut issue (close #1179) (#1189)
1 parent d458225 commit 22d4a1e

File tree

5 files changed

+21
-11
lines changed

5 files changed

+21
-11
lines changed

docs/en/api.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,11 +128,13 @@ const store = new Vuex.Store({ ...options })
128128
129129
### Vuex.Store Instance Methods
130130
131-
- **`commit(type: string, payload?: any, options?: Object) | commit(mutation: Object, options?: Object)`**
131+
- **`commit(type: string, payload?: any, options?: Object)`**
132+
- **`commit(mutation: Object, options?: Object)`**
132133
133134
Commit a mutation. `options` can have `root: true` that allows to commit root mutations in [namespaced modules](modules.md#namespacing). [Details](mutations.md)
134135
135-
- **`dispatch(type: string, payload?: any, options?: Object) | dispatch(action: Object, options?: Object)`**
136+
- **`dispatch(type: string, payload?: any, options?: Object)`**
137+
- **`dispatch(action: Object, options?: Object)`**
136138
137139
Dispatch an action. `options` can have `root: true` that allows to dispatch root actions in [namespaced modules](modules.md#namespacing). Returns a Promise that resolves all triggered action handlers. [Details](actions.md)
138140

docs/fr/api.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,11 +126,13 @@ const store = new Vuex.Store({ ...options })
126126

127127
### Méthodes d'instance de `Vuex.Store`
128128
129-
- **`commit(type: string, payload?: any, options?: Object) | commit(mutation: Object, options?: Object)`**
129+
- **`commit(type: string, payload?: any, options?: Object)`**
130+
- **`commit(mutation: Object, options?: Object)`**
130131
131132
Acter une mutation. `options` peut avoir `root: true` ce qui permet d'acter des mutations racines dans des [modules sous espace de nom](modules.md#namespacing). [Plus de détails](mutations.md)
132133

133-
- **`dispatch(type : string, payload?: any, options?: Object) | dispatch(action: Object, options?: Object)`**
134+
- **`dispatch(type: string, payload?: any, options?: Object)`**
135+
- **`dispatch(action: Object, options?: Object)`**
134136

135137
Propager une action. Retourne la valeur renvoyée par le gestionnaire d'action déclenché, ou une Promesse si plusieurs gestionnaires ont été déclenchés. [Plus de détails](actions.md)
136138

docs/ja/api.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,11 +128,13 @@ const store = new Vuex.Store({ ...options })
128128

129129
### Vuex.Store インスタンスメソッド
130130

131-
- **`commit(type: string, payload?: any, options?: Object) | commit(mutation: Object, options?: Object)`**
131+
- **`commit(type: string, payload?: any, options?: Object)`**
132+
- **`commit(mutation: Object, options?: Object)`**
132133

133134
ミューテーションをコミットします。`options` は[名前空間付きモジュール](modules.md#名前空間)で root なミューテーションにコミットできる `root: true` を持つことできます。[詳細](mutations.md)
134135

135-
- **`dispatch(type: string, payload?: any, options?: Object) | dispatch(action: Object, options?: Object)`**
136+
- **`dispatch(type: string, payload?: any, options?: Object)`**
137+
- **`dispatch(action: Object, options?: Object)`**
136138

137139
アクションをディスパッチします。`options` は[名前空間付きモジュール](modules.md#名前空間)で root なアクションにディスパッチできる `root: true` を持つことできます。 すべてのトリガーされたアクションハンドラを解決するPromiseを返します。[詳細](actions.md)
138140

docs/ru/api.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -126,11 +126,13 @@ const store = new Vuex.Store({ ...options })
126126

127127
### Методы экземпляра Vuex.Store
128128

129-
- **`commit(type: string, payload?: any, options?: Object) | commit(mutation: Object, options?: Object)`**
129+
- **`commit(type: string, payload?: any, options?: Object)`**
130+
- **`commit(mutation: Object, options?: Object)`**
130131

131132
Запускает мутацию. `options` может содержать опцию `root: true` что разрешает совершать корневые (root) мутации [в модулях со своим пространством имён](modules.md#пространства-имён). [Подробнее](mutations.md)
132133

133-
- **`dispatch(type: string, payload?: any, options?: Object) | dispatch(action: Object, options?: Object)`**
134+
- **`dispatch(type: string, payload?: any, options?: Object)`**
135+
- **`dispatch(action: Object, options?: Object)`**
134136

135137
Инициирует действие. `options` может содержать опцию `root: true` что разрешает совершать корневые (root) действия [в модулях со своим пространством имён](modules.md#пространства-имён). Возвращает Promise который разрешает все обработчики инициируемых действий. [Подробнее](actions.md)
136138

@@ -214,4 +216,4 @@ const store = new Vuex.Store({ ...options })
214216
215217
- **`createNamespacedHelpers(namespace: string): Object`**
216218
217-
Создаёт вспомогательные функции для связывания с компонентами для указанного пространства имён. Возвращаемый объект содержит `mapState`, `mapGetters`, `mapActions` и `mapMutations`, которые связаны с указанным пространством имён. [Подробнее](modules.md#подключение-с-помощью-вспомогательных-функций-к-пространству-имён)
219+
Создаёт вспомогательные функции для связывания с компонентами для указанного пространства имён. Возвращаемый объект содержит `mapState`, `mapGetters`, `mapActions` и `mapMutations`, которые связаны с указанным пространством имён. [Подробнее](modules.md#подключение-с-помощью-вспомогательных-функций-к-пространству-имён)

docs/zh-cn/api.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,11 +130,13 @@ const store = new Vuex.Store({ ...options })
130130

131131
### Vuex.Store 实例方法
132132

133-
- **`commit(type: string, payload?: any, options?: Object) | commit(mutation: Object, options?: Object)`**
133+
- **`commit(type: string, payload?: any, options?: Object)`**
134+
- **`commit(mutation: Object, options?: Object)`**
134135

135136
提交 mutation。`options` 里可以有 `root: true`,它允许在[命名空间模块](modules.md#命名空间)里提交根的 mutation。[详细介绍](mutations.md)
136137

137-
- **`dispatch(type: string, payload?: any, options?: Object) | dispatch(action: Object, options?: Object)`**
138+
- **`dispatch(type: string, payload?: any, options?: Object)`**
139+
- **`dispatch(action: Object, options?: Object)`**
138140

139141
分发 action。`options` 里可以有 `root: true`,它允许在[命名空间模块](modules.md#命名空间)里分发根的 action。返回一个解析所有被触发的 action 处理器的 Promise。[详细介绍](actions.md)
140142

0 commit comments

Comments
 (0)