@@ -20,7 +20,7 @@ const store = new Vuex.Store({ ...options })
20
20
21
21
Vuex ์ ์ฅ์์ ๋ฃจํธ ์ํ ๊ฐ์ฒด ์
๋๋ค. [ ์์ธ] ( ../guide/state.md )
22
22
23
- ์ค๋ธ์ ํธ๋ฅผ ๋ฐํํ๋ ํจ์๋ฅผ ์ ๋ฌํ๋ฉด, ๋ฐํ๋ ์ค๋ธ์ ํธ๊ฐ ๋กํฌ ์ํ๋ก ์ฌ์ฉ๋ฉ๋๋ค. ์ด๊ฒ์ ๋ชจ๋ ์ฌ์ฌ์ฉ์ ์ํด ์ํ ๊ฐ์ฒด๋ฅผ ์ฌ์ฌ์ฉํ๊ณ ์ ํ ๋ ์ ์ฉํฉ๋๋ค. [ ์์ธ] ( ../guide/modules.md#๋ชจ๋-์ฌ์ฌ์ฉ )
23
+ ์ค๋ธ์ ํธ๋ฅผ ๋ฐํํ๋ ํจ์๋ฅผ ์ ๋ฌํ๋ฉด, ๋ฐํ๋ ์ค๋ธ์ ํธ๊ฐ ๋ฃจํธ ์ํ๋ก ์ฌ์ฉ๋ฉ๋๋ค. ์ด๊ฒ์ ๋ชจ๋ ์ฌ์ฌ์ฉ์ ์ํด ์ํ ๊ฐ์ฒด๋ฅผ ์ฌ์ฌ์ฉํ๊ณ ์ ํ ๋ ์ ์ฉํฉ๋๋ค. [ ์์ธ] ( ../guide/modules.md#๋ชจ๋-์ฌ์ฌ์ฉ )
24
24
25
25
### mutations
26
26
@@ -201,7 +201,7 @@ const store = new Vuex.Store({ ...options })
201
201
- ` registerModule(path: string | Array<string>, module: Module, options?: Object)`
202
202
203
203
๋์ ๋ชจ๋์ ๋ฑ๋กํฉ๋๋ค. [์์ธ](../ guide/ modules .md #๋์ - ๋ชจ๋- ๋ฑ๋ก)
204
-
204
+
205
205
` options` ์ ์ด์ ์์ฑ์ ๋ณดํธํ๋ ` preserveState: true` ๋ฅผ ๊ฐ์ง ์ ์์ต๋๋ค. ์ด๊ฒ์ ์๋ฒ์ฌ์ด๋ ๋ ๋๋ง์์ ์ ์ฉํฉ๋๋ค.
206
206
207
207
### unregisterModule
@@ -223,7 +223,7 @@ const store = new Vuex.Store({ ...options })
223
223
- ` mapState(namespace?: string, map: Array<string> | Object<string | function>): Object`
224
224
225
225
Vuex ์ ์ฅ์์ ํ์ ํธ๋ฆฌ๋ฅผ ๋ฐํํ๋ ์ปดํฌ๋ํธ ๊ณ์ฐ ์ต์
์ ๋ง๋ญ๋๋ค. [์์ธ](../ guide/ state .md #mapstate- ํฌํผ)
226
-
226
+
227
227
์ฒ์ argument๋ string ํ์
์ namespace๊ฐ ๋ ์ ์์ต๋๋ค. [์์ธ](../ guide/ modules .md #ํฌํผ์์- ๋ค์์คํ์ด์ค- ๋ฐ์ธ๋ฉ)
228
228
229
229
๋๋ฒ์งธ ์ค๋ธ์ ํธ argument๋ ํจ์๊ฐ ๋ ์ ์์ต๋๋ค. ` function(state: any)`
@@ -233,15 +233,15 @@ const store = new Vuex.Store({ ...options })
233
233
- ` mapGetters(namespace?: string, map: Array<string> | Object<String>): Object`
234
234
235
235
getter์ ํ๊ฐ๋ ๊ฐ์ ๋ฐํํ๋ ์ปดํฌ๋ํธ ๊ณ์ฐ ์ต์
์ ๋ง๋ญ๋๋ค. [์์ธ](../ guide/ getters .md #mapgetters- ํฌํผ)
236
-
236
+
237
237
์ฒ์ argument๋ string ํ์
์ namespace๊ฐ ๋ ์ ์์ต๋๋ค. [์์ธ](../ guide/ modules .md #ํฌํผ์์- ๋ค์์คํ์ด์ค- ๋ฐ์ธ๋ฉ)
238
238
239
239
### mapActions
240
240
241
241
- ` mapActions(namespace?: string, map: Array<string> | Object<string | function>): Object`
242
242
243
243
์ก์
์ ์ ๋ฌํ๋ ์ปดํฌ๋ํธ ๋ฉ์๋ ์ต์
์ ๋ง๋ญ๋๋ค. [์์ธ](../ guide/ actions .md #์ปดํฌ๋ํธ- ๋ด๋ถ์์- ๋์คํจ์น- ์ก์
- ์ฌ์ฉํ๊ธฐ)
244
-
244
+
245
245
์ฒ์ argument๋ string ํ์
์ namespace๊ฐ ๋ ์ ์์ต๋๋ค. [์์ธ](../ guide/ modules .md #ํฌํผ์์- ๋ค์์คํ์ด์ค- ๋ฐ์ธ๋ฉ)
246
246
247
247
๋๋ฒ์งธ ์ค๋ธ์ ํธ argument๋ ํจ์๊ฐ ๋ ์ ์์ต๋๋ค. ` function(dispatch: function, ...args: any[])`
@@ -251,13 +251,13 @@ const store = new Vuex.Store({ ...options })
251
251
- ` mapMutations(namespace?: string, map: Array<string> | Object<string | function>): Object`
252
252
253
253
๋ณ์ด๋ฅผ ์ปค๋ฐํ๋ ์ปดํฌ๋ํธ ๋ฉ์๋ ์ต์
์ ๋ง๋ญ๋๋ค. [์์ธ](../ guide/ mutations .md #์ปดํฌ๋ํธ- ์์์- ๋ณ์ด- ์ปค๋ฐํ๊ธฐ)
254
-
254
+
255
255
์ฒ์ argument๋ string ํ์
์ namespace๊ฐ ๋ ์ ์์ต๋๋ค. [์์ธ](../ guide/ modules .md #ํฌํผ์์- ๋ค์์คํ์ด์ค- ๋ฐ์ธ๋ฉ)
256
256
257
257
๋๋ฒ์งธ ์ค๋ธ์ ํธ argument๋ ํจ์๊ฐ ๋ ์ ์์ต๋๋ค. ` function(commit: function, ...args: any[])`
258
-
258
+
259
259
### createNamespacedHelpers
260
260
261
261
- ` createNamespacedHelpers(namespace: string): Object`
262
262
263
- namespace๊ฐ ์ ์ฉ๋ ์ปดํฌ๋ํธ ๋ฐ์ธ๋ฉ helper๋ฅผ ๋ง๋ญ๋๋ค. ์ฃผ์ด์ง namespace๊ฐ ์ ์ฉ๋ ` mapState` , ` mapGetters` , ` mapActions` ` mapMutations` ๋ค์ ๊ฐ์ง๊ณ ์๋ ์ค๋ธ์ ํธ๋ฅผ ๋ฐํํฉ๋๋ค. [์์ธ](../ guide/ modules .md #ํฌํผ์์- ๋ค์์คํ์ด์ค- ๋ฐ์ธ๋ฉ)
263
+ namespace๊ฐ ์ ์ฉ๋ ์ปดํฌ๋ํธ ๋ฐ์ธ๋ฉ helper๋ฅผ ๋ง๋ญ๋๋ค. ์ฃผ์ด์ง namespace๊ฐ ์ ์ฉ๋ ` mapState` , ` mapGetters` , ` mapActions` ` mapMutations` ๋ค์ ๊ฐ์ง๊ณ ์๋ ์ค๋ธ์ ํธ๋ฅผ ๋ฐํํฉ๋๋ค. [์์ธ](../ guide/ modules .md #ํฌํผ์์- ๋ค์์คํ์ด์ค- ๋ฐ์ธ๋ฉ)
0 commit comments