From 880070ef1a0260b0fec0756a73924ff0eb3d5e64 Mon Sep 17 00:00:00 2001 From: Artem Date: Tue, 11 Jun 2024 10:51:23 +0300 Subject: [PATCH] =?UTF-8?q?feat(docs):=20=D0=9F=D0=B5=D1=80=D0=B5=D0=B2?= =?UTF-8?q?=D0=B5=D0=B4=D0=B5=D0=BD=20=D1=80=D0=B0=D0=B7=D0=B4=D0=B5=D0=BB?= =?UTF-8?q?=20useHead=20(#86)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/3.api/2.composables/use-head.md | 48 ++++++++++++++-------------- 1 file changed, 24 insertions(+), 24 deletions(-) diff --git a/docs/3.api/2.composables/use-head.md b/docs/3.api/2.composables/use-head.md index 91497eb33d75..6190b3334c5b 100644 --- a/docs/3.api/2.composables/use-head.md +++ b/docs/3.api/2.composables/use-head.md @@ -1,6 +1,6 @@ --- title: useHead -description: useHead customizes the head properties of individual pages of your Nuxt app. +description: useHead настраивает свойства заголовка отдельных страниц вашего приложения Nuxt. links: - label: Исходники icon: i-simple-icons-github @@ -8,7 +8,7 @@ links: size: xs --- -The [`useHead`](/docs/api/composables/use-head) composable function allows you to manage your head tags in a programmatic and reactive way, powered by [Unhead](https://unhead.unjs.io). If the data comes from a user or other untrusted source, we recommend you check out [`useHeadSafe`](/docs/api/composables/use-head-safe). +Композабл [`useHead`](/docs/api/composables/use-head) позволяет управлять тегами head программным и реактивным способом, опираясь на [Unhead](https://unhead.unjs.io). Если данные поступают от пользователя или из другого ненадежного источника, мы рекомендуем ознакомиться с композаблом [`useHeadSafe`](/docs/api/composables/use-head-safe). :read-more{to="/docs/getting-started/seo-meta"} @@ -18,7 +18,7 @@ The [`useHead`](/docs/api/composables/use-head) composable function allows you t useHead(meta: MaybeComputedRef): void ``` -Below are the non-reactive types for [`useHead`](/docs/api/composables/use-head) . +Ниже приведены нереактивные типы для [`useHead`](/docs/api/composables/use-head). ```ts interface MetaObject { @@ -35,35 +35,35 @@ interface MetaObject { } ``` -See [@unhead/schema](https://github.com/unjs/unhead/blob/main/packages/schema/src/schema.ts) for more detailed types. +Более подробную информацию о типах см. в [@unhead/schema](https://github.com/unjs/unhead/blob/main/packages/schema/src/schema.ts). ::note -The properties of `useHead` can be dynamic, accepting `ref`, `computed` and `reactive` properties. `meta` parameter can also accept a function returning an object to make the entire object reactive. +Свойства `useHead` могут быть динамическими, принимая свойства `ref`, `computed` и `reactive`. Параметр `meta` может также принимать функцию, возвращающую объект, чтобы сделать весь объект реактивным. :: ## Параметры ### `meta` -**тип**: `MetaObject` +**Тип**: `MetaObject` -An object accepting the following head metadata: +Объект, принимающий следующие мета-данные head: -- `meta`: Each element in the array is mapped to a newly-created `` tag, where object properties are mapped to the corresponding attributes. - - **тип**: `Array>` -- `link`: Each element in the array is mapped to a newly-created `` tag, where object properties are mapped to the corresponding attributes. - - **тип**: `Array>` -- `style`: Each element in the array is mapped to a newly-created `