Skip to content

Commit

Permalink
Merge pull request #222 from vuejs-translations/c0e81eff
Browse files Browse the repository at this point in the history
improvement composition-api-lifecycle type

Update composition-api-lifecycle.md (#221)
  • Loading branch information
Abdelaziz18003 authored Feb 14, 2025
2 parents 1e6c35f + 2cc3d8a commit bd99b79
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/api/composition-api-lifecycle.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
- **النوع**

```ts
function onMounted(callback: () => void): void
function onMounted(callback: () => void, target?: ComponentInternalInstance | null): void
```

- **التفاصيل**
Expand Down Expand Up @@ -53,7 +53,7 @@
- **النوع**

```ts
function onUpdated(callback: () => void): void
function onUpdated(callback: () => void, target?: ComponentInternalInstance | null): void
```

- **التفاصيل**
Expand Down Expand Up @@ -96,7 +96,7 @@
- **النوع**

```ts
function onUnmounted(callback: () => void): void
function onUnmounted(callback: () => void, target?: ComponentInternalInstance | null): void
```

- **التفاصيل**
Expand Down Expand Up @@ -135,7 +135,7 @@
- **النوع**

```ts
function onBeforeMount(callback: () => void): void
function onBeforeMount(callback: () => void, target?: ComponentInternalInstance | null): void
```

- **التفاصيل**
Expand All @@ -151,7 +151,7 @@
- **النوع**

```ts
function onBeforeUpdate(callback: () => void): void
function onBeforeUpdate(callback: () => void, target?: ComponentInternalInstance | null): void
```

- **التفاصيل**
Expand All @@ -167,7 +167,7 @@
- **النوع**

```ts
function onBeforeUnmount(callback: () => void): void
function onBeforeUnmount(callback: () => void, target?: ComponentInternalInstance | null): void
```

- **التفاصيل**
Expand Down Expand Up @@ -282,7 +282,7 @@
- **النوع**

```ts
function onActivated(callback: () => void): void
function onActivated(callback: () => void, target?: ComponentInternalInstance | null): void
```

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

```ts
function onDeactivated(callback: () => void): void
function onDeactivated(callback: () => void, target?: ComponentInternalInstance | null): void
```

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

0 comments on commit bd99b79

Please sign in to comment.