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
인자는 실제 DOM요소 또는 CSS 선택자일 수 있습니다(첫번째로 일치하는 요소가 사용됨). 루트 컴포넌트 인스턴스를 반환합니다.
73
80
74
81
75
82
Ifthecomponenthasatemplateorarenderfunction defined, it will replace any existing DOM nodes inside the container. Otherwise, if the runtime compiler is available, the `innerHTML` of the container will be used as the template.
83
+
76
84
컴포넌트에 정의된 템플릿 또는 렌더링 기능이 있는 경우 컨테이너 내부의 기존 DOM노드를 대체합니다. 그렇지 않고 런타임 컴파일러를 사용할 수 있는 경우 컨테이너의 `innerHTML`이 템플릿으로 사용됩니다.
Theplugincaneitherbeanobjectwithan`install()`method, oradirectlyafunction (whichitselfwillusedastheinstallmethod). The options (secondargumentof`app.use()`) will be passed along to the plugin's install method.
285
+
266
286
플러그인은 `install()` 메소드가 있는 객체이거나 직접 함수(자체적으로 설치 메소드로 사용됨)일 수 있습니다. 옵션(`app.use()`의 두 번째 인자)은 플러그인의 설치 메소드에 전달됩니다.
브라우저 devtool 성능/타임라인 패널에서 컴포넌트 초기화, 컴파일, 렌더링 및 패치 성능 추적을 사용하려면 이것을 `true`로 설정합니다. 개발 모드 및 [performance.mark](https://developer.mozilla.org/en-US/docs/Web/API/Performance/mark) API를 지원하는 브라우저에서만 작동합니다.
445
477
446
478
-**Type**: `boolean`
@@ -473,16 +505,19 @@ This config option is only respected when using the full build (i.e. the standal
473
505
### app.compilerOptions.isCustomElement
474
506
475
507
Specifies a check method to recognize native custom elements.
508
+
476
509
기본 사용자 정의 요소를 인식하기 위한 검사 방법을 지정합니다.
477
510
478
511
- **Type:** `(tag: string) => boolean`
479
512
480
513
- **Details**
481
514
482
515
Should return `true` if the tag should be treated as a native custom element. For a matched tag, Vue will render it as a native element instead of attempting to resolve it as a Vue component.
516
+
483
517
태그를 기본 맞춤 요소로 처리해야 하는 경우 `true`를 반환해야 합니다. 일치하는 태그의 경우 Vue는 이를 Vue 컴포넌트로 확인하는 대신 기본 요소로 렌더링합니다.
484
518
485
519
Native HTML and SVG tags don't need to be matched in this function - Vue's parser recognizes them automatically.
520
+
486
521
기본 HTML 및 SVG 태그는 이 함수에서 일치시킬 필요가 없습니다. Vue의 파서는 자동으로 태그를 인식합니다.
487
522
488
523
- **Example**
@@ -499,6 +534,7 @@ Specifies a check method to recognize native custom elements.
Vue removes / condenses whitespace characters in templates to produce more efficient compiled output. The default strategy is "condense", with the following behavior:
548
+
512
549
Vue는 템플릿에서 공백 문자를 제거/축소하여 보다 효율적인 컴파일된 출력을 생성합니다. 기본 전략은 다음 동작과 함께 "condense(축소)"입니다:
513
550
514
551
1. Leading / ending whitespace characters inside an element are condensed into a single space.
Adjusts the delimiters used for text interpolation within the template.
574
+
536
575
템플릿 내에서 텍스트 보간에 사용되는 구분 기호를 조정합니다.
537
576
538
577
- **Type:** `[string, string]`
@@ -542,6 +581,7 @@ Adjusts the delimiters used for text interpolation within the template.
542
581
- **Details**
543
582
544
583
This is typically used to avoid conflicting with server-side frameworks that also use mustache syntax.
584
+
545
585
이것은 일반적으로 콧수염(mustache) 구문도 사용하는 서버 측 프레임워크와의 충돌을 피하기 위해 사용됩니다.
546
586
547
587
- **Example**
@@ -554,6 +594,7 @@ Adjusts the delimiters used for text interpolation within the template.
554
594
### app.compilerOptions.comments
555
595
556
596
Adjusts treatment of HTML comments in templates.
597
+
557
598
템플릿에서 HTML 주석 처리를 조정합니다.
558
599
559
600
- **Type:** `boolean`
@@ -563,6 +604,7 @@ Adjusts treatment of HTML comments in templates.
563
604
- **Details**
564
605
565
606
By default, Vue will remove the comments in production. Setting this option to `true` will force Vue to preserve comments even in production. Comments are always preserved during development. This option is typically used when Vue is used with other libraries that rely on HTML comments.
607
+
566
608
기본적으로 Vue는 프로덕션에서 주석을 제거합니다. 이 옵션을 `true`로 설정하면 Vue가 프로덕션에서도 주석을 보존하도록 합니다. 주석은 개발 중에 항상 보존됩니다. 이 옵션은 일반적으로 Vue가 HTML 주석에 의존하는 다른 라이브러리와 함께 사용될 때 사용됩니다.
567
609
568
610
- **Example**
@@ -574,6 +616,7 @@ Adjusts treatment of HTML comments in templates.
574
616
## app.config.globalProperties
575
617
576
618
An object that can be used to register global properties that can be accessed on any component instance inside the application.
619
+
577
620
애플리케이션 내부의 모든 컴포넌트 인스턴스에서 접근할 수 있는 전역 속성을 등록하는 데 사용할 수 있는 객체입니다.
578
621
579
622
@@ -588,9 +631,11 @@ An object that can be used to register global properties that can be accessed on
588
631
- **Details**
589
632
590
633
This is a replacement of Vue 2's `Vue.prototype` which is no longer present in Vue 3. As with anything global, this should be used sparingly.
634
+
591
635
이것은 Vue 3에 더 이상 존재하지 않는 Vue 2의 `Vue.prototype`을 대체합니다. 전반적인 모든 것과 마찬가지로 이것은 드물게 사용해야 합니다.
592
636
593
637
If a global property conflicts with a component’s own property, the component's own property will have higher priority.
638
+
594
639
전역 속성이 컴포넌트 자체 속성과 충돌하는 경우 컴포넌트 자체 속성이 더 높은 우선 순위를 갖습니다.
595
640
596
641
@@ -601,6 +646,7 @@ An object that can be used to register global properties that can be accessed on
601
646
```
602
647
603
648
This makes `msg` available inside any component template in the application, and also on `this` of any component instance:
649
+
604
650
이렇게 하면 애플리케이션의 모든 컴포넌트 템플릿 내에서 `msg`를 사용할 수 있으며 컴포넌트 인스턴스의 `this`에서도 사용할 수 있습니다.
605
651
606
652
```js
@@ -614,6 +660,7 @@ An object that can be used to register global properties that can be accessed on
614
660
## app.config.optionMergeStrategies
615
661
616
662
An object for defining merging strategies for custom component options.
663
+
617
664
사용자 지정 컴포넌트 옵션에 대한 병합 전략을 정의하기 위한 객체입니다.
618
665
619
666
- **Type**
@@ -629,12 +676,15 @@ An object for defining merging strategies for custom component options.
629
676
- **Details**
630
677
631
678
Some plugins / libraries add support for custom component options (by injecting global mixins). These options may require special merging logic when the same option needs to be "merged" from multiple sources (e.g. mixins or component inheritance).
679
+
632
680
일부 플러그인/라이브러리는 사용자 정의 컴포넌트 옵션에 대한 지원을 추가합니다(전역 믹스인 주입). 여러 소스(예: 믹스인 또는 컴포넌트 상속)에서 동일한 옵션을 "병합"해야 하는 경우 이러한 옵션에는 특별한 병합 논리가 필요할 수 있습니다.
633
681
634
682
A merge strategy function can registered for a custom option by assigning it on the `app.config.optionMergeStrategies` object using the option's name as the key.
683
+
635
684
옵션 이름을 키로 사용하여 `app.config.optionMergeStrategies` 객체에 할당하여 맞춤 옵션에 병합 전략 기능을 등록할 수 있습니다.
636
685
637
686
The merge strategy function receives the value of that option defined on the parent and child instances as the first and second arguments, respectively.
687
+
638
688
병합 전략 함수는 부모 및 자식 인스턴스에 정의된 해당 옵션의 값을 각각 첫 번째 및 두 번째 인자로 받습니다.
0 commit comments