Skip to content

Commit bd99b79

Browse files
Merge pull request #222 from vuejs-translations/c0e81eff
improvement composition-api-lifecycle type Update composition-api-lifecycle.md (#221)
2 parents 1e6c35f + 2cc3d8a commit bd99b79

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

src/api/composition-api-lifecycle.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
- **النوع**
1212

1313
```ts
14-
function onMounted(callback: () => void): void
14+
function onMounted(callback: () => void, target?: ComponentInternalInstance | null): void
1515
```
1616

1717
- **التفاصيل**
@@ -53,7 +53,7 @@
5353
- **النوع**
5454

5555
```ts
56-
function onUpdated(callback: () => void): void
56+
function onUpdated(callback: () => void, target?: ComponentInternalInstance | null): void
5757
```
5858

5959
- **التفاصيل**
@@ -96,7 +96,7 @@
9696
- **النوع**
9797

9898
```ts
99-
function onUnmounted(callback: () => void): void
99+
function onUnmounted(callback: () => void, target?: ComponentInternalInstance | null): void
100100
```
101101

102102
- **التفاصيل**
@@ -135,7 +135,7 @@
135135
- **النوع**
136136

137137
```ts
138-
function onBeforeMount(callback: () => void): void
138+
function onBeforeMount(callback: () => void, target?: ComponentInternalInstance | null): void
139139
```
140140

141141
- **التفاصيل**
@@ -151,7 +151,7 @@
151151
- **النوع**
152152

153153
```ts
154-
function onBeforeUpdate(callback: () => void): void
154+
function onBeforeUpdate(callback: () => void, target?: ComponentInternalInstance | null): void
155155
```
156156

157157
- **التفاصيل**
@@ -167,7 +167,7 @@
167167
- **النوع**
168168

169169
```ts
170-
function onBeforeUnmount(callback: () => void): void
170+
function onBeforeUnmount(callback: () => void, target?: ComponentInternalInstance | null): void
171171
```
172172

173173
- **التفاصيل**
@@ -282,7 +282,7 @@
282282
- **النوع**
283283

284284
```ts
285-
function onActivated(callback: () => void): void
285+
function onActivated(callback: () => void, target?: ComponentInternalInstance | null): void
286286
```
287287

288288
- **اطلع أيضا على** [دليل - دورة حياة النسخة المخزنة](/guide/built-ins/keep-alive#lifecycle-of-cached-instance)
@@ -296,7 +296,7 @@
296296
- **النوع**
297297

298298
```ts
299-
function onDeactivated(callback: () => void): void
299+
function onDeactivated(callback: () => void, target?: ComponentInternalInstance | null): void
300300
```
301301

302302
- **اطلع أيضا على** [دليل - دورة حياة النسخة المخزنة](/guide/built-ins/keep-alive#lifecycle-of-cached-instance)

0 commit comments

Comments
 (0)