You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Import statements in vue follow [ECMAScript module specification](https://nodejs.org/api/esm.html).
487
-
In addition, you can use aliases defined in your build tool configuration:
486
+
Во Vue import statements следуют [спецификации модулей ECMAScript](https://nodejs.org/api/esm.html).
487
+
Кроме того, вы можете использовать алиасы, определённые в конфигурации вашего инструмента сборки.:
488
488
489
489
```vue
490
490
<script setup>
@@ -524,7 +524,7 @@ defineProps<{
524
524
</script>
525
525
```
526
526
527
-
You can use `@vue-generic`the directive to pass in explicit types, for when the type cannot be inferred:
527
+
Вы можете использовать директиву `@vue-generic`для передачи явных типов, когда система не может вывести их автоматически:
528
528
529
529
```vue
530
530
<template>
@@ -536,7 +536,7 @@ You can use `@vue-generic` the directive to pass in explicit types, for when the
536
536
</template>
537
537
```
538
538
539
-
In order to use a reference to a generic component in a `ref` you need to use the [`vue-component-type-helpers`](https://www.npmjs.com/package/vue-component-type-helpers) library as`InstanceType`won't work.
539
+
Чтобы использовать ссылку на generic-компонент в `ref`, необходима библиотека [`vue-component-type-helpers`](https://www.npmjs.com/package/), так как`InstanceType`в этом случае неприменим.
540
540
541
541
```vue
542
542
<script
@@ -548,13 +548,13 @@ import genericComponent from '../generic-component.vue';
548
548
549
549
import type { ComponentExposed } from 'vue-component-type-helpers';
- Из-за разницы в семантике выполнения модулей код внутри `<script setup>` полагается на контекст SFC. Если перенести их во внешние файлы `.js` или `.ts`, это может привести к путанице как для разработчиков, так и для инструментов. Поэтому **`<script setup>`** нельзя использовать с атрибутом `src`.
560
560
-`<script setup>` не поддерживает шаблон корневого компонента In-DOM. ([Связанные обсуждения](https://github.com/vuejs/core/issues/8391))
0 commit comments