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
@@ -19,21 +14,29 @@ A string template for the component.
19
14
20
15
-**세부 사항**:
21
16
22
-
A template provided via the `template` option will be compiled on-the-fly at runtime. It is only supported when using a build of Vue that includes the template compiler. The template compiler is **NOT** included in Vue builds that have the word `runtime` in their names, e.g. `vue.runtime.esm-bundler.js`. Consult the [dist file guide](https://github.com/vuejs/core/tree/main/packages/vue#which-dist-file-to-use) for more details about the different builds.
17
+
`template` 옵션을 통해 제공된 템플릿은 런타임에서 즉시 컴파일되지만,
18
+
템플릿 컴파일러가 포함된 Vue 빌드를 사용할 때만 지원됩니다.
19
+
그러나 이름에 `runtime` 단어가 포함된 `vue.runtime.esm-bundler.js`라는 템플릿 컴파일러는 Vue 빌드에 포함되어있지 않습니다.
20
+
다른 빌드의 자세한 내용은 [dist 파일 가이드](https://github.com/vuejs/core/tree/main/packages/vue#which-dist-file-to-use)를 참고하세요.
23
21
24
-
If the string starts with `#` it will be used as a `querySelector` and use the selected element's `innerHTML` as the template string. This allows the source template to be authored using native `<template>` elements.
22
+
문자열이 `#`로 시작하면 `querySelector`로 사용되고,
23
+
선택한 엘리먼트의 `innerHTML`을 템플릿 문자열로 사용합니다.
24
+
이를 통해 네이티브 `<template>` 엘리먼트를 사용하여 소스 템플릿을 작성할 수 있습니다.
25
25
26
-
If the`render`option is also present in the same component, `template` will be ignored.
26
+
동일한 컴포넌트에`render`옵션도 있는 경우, `template`은 무시됩니다.
27
27
28
-
If the root component of your application doesn't have a `template` or `render` option specified, Vue will try to use the `innerHTML` of the mounted element as the template instead.
28
+
앱의 루트 컴포넌트에 `template` 또는 `render` 옵션이 지정되지 않은 경우,
29
+
Vue는 마운트된 엘리먼트의 `innerHTML`을 템플릿으로 사용하려고 시도합니다.
29
30
30
-
:::warning Security Note
31
-
Only use template sources that you can trust. Do not use user-provided content as your template. See [Security Guide](/guide/best-practices/security.html#rule-no-1-never-use-non-trusted-templates) for more details.
31
+
:::warning 보안 참고 사항
32
+
신뢰할 수 있는 템플릿 소스만 사용해야 합니다.
33
+
사용자가 제공한 콘텐츠를 템플릿으로 사용하면 안됩니다.
34
+
자세한 내용은 [가이드 - 보안](/guide/best-practices/security.html#rule-no-1-never-use-non-trusted-templates) 참고.
32
35
:::
33
36
34
37
## render
35
38
36
-
A function that programmatically returns the virtual DOM tree of the component.
39
+
컴포넌트의 가상 DOM 트리를 프로그래밍 방식으로 반환하는 함수입니다.
37
40
38
41
-**타입**:
39
42
@@ -58,33 +61,40 @@ A function that programmatically returns the virtual DOM tree of the component.
58
61
59
62
- **세부 사항**:
60
63
61
-
`render` is an alternative to string templates that allows you to leverage the full programmatic power of JavaScript to declare the render output of the component.
64
+
`render`는 문자열 템플릿의 대안으로,
65
+
템플릿 전체를 JavaScript 프로그래밍 능력을 활용하여,
66
+
컴포넌트의 렌더링 출력을 선언할 수 있습니다.
62
67
63
-
Pre-compiled templates, for example those in Single-File Components, are compiled into the `render` option at build time. If both `render` and `template` are present in a component, `render` will take higher priority.
This config option is only respected when using the full build (i.e. the standalone `vue.js` that can compile templates in the browser). It supports the same options as the app-level [app.config.compilerOptions](/api/application.html#app-config-compileroptions), and has higher priority for the current component.
96
+
이 환경설정(config) 옵션은 전체 빌드(예: 브라우저에서 템플릿을 컴파일할 수 있는 독립 실행형 `vue.js`)를 사용할 때만 적용됩니다.
97
+
앱 레벨의 [app.config.compilerOptions](/api/application.html#app-config-compileroptions)와 동일한 옵션을 지원하며,
0 commit comments