Upload original JAVA语言程序设计 course files (part 17)
Browse filesThis view is limited to 50 files because it contains too many changes. See raw diff
- Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/@vue/language-service/LICENSE +21 -3
- Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/@vue/language-service/data/template/ko.json +1498 -3
- Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/@vue/language-service/data/template/pt.json +1498 -3
- Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/@vue/language-service/data/template/ru.json +0 -0
- Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/@vue/language-service/data/template/zh-cn.json +1498 -3
- Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/@vue/language-service/index.d.ts +8 -3
- Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/@vue/language-service/index.js +134 -3
- Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/@vue/language-service/lib/ideFeatures/nameCasing.d.ts +13 -3
- Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/@vue/language-service/lib/ideFeatures/nameCasing.js +205 -3
- Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/@vue/language-service/lib/plugins/css.d.ts +2 -3
- Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/@vue/language-service/lib/plugins/css.js +27 -3
- Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/@vue/language-service/lib/plugins/data.d.ts +4 -3
- Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/@vue/language-service/lib/plugins/data.js +112 -3
- Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/@vue/language-service/lib/plugins/vue-autoinsert-dotvalue.d.ts +10 -3
- Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/@vue/language-service/lib/plugins/vue-autoinsert-dotvalue.js +182 -3
- Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/@vue/language-service/lib/plugins/vue-autoinsert-parentheses.d.ts +2 -3
- Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/@vue/language-service/lib/plugins/vue-autoinsert-parentheses.js +69 -3
- Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/@vue/language-service/lib/plugins/vue-autoinsert-space.d.ts +2 -3
- Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/@vue/language-service/lib/plugins/vue-autoinsert-space.js +27 -3
- Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/@vue/language-service/lib/plugins/vue-directive-comments.d.ts +2 -3
- Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/@vue/language-service/lib/plugins/vue-directive-comments.js +62 -3
- Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/@vue/language-service/lib/plugins/vue-document-drop.d.ts +3 -3
- Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/@vue/language-service/lib/plugins/vue-document-drop.js +104 -3
- Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/@vue/language-service/lib/plugins/vue-document-links.d.ts +2 -3
- Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/@vue/language-service/lib/plugins/vue-document-links.js +66 -3
- Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/@vue/language-service/lib/plugins/vue-extract-file.d.ts +8 -3
- Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/@vue/language-service/lib/plugins/vue-extract-file.js +271 -3
- Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/@vue/language-service/lib/plugins/vue-sfc.d.ts +7 -3
- Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/@vue/language-service/lib/plugins/vue-sfc.js +169 -3
- Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/@vue/language-service/lib/plugins/vue-template.d.ts +3 -3
- Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/@vue/language-service/lib/plugins/vue-template.js +691 -3
- Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/@vue/language-service/lib/plugins/vue-toggle-v-bind-codeaction.d.ts +2 -3
- Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/@vue/language-service/lib/plugins/vue-toggle-v-bind-codeaction.js +129 -3
- Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/@vue/language-service/lib/plugins/vue-twoslash-queries.d.ts +2 -3
- Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/@vue/language-service/lib/plugins/vue-twoslash-queries.js +53 -3
- Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/@vue/language-service/lib/plugins/vue-visualize-hidden-callback-param.d.ts +2 -3
- Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/@vue/language-service/lib/plugins/vue-visualize-hidden-callback-param.js +48 -3
- Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/@vue/language-service/lib/types.d.ts +10 -3
- Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/@vue/language-service/lib/types.js +31 -3
- Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/@vue/language-service/node_modules/@vscode/l10n/README.md +42 -3
- Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/@vue/language-service/node_modules/@vscode/l10n/dist/browser.js +103 -3
- Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/@vue/language-service/node_modules/@vscode/l10n/dist/main.d.ts +130 -3
- Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/@vue/language-service/node_modules/@vscode/l10n/dist/main.js +151 -3
- Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/@vue/language-service/node_modules/@vscode/l10n/dist/tsdoc-metadata.json +11 -3
- Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/@vue/language-service/node_modules/@vscode/l10n/package.json +50 -3
- Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/@vue/language-service/node_modules/vscode-html-languageservice/CHANGELOG.md +78 -3
- Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/@vue/language-service/node_modules/vscode-html-languageservice/LICENSE.md +21 -3
- Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/@vue/language-service/node_modules/vscode-html-languageservice/README.md +69 -3
- Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/@vue/language-service/node_modules/vscode-html-languageservice/SECURITY.md +41 -3
- Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/@vue/language-service/node_modules/vscode-html-languageservice/docs/customData.md +107 -3
Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/@vue/language-service/LICENSE
CHANGED
|
@@ -1,3 +1,21 @@
|
|
| 1 |
-
|
| 2 |
-
|
| 3 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
MIT License
|
| 2 |
+
|
| 3 |
+
Copyright (c) 2021-present Johnson Chu
|
| 4 |
+
|
| 5 |
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
| 6 |
+
of this software and associated documentation files (the "Software"), to deal
|
| 7 |
+
in the Software without restriction, including without limitation the rights
|
| 8 |
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
| 9 |
+
copies of the Software, and to permit persons to whom the Software is
|
| 10 |
+
furnished to do so, subject to the following conditions:
|
| 11 |
+
|
| 12 |
+
The above copyright notice and this permission notice shall be included in all
|
| 13 |
+
copies or substantial portions of the Software.
|
| 14 |
+
|
| 15 |
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
| 16 |
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
| 17 |
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
| 18 |
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
| 19 |
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
| 20 |
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
| 21 |
+
SOFTWARE.
|
Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/@vue/language-service/data/template/ko.json
CHANGED
|
@@ -1,3 +1,1498 @@
|
|
| 1 |
-
|
| 2 |
-
|
| 3 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"version": 1.1,
|
| 3 |
+
"tags": [
|
| 4 |
+
{
|
| 5 |
+
"name": "Transition",
|
| 6 |
+
"description": {
|
| 7 |
+
"kind": "markdown",
|
| 8 |
+
"value": "\n**싱글** 엘리먼트 또는 컴포넌트에 애니메이션 트랜지션 효과를 제공합니다.\n\n- **Props**\n\n ```ts\n interface TransitionProps {\n /**\n * 트랜지션 CSS 클래스 이름 자동 생성에 사용.\n * 예를 들어 `name: 'fade'`는 `.fade-enter`,\n * `.fade-enter-active` 등으로 자동 확장됨.\n */\n name?: string\n /**\n * CSS 트랜지션 클래스를 적용할지 여부입니다.\n * 기본 값: true\n */\n css?: boolean\n /**\n * 트랜지션 종료 타이밍을 결정하기 위해,\n * 대기할 트랜지션 이벤트의 유형을 지정.\n * 기본 동작은 지속 시간이 더 긴 유형을\n * 자동으로 감지.\n */\n type?: 'transition' | 'animation'\n /**\n * 명시적으로 트랜지션의 지속 시간을 지정.\n * 기본 동작은 루트 트랜지션 엘리먼트의 첫 번째\n * `transitionend` 또는 `animationend` 이벤트를 기다리는 것.\n */\n duration?: number | { enter: number; leave: number }\n /**\n * 진입/진출 트랜지션의 타이밍 순서를 제어.\n * 기본 동작은 동시.\n */\n mode?: 'in-out' | 'out-in' | 'default'\n /**\n * 최초 렌더링에 트랜지션을 적용할지 여부.\n * 기본 값: false\n */\n appear?: boolean\n\n /**\n * 트랜지션 클래스를 커스텀하기 위한 props.\n * 템플릿에서 kebab-case를 사용해야 함. 예: enter-from-class=\"xxx\"\n */\n enterFromClass?: string\n enterActiveClass?: string\n enterToClass?: string\n appearFromClass?: string\n appearActiveClass?: string\n appearToClass?: string\n leaveFromClass?: string\n leaveActiveClass?: string\n leaveToClass?: string\n }\n ```\n\n- **이벤트**:\n\n - `@before-enter`\n - `@before-leave`\n - `@enter`\n - `@leave`\n - `@appear`\n - `@after-enter`\n - `@after-leave`\n - `@after-appear`\n - `@enter-cancelled`\n - `@leave-cancelled` (`v-show`에서만)\n - `@appear-cancelled`\n\n- **예제**\n\n 간단한 엘리먼트:\n\n ```html\n <Transition>\n <div v-if=\"ok\">토글된 컨텐츠</div>\n </Transition>\n ```\n\n `key` 속성을 변경하여 강제로 트랜지션(전환):\n\n ```html\n <Transition>\n <div :key=\"text\">{{ text }}</div>\n </Transition>\n ```\n \n 트랜지션 모드 + 등장 애니메이션을 가진 동적 컴포넌트:\n\n ```html\n <Transition name=\"fade\" mode=\"out-in\" appear>\n <component :is=\"view\"></component>\n </Transition>\n ```\n\n 트랜지션 이벤트 수신:\n\n ```html\n <Transition @after-enter=\"onTransitionComplete\">\n <div v-show=\"ok\">토글된 컨텐츠</div>\n </Transition>\n ```\n\n- **참고** [가이드 - Transition](https://ko.vuejs.org/guide/built-ins/transition.html)\n"
|
| 9 |
+
},
|
| 10 |
+
"attributes": [],
|
| 11 |
+
"references": [
|
| 12 |
+
{
|
| 13 |
+
"name": "en",
|
| 14 |
+
"url": "https://vuejs.org/api/built-in-components.html#transition"
|
| 15 |
+
},
|
| 16 |
+
{
|
| 17 |
+
"name": "zh-cn",
|
| 18 |
+
"url": "https://cn.vuejs.org/api/built-in-components.html#transition"
|
| 19 |
+
},
|
| 20 |
+
{
|
| 21 |
+
"name": "ja",
|
| 22 |
+
"url": "https://ja.vuejs.org/api/built-in-components.html#transition"
|
| 23 |
+
},
|
| 24 |
+
{
|
| 25 |
+
"name": "ua",
|
| 26 |
+
"url": "https://ua.vuejs.org/api/built-in-components.html#transition"
|
| 27 |
+
},
|
| 28 |
+
{
|
| 29 |
+
"name": "fr",
|
| 30 |
+
"url": "https://fr.vuejs.org/api/built-in-components.html#transition"
|
| 31 |
+
},
|
| 32 |
+
{
|
| 33 |
+
"name": "ko",
|
| 34 |
+
"url": "https://ko.vuejs.org/api/built-in-components.html#transition"
|
| 35 |
+
},
|
| 36 |
+
{
|
| 37 |
+
"name": "pt",
|
| 38 |
+
"url": "https://pt.vuejs.org/api/built-in-components.html#transition"
|
| 39 |
+
},
|
| 40 |
+
{
|
| 41 |
+
"name": "bn",
|
| 42 |
+
"url": "https://bn.vuejs.org/api/built-in-components.html#transition"
|
| 43 |
+
},
|
| 44 |
+
{
|
| 45 |
+
"name": "it",
|
| 46 |
+
"url": "https://it.vuejs.org/api/built-in-components.html#transition"
|
| 47 |
+
},
|
| 48 |
+
{
|
| 49 |
+
"name": "cs",
|
| 50 |
+
"url": "https://cs.vuejs.org/api/built-in-components.html#transition"
|
| 51 |
+
},
|
| 52 |
+
{
|
| 53 |
+
"name": "ru",
|
| 54 |
+
"url": "https://ru.vuejs.org/api/built-in-components.html#transition"
|
| 55 |
+
},
|
| 56 |
+
{
|
| 57 |
+
"name": "fa",
|
| 58 |
+
"url": "https://fa.vuejs.org/api/built-in-components.html#transition"
|
| 59 |
+
}
|
| 60 |
+
]
|
| 61 |
+
},
|
| 62 |
+
{
|
| 63 |
+
"name": "TransitionGroup",
|
| 64 |
+
"description": {
|
| 65 |
+
"kind": "markdown",
|
| 66 |
+
"value": "\n리스트의 **여러** 엘리먼트 또는 컴포넌트에 트랜지션 효과를 제공합니다.\n\n- **Props**\n\n `<TransitionGroup>`은 `<Transition>`과 동일한 props에서 `mode`를 제외하고 두 개의 추가 props를 허용합니다:\n\n ```ts\n interface TransitionGroupProps extends Omit<TransitionProps, 'mode'> {\n /**\n * 정의하지 않으면, 렌더는 프래그먼트처럼 취급함.\n */\n tag?: string\n /**\n * 이동 전환 중에 적용되는 CSS 클래스를 사용자 정의합니다.\n * 템플릿에서 kebab-case를 사용해야 함. 예: move-class=\"xxx\"\n */\n moveClass?: string\n }\n ```\n\n- **이벤트**:\n\n `<TransitionGroup>`은 `<Transition>`과 동일한 이벤트를 발생시킵니다.\n\n- **세부 사항**:\n\n 기본적으로 `<TransitionGroup>`은 래퍼 DOM 엘리먼트를 렌더링하지 않지만 `tag` prop을 통해 정의할 수 있습니다.\n\n 애니메이션이 제대로 작동하려면 `<transition-group>`의 모든 자식이 [**고유 키**](https://ko.vuejs.org/guide/essentials/list.html#maintaining-state-with-key)를 가져야 합니다.\n\n `<TransitionGroup>`은 CSS `transform`으로 이동 트랜지션을 지원합니다. 업데이트 후 화면에서 자식의 위치가 변경되면, 움직이는 CSS 클래스가 적용됩니다(`name` 속성에서 자동 생성되거나 `move-class` prop으로 구성됨). 이동 클래스가 적용될 때 CSS의 `transform` 속성이 \"트랜지션 가능\"이면, [FLIP 기술](https://aerotwist.com/blog/flip-your-animations/)을 사용하여 엘리먼트가 목적지까지 부드럽게 애니메이션됩니다.\n\n- **예제**\n\n ```html\n <TransitionGroup tag=\"ul\" name=\"slide\">\n <li v-for=\"item in items\" :key=\"item.id\">\n {{ item.text }}\n </li>\n </TransitionGroup>\n ```\n\n- **참고** [가이드 - TransitionGroup](https://ko.vuejs.org/guide/built-ins/transition-group.html)\n"
|
| 67 |
+
},
|
| 68 |
+
"attributes": [],
|
| 69 |
+
"references": [
|
| 70 |
+
{
|
| 71 |
+
"name": "en",
|
| 72 |
+
"url": "https://vuejs.org/api/built-in-components.html#transitiongroup"
|
| 73 |
+
},
|
| 74 |
+
{
|
| 75 |
+
"name": "zh-cn",
|
| 76 |
+
"url": "https://cn.vuejs.org/api/built-in-components.html#transitiongroup"
|
| 77 |
+
},
|
| 78 |
+
{
|
| 79 |
+
"name": "ja",
|
| 80 |
+
"url": "https://ja.vuejs.org/api/built-in-components.html#transitiongroup"
|
| 81 |
+
},
|
| 82 |
+
{
|
| 83 |
+
"name": "ua",
|
| 84 |
+
"url": "https://ua.vuejs.org/api/built-in-components.html#transitiongroup"
|
| 85 |
+
},
|
| 86 |
+
{
|
| 87 |
+
"name": "fr",
|
| 88 |
+
"url": "https://fr.vuejs.org/api/built-in-components.html#transitiongroup"
|
| 89 |
+
},
|
| 90 |
+
{
|
| 91 |
+
"name": "ko",
|
| 92 |
+
"url": "https://ko.vuejs.org/api/built-in-components.html#transitiongroup"
|
| 93 |
+
},
|
| 94 |
+
{
|
| 95 |
+
"name": "pt",
|
| 96 |
+
"url": "https://pt.vuejs.org/api/built-in-components.html#transitiongroup"
|
| 97 |
+
},
|
| 98 |
+
{
|
| 99 |
+
"name": "bn",
|
| 100 |
+
"url": "https://bn.vuejs.org/api/built-in-components.html#transitiongroup"
|
| 101 |
+
},
|
| 102 |
+
{
|
| 103 |
+
"name": "it",
|
| 104 |
+
"url": "https://it.vuejs.org/api/built-in-components.html#transitiongroup"
|
| 105 |
+
},
|
| 106 |
+
{
|
| 107 |
+
"name": "cs",
|
| 108 |
+
"url": "https://cs.vuejs.org/api/built-in-components.html#transitiongroup"
|
| 109 |
+
},
|
| 110 |
+
{
|
| 111 |
+
"name": "ru",
|
| 112 |
+
"url": "https://ru.vuejs.org/api/built-in-components.html#transitiongroup"
|
| 113 |
+
},
|
| 114 |
+
{
|
| 115 |
+
"name": "fa",
|
| 116 |
+
"url": "https://fa.vuejs.org/api/built-in-components.html#transitiongroup"
|
| 117 |
+
}
|
| 118 |
+
]
|
| 119 |
+
},
|
| 120 |
+
{
|
| 121 |
+
"name": "KeepAlive",
|
| 122 |
+
"description": {
|
| 123 |
+
"kind": "markdown",
|
| 124 |
+
"value": "\n내부에 래핑된 동적으로 토글되는 컴포넌트를 캐시합니다.\n\n- **Props**\n\n ```ts\n interface KeepAliveProps {\n /**\n * `include`와 이름이 일치하는\n * 컴포넌트만 캐시됨.\n */\n include?: MatchPattern\n /**\n * `exclude`와 이름이 일치하는\n * 컴포넌트는 캐시되지 않음.\n */\n exclude?: MatchPattern\n /**\n * 캐시할 컴포넌트 인스턴스의 최대 수.\n */\n max?: number | string\n }\n\n type MatchPattern = string | RegExp | (string | RegExp)[]\n ```\n\n- **세부 사항**:\n\n `<KeepAlive>`로 래핑된 동적 컴포넌트는 비활성화 되면, 컴포넌트 인스턴스가 파괴되지 않고 캐시됩니다.\n\n `<KeepAlive>`에는 언제나 활성화된 직계 자식의 컴포넌트 인스턴스가 하나만 있을 수 있습니다.\n\n 컴포넌트가 `<KeepAlive>` 내에서 토글되면, `mounted` 및 `unmounted` 대신 `activated` 및 `deactivated` 생명 주기 훅이 호출됩니다. 이는 `<KeepAlive>`의 직계 자식과 모든 하위 항목에 적용됩니다.\n\n- **예제**\n\n 기본 사용법:\n\n ```html\n <KeepAlive>\n <component :is=\"view\"></component>\n </KeepAlive>\n ```\n\n `v-if` / `v-else`를 사용할 때, 한 번에 하나의 컴포넌트만 렌더링되어야 합니다:\n\n ```html\n <KeepAlive>\n <comp-a v-if=\"a > 1\"></comp-a>\n <comp-b v-else></comp-b>\n </KeepAlive>\n ```\n\n `<Transition>`과 함께 사용:\n\n ```html\n <Transition>\n <KeepAlive>\n <component :is=\"view\"></component>\n </KeepAlive>\n </Transition>\n ```\n\n `include` / `exclude` 사용:\n\n ```html\n <!-- 쉼표로 구분된 문자열 -->\n <KeepAlive include=\"a,b\">\n <component :is=\"view\"></component>\n </KeepAlive>\n\n <!-- 정규식 사용(`v-bind` 포함) -->\n <KeepAlive :include=\"/a|b/\">\n <component :is=\"view\"></component>\n </KeepAlive>\n\n <!-- 배열 사용(`v-bind` 포함) -->\n <KeepAlive :include=\"['a', 'b']\">\n <component :is=\"view\"></component>\n </KeepAlive>\n ```\n\n `max`를 활용한 사용:\n\n ```html\n <KeepAlive :max=\"10\">\n <component :is=\"view\"></component>\n </KeepAlive>\n ```\n\n- **참고** [가이드 - KeepAlive](https://ko.vuejs.org/guide/built-ins/keep-alive.html)\n"
|
| 125 |
+
},
|
| 126 |
+
"attributes": [],
|
| 127 |
+
"references": [
|
| 128 |
+
{
|
| 129 |
+
"name": "en",
|
| 130 |
+
"url": "https://vuejs.org/api/built-in-components.html#keepalive"
|
| 131 |
+
},
|
| 132 |
+
{
|
| 133 |
+
"name": "zh-cn",
|
| 134 |
+
"url": "https://cn.vuejs.org/api/built-in-components.html#keepalive"
|
| 135 |
+
},
|
| 136 |
+
{
|
| 137 |
+
"name": "ja",
|
| 138 |
+
"url": "https://ja.vuejs.org/api/built-in-components.html#keepalive"
|
| 139 |
+
},
|
| 140 |
+
{
|
| 141 |
+
"name": "ua",
|
| 142 |
+
"url": "https://ua.vuejs.org/api/built-in-components.html#keepalive"
|
| 143 |
+
},
|
| 144 |
+
{
|
| 145 |
+
"name": "fr",
|
| 146 |
+
"url": "https://fr.vuejs.org/api/built-in-components.html#keepalive"
|
| 147 |
+
},
|
| 148 |
+
{
|
| 149 |
+
"name": "ko",
|
| 150 |
+
"url": "https://ko.vuejs.org/api/built-in-components.html#keepalive"
|
| 151 |
+
},
|
| 152 |
+
{
|
| 153 |
+
"name": "pt",
|
| 154 |
+
"url": "https://pt.vuejs.org/api/built-in-components.html#keepalive"
|
| 155 |
+
},
|
| 156 |
+
{
|
| 157 |
+
"name": "bn",
|
| 158 |
+
"url": "https://bn.vuejs.org/api/built-in-components.html#keepalive"
|
| 159 |
+
},
|
| 160 |
+
{
|
| 161 |
+
"name": "it",
|
| 162 |
+
"url": "https://it.vuejs.org/api/built-in-components.html#keepalive"
|
| 163 |
+
},
|
| 164 |
+
{
|
| 165 |
+
"name": "cs",
|
| 166 |
+
"url": "https://cs.vuejs.org/api/built-in-components.html#keepalive"
|
| 167 |
+
},
|
| 168 |
+
{
|
| 169 |
+
"name": "ru",
|
| 170 |
+
"url": "https://ru.vuejs.org/api/built-in-components.html#keepalive"
|
| 171 |
+
},
|
| 172 |
+
{
|
| 173 |
+
"name": "fa",
|
| 174 |
+
"url": "https://fa.vuejs.org/api/built-in-components.html#keepalive"
|
| 175 |
+
}
|
| 176 |
+
]
|
| 177 |
+
},
|
| 178 |
+
{
|
| 179 |
+
"name": "Teleport",
|
| 180 |
+
"description": {
|
| 181 |
+
"kind": "markdown",
|
| 182 |
+
"value": "\n슬롯 컨텐츠를 DOM 내 다른 위치에서 렌더링합니다.\n\n- **Props**\n\n ```ts\n interface TeleportProps {\n /**\n * 필수. 대상이 될 컨테이너를 지정.\n * 셀렉터 또는 실제 엘리먼트일 수 있음.\n */\n to: string | HTMLElement\n /**\n * `true`이면 컨텐츠가 대상이 될 컨테이너로\n * 이동하지 않고 원래 위치에 남아 있음.\n * 동적으로 변경할 수 있음.\n */\n disabled?: boolean\n }\n ```\n\n- **예제**\n\n 대상이 될 컨테이너 지정:\n\n ```html\n <Teleport to=\"#some-id\" />\n <Teleport to=\".some-class\" />\n <Teleport to=\"[data-teleport]\" />\n ```\n\n 조건부 비활성화:\n\n ```html\n <Teleport to=\"#popup\" :disabled=\"displayVideoInline\">\n <video src=\"./my-movie.mp4\">\n </Teleport>\n ```\n\n- **참고** [가이드 - Teleport](https://ko.vuejs.org/guide/built-ins/teleport.html)\n"
|
| 183 |
+
},
|
| 184 |
+
"attributes": [],
|
| 185 |
+
"references": [
|
| 186 |
+
{
|
| 187 |
+
"name": "en",
|
| 188 |
+
"url": "https://vuejs.org/api/built-in-components.html#teleport"
|
| 189 |
+
},
|
| 190 |
+
{
|
| 191 |
+
"name": "zh-cn",
|
| 192 |
+
"url": "https://cn.vuejs.org/api/built-in-components.html#teleport"
|
| 193 |
+
},
|
| 194 |
+
{
|
| 195 |
+
"name": "ja",
|
| 196 |
+
"url": "https://ja.vuejs.org/api/built-in-components.html#teleport"
|
| 197 |
+
},
|
| 198 |
+
{
|
| 199 |
+
"name": "ua",
|
| 200 |
+
"url": "https://ua.vuejs.org/api/built-in-components.html#teleport"
|
| 201 |
+
},
|
| 202 |
+
{
|
| 203 |
+
"name": "fr",
|
| 204 |
+
"url": "https://fr.vuejs.org/api/built-in-components.html#teleport"
|
| 205 |
+
},
|
| 206 |
+
{
|
| 207 |
+
"name": "ko",
|
| 208 |
+
"url": "https://ko.vuejs.org/api/built-in-components.html#teleport"
|
| 209 |
+
},
|
| 210 |
+
{
|
| 211 |
+
"name": "pt",
|
| 212 |
+
"url": "https://pt.vuejs.org/api/built-in-components.html#teleport"
|
| 213 |
+
},
|
| 214 |
+
{
|
| 215 |
+
"name": "bn",
|
| 216 |
+
"url": "https://bn.vuejs.org/api/built-in-components.html#teleport"
|
| 217 |
+
},
|
| 218 |
+
{
|
| 219 |
+
"name": "it",
|
| 220 |
+
"url": "https://it.vuejs.org/api/built-in-components.html#teleport"
|
| 221 |
+
},
|
| 222 |
+
{
|
| 223 |
+
"name": "cs",
|
| 224 |
+
"url": "https://cs.vuejs.org/api/built-in-components.html#teleport"
|
| 225 |
+
},
|
| 226 |
+
{
|
| 227 |
+
"name": "ru",
|
| 228 |
+
"url": "https://ru.vuejs.org/api/built-in-components.html#teleport"
|
| 229 |
+
},
|
| 230 |
+
{
|
| 231 |
+
"name": "fa",
|
| 232 |
+
"url": "https://fa.vuejs.org/api/built-in-components.html#teleport"
|
| 233 |
+
}
|
| 234 |
+
]
|
| 235 |
+
},
|
| 236 |
+
{
|
| 237 |
+
"name": "Suspense",
|
| 238 |
+
"description": {
|
| 239 |
+
"kind": "markdown",
|
| 240 |
+
"value": "\n컴포넌트 트리에서 중첩된 비동기 의존성을 조정하는 데 사용됩니다.\n\n- **Props**\n\n ```ts\n interface SuspenseProps {\n timeout?: string | number\n suspensible?: boolean\n }\n ```\n\n- **이벤트**:\n\n - `@resolve`\n - `@pending`\n - `@fallback`\n\n- **세부 사항**:\n\n `<Suspense>`는 `#default` 슬롯과 `#fallback` 슬롯이라는 두 개의 슬롯을 사용합니다. 메모리에서 기본 슬롯을 렌더링하는 동안, 폴백 슬롯의 대체 컨텐츠를 노출합니다.\n\n 기본 슬롯을 렌더링하는 동안 비동기 의존성([비동기 컴포넌트](https://ko.vuejs.org/guide/components/async.html) 및 [`async setup()`](https://ko.vuejs.org/guide/built-ins/suspense.html#async-setup)이 있는 컴포넌트)을 만나면, 기본 슬롯을 표시하기 전에 모든 것이 해결될 때까지 대기합니다.\n\n Suspense를 `suspensible`로 설정함으로써 모든 비동기 의존성 처리는 부모 Suspense에 의해 처리될 것입니다.\n [구현 세부 사항](https://github.com/vuejs/core/pull/6736)을 참조하세요.\n\n- **참고** [가이드 - Suspense](https://ko.vuejs.org/guide/built-ins/suspense.html)\n"
|
| 241 |
+
},
|
| 242 |
+
"attributes": [],
|
| 243 |
+
"references": [
|
| 244 |
+
{
|
| 245 |
+
"name": "en",
|
| 246 |
+
"url": "https://vuejs.org/api/built-in-components.html#suspense"
|
| 247 |
+
},
|
| 248 |
+
{
|
| 249 |
+
"name": "zh-cn",
|
| 250 |
+
"url": "https://cn.vuejs.org/api/built-in-components.html#suspense"
|
| 251 |
+
},
|
| 252 |
+
{
|
| 253 |
+
"name": "ja",
|
| 254 |
+
"url": "https://ja.vuejs.org/api/built-in-components.html#suspense"
|
| 255 |
+
},
|
| 256 |
+
{
|
| 257 |
+
"name": "ua",
|
| 258 |
+
"url": "https://ua.vuejs.org/api/built-in-components.html#suspense"
|
| 259 |
+
},
|
| 260 |
+
{
|
| 261 |
+
"name": "fr",
|
| 262 |
+
"url": "https://fr.vuejs.org/api/built-in-components.html#suspense"
|
| 263 |
+
},
|
| 264 |
+
{
|
| 265 |
+
"name": "ko",
|
| 266 |
+
"url": "https://ko.vuejs.org/api/built-in-components.html#suspense"
|
| 267 |
+
},
|
| 268 |
+
{
|
| 269 |
+
"name": "pt",
|
| 270 |
+
"url": "https://pt.vuejs.org/api/built-in-components.html#suspense"
|
| 271 |
+
},
|
| 272 |
+
{
|
| 273 |
+
"name": "bn",
|
| 274 |
+
"url": "https://bn.vuejs.org/api/built-in-components.html#suspense"
|
| 275 |
+
},
|
| 276 |
+
{
|
| 277 |
+
"name": "it",
|
| 278 |
+
"url": "https://it.vuejs.org/api/built-in-components.html#suspense"
|
| 279 |
+
},
|
| 280 |
+
{
|
| 281 |
+
"name": "cs",
|
| 282 |
+
"url": "https://cs.vuejs.org/api/built-in-components.html#suspense"
|
| 283 |
+
},
|
| 284 |
+
{
|
| 285 |
+
"name": "ru",
|
| 286 |
+
"url": "https://ru.vuejs.org/api/built-in-components.html#suspense"
|
| 287 |
+
},
|
| 288 |
+
{
|
| 289 |
+
"name": "fa",
|
| 290 |
+
"url": "https://fa.vuejs.org/api/built-in-components.html#suspense"
|
| 291 |
+
}
|
| 292 |
+
]
|
| 293 |
+
},
|
| 294 |
+
{
|
| 295 |
+
"name": "component",
|
| 296 |
+
"description": {
|
| 297 |
+
"kind": "markdown",
|
| 298 |
+
"value": "\n동적 컴포넌트 또는 엘리먼트를 렌더링하기 위한 \"메타 컴포넌트\"입니다.\n\n- **Props**\n\n ```ts\n interface DynamicComponentProps {\n is: string | Component\n }\n ```\n\n- **세부 사항**:\n\n `is`라는 prop의 값으로 렌더링할 실제 컴포넌트가 결정됩니다:\n\n - 문자열인 경우, HTML 태그 이름 또는 컴포넌트로 등록된 이름일 수 있음.\n\n - 컴포넌트의 정의에 직접 바인딩될 수도 있음.\n\n- **예제**\n\n 등록된 이름으로 컴포넌트 렌더링(옵션 API):\n\n ```vue\n <script>\n import Foo from './Foo.vue'\n import Bar from './Bar.vue'\n\n export default {\n components: { Foo, Bar },\n data() {\n return {\n view: 'Foo'\n }\n }\n }\n </script>\n\n <template>\n <component :is=\"view\" />\n </template>\n ```\n\n 정의에 따른 컴포넌트 렌더링(`<script setup>`이 있는 컴포지션 API):\n\n ```vue\n <script setup>\n import Foo from './Foo.vue'\n import Bar from './Bar.vue'\n </script>\n\n <template>\n <component :is=\"Math.random() > 0.5 ? Foo : Bar\" />\n </template>\n ```\n\n HTML 엘리먼트 렌더링:\n\n ```html\n <component :is=\"href ? 'a' : 'span'\"></component>\n ```\n\n [빌트인 컴포넌트](./built-in-components)는 모두 `is`에 전달할 수 있지만,\n 이름으로 전달하려면 등록해야 합니다.\n 예를 들어:\n\n ```vue\n <script>\n import { Transition, TransitionGroup } from 'vue'\n\n export default {\n components: {\n Transition,\n TransitionGroup\n }\n }\n </script>\n\n <template>\n <component :is=\"isGroup ? 'TransitionGroup' : 'Transition'\">\n ...\n </component>\n </template>\n ```\n\n 이름이 아닌 컴포넌트 자체를 `is`에 전달하는 경우,\n 등록이 필요하지 않습니다(예를 들어 `<script setup>`에서).\n\n `v-model`이 `<component>` 태그에 사용되면, 템플릿 컴파일러는 다른 컴포넌트와 마찬가지로 이를 `modelValue` prop 및 `update:modelValue` 이벤트 리스너로 확장합니다.\n 그러나 이것은 `<input>` 또는 `<select>`와 같은 기본 HTML 엘리먼트와 호환되지 않습니다.\n 결과적으로 동적으로 생성된 기본 엘리먼트와 함께 `v-model`을 사용하면 작동하지 않습니다:\n\n ```vue\n <script setup>\n import { ref } from 'vue'\n \n const tag = ref('input')\n const username = ref('')\n </script>\n\n <template>\n <!-- 'input'이 기본 HTML 엘리먼트이므로 작동하지 않음 -->\n <component :is=\"tag\" v-model=\"username\" />\n </template>\n ```\n\n 실제로는 기본 양식(form) 필드가 일반적으로 실제 앱의 컴포넌트에 래핑되기 때문에 이러한 예외적인 경우는 일반적이지 않습니다.\n 네이티브 엘리먼트를 직접 사용해야 하는 경우, `v-model`을 속성과 이벤트로 수동으로 분할할 수 있습니다.\n\n- **참고**: [가이드 - 컴포넌트 기초: 동적 컴포넌트](https://ko.vuejs.org/guide/essentials/component-basics.html#dynamic-components)\n"
|
| 299 |
+
},
|
| 300 |
+
"attributes": [],
|
| 301 |
+
"references": [
|
| 302 |
+
{
|
| 303 |
+
"name": "en",
|
| 304 |
+
"url": "https://vuejs.org/api/built-in-special-elements.html#component"
|
| 305 |
+
},
|
| 306 |
+
{
|
| 307 |
+
"name": "zh-cn",
|
| 308 |
+
"url": "https://cn.vuejs.org/api/built-in-special-elements.html#component"
|
| 309 |
+
},
|
| 310 |
+
{
|
| 311 |
+
"name": "ja",
|
| 312 |
+
"url": "https://ja.vuejs.org/api/built-in-special-elements.html#component"
|
| 313 |
+
},
|
| 314 |
+
{
|
| 315 |
+
"name": "ua",
|
| 316 |
+
"url": "https://ua.vuejs.org/api/built-in-special-elements.html#component"
|
| 317 |
+
},
|
| 318 |
+
{
|
| 319 |
+
"name": "fr",
|
| 320 |
+
"url": "https://fr.vuejs.org/api/built-in-special-elements.html#component"
|
| 321 |
+
},
|
| 322 |
+
{
|
| 323 |
+
"name": "ko",
|
| 324 |
+
"url": "https://ko.vuejs.org/api/built-in-special-elements.html#component"
|
| 325 |
+
},
|
| 326 |
+
{
|
| 327 |
+
"name": "pt",
|
| 328 |
+
"url": "https://pt.vuejs.org/api/built-in-special-elements.html#component"
|
| 329 |
+
},
|
| 330 |
+
{
|
| 331 |
+
"name": "bn",
|
| 332 |
+
"url": "https://bn.vuejs.org/api/built-in-special-elements.html#component"
|
| 333 |
+
},
|
| 334 |
+
{
|
| 335 |
+
"name": "it",
|
| 336 |
+
"url": "https://it.vuejs.org/api/built-in-special-elements.html#component"
|
| 337 |
+
},
|
| 338 |
+
{
|
| 339 |
+
"name": "cs",
|
| 340 |
+
"url": "https://cs.vuejs.org/api/built-in-special-elements.html#component"
|
| 341 |
+
},
|
| 342 |
+
{
|
| 343 |
+
"name": "ru",
|
| 344 |
+
"url": "https://ru.vuejs.org/api/built-in-special-elements.html#component"
|
| 345 |
+
},
|
| 346 |
+
{
|
| 347 |
+
"name": "fa",
|
| 348 |
+
"url": "https://fa.vuejs.org/api/built-in-special-elements.html#component"
|
| 349 |
+
}
|
| 350 |
+
]
|
| 351 |
+
},
|
| 352 |
+
{
|
| 353 |
+
"name": "slot",
|
| 354 |
+
"description": {
|
| 355 |
+
"kind": "markdown",
|
| 356 |
+
"value": "\n템플릿의 슬롯 컨텐츠를 내보낼 지점을 나타냅니다.\n\n- **Props**\n\n ```ts\n interface SlotProps {\n /**\n * 범위가 지정된 슬롯의 인자로 전달하기 위해\n * <slot>에 전달된 모든 props\n */\n [key: string]: any\n /**\n * 슬롯 이름을 지정.\n */\n name?: string\n }\n ```\n\n- **세부 사항**:\n\n `<slot>` 엘리먼트는 `name` 속성을 사용하여 슬롯 이름을 지정할 수 있습니다.\n `name`을 지정하지 않으면 기본 슬롯으로 렌더링됩니다.\n 슬롯 엘리먼트에 전달된 추가 속성은 부모 내부에서 범위가 정의된 슬롯에 슬롯 props로 전달됩니다.\n\n 엘리먼트는 일치하는 슬롯의 컨텐츠로 대체됩니다.\n\n Vue 템플릿의 `<slot>` 엘리먼트는 JavaScript로 컴파일되므로 [네이티브 `<slot>` 엘리먼트](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/slot)와 혼동하면 안됩니다.\n\n- **참고**: [가이드 - 슬롯](https://ko.vuejs.org/guide/components/slots.html)\n"
|
| 357 |
+
},
|
| 358 |
+
"attributes": [],
|
| 359 |
+
"references": [
|
| 360 |
+
{
|
| 361 |
+
"name": "en",
|
| 362 |
+
"url": "https://vuejs.org/api/built-in-special-elements.html#slot"
|
| 363 |
+
},
|
| 364 |
+
{
|
| 365 |
+
"name": "zh-cn",
|
| 366 |
+
"url": "https://cn.vuejs.org/api/built-in-special-elements.html#slot"
|
| 367 |
+
},
|
| 368 |
+
{
|
| 369 |
+
"name": "ja",
|
| 370 |
+
"url": "https://ja.vuejs.org/api/built-in-special-elements.html#slot"
|
| 371 |
+
},
|
| 372 |
+
{
|
| 373 |
+
"name": "ua",
|
| 374 |
+
"url": "https://ua.vuejs.org/api/built-in-special-elements.html#slot"
|
| 375 |
+
},
|
| 376 |
+
{
|
| 377 |
+
"name": "fr",
|
| 378 |
+
"url": "https://fr.vuejs.org/api/built-in-special-elements.html#slot"
|
| 379 |
+
},
|
| 380 |
+
{
|
| 381 |
+
"name": "ko",
|
| 382 |
+
"url": "https://ko.vuejs.org/api/built-in-special-elements.html#slot"
|
| 383 |
+
},
|
| 384 |
+
{
|
| 385 |
+
"name": "pt",
|
| 386 |
+
"url": "https://pt.vuejs.org/api/built-in-special-elements.html#slot"
|
| 387 |
+
},
|
| 388 |
+
{
|
| 389 |
+
"name": "bn",
|
| 390 |
+
"url": "https://bn.vuejs.org/api/built-in-special-elements.html#slot"
|
| 391 |
+
},
|
| 392 |
+
{
|
| 393 |
+
"name": "it",
|
| 394 |
+
"url": "https://it.vuejs.org/api/built-in-special-elements.html#slot"
|
| 395 |
+
},
|
| 396 |
+
{
|
| 397 |
+
"name": "cs",
|
| 398 |
+
"url": "https://cs.vuejs.org/api/built-in-special-elements.html#slot"
|
| 399 |
+
},
|
| 400 |
+
{
|
| 401 |
+
"name": "ru",
|
| 402 |
+
"url": "https://ru.vuejs.org/api/built-in-special-elements.html#slot"
|
| 403 |
+
},
|
| 404 |
+
{
|
| 405 |
+
"name": "fa",
|
| 406 |
+
"url": "https://fa.vuejs.org/api/built-in-special-elements.html#slot"
|
| 407 |
+
}
|
| 408 |
+
]
|
| 409 |
+
},
|
| 410 |
+
{
|
| 411 |
+
"name": "template",
|
| 412 |
+
"description": {
|
| 413 |
+
"kind": "markdown",
|
| 414 |
+
"value": "\n`<template>` 태그는 DOM에 렌더링없이 사용할 앨리먼트들에 대한 위치기술을 위해(placeholder)로 사용할수 있습니다. \nThe `<template>` tag is used as a placeholder when we want to use a built-in directive without rendering an element in the DOM.\n\n- **세부 사항:**\n `<template>` 의 이런 특수한 취급은 다음 디렉티브들과 함께 사용될때만 적용됩니다. \n \n - `v-if`, `v-else-if`, or `v-else`\n - `v-for`\n - `v-slot`\n \n 만약 이런 디렉티브가 없다면, [네이티브 `<template>` 앨리먼트](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/template)로 렌더링됩니다. \n \n `v-for`가 있는 `<template>`은 [`key` 속성](https://ko.vuejs.org/api/built-in-special-attributes.html#key)도 가질 수 있습니다. 다른 모든 속성과 디렉티브는 해당 엘리먼트가가 없으면 의미가 없으므로 버려집니다.\n\n \n 싱글 파일 컴포넌트는 [최상위 `<template>` 태그](https://ko.vuejs.org/api/sfc-spec.html#language-blocks)를 사용하여 전체 템플릿을 래핑합니다. 그 사용법은 위에서 설명한 `<template>`의 사용과는 별개입니다. 해당 최상위 태그는 템플릿 자체의 일부가 아니며 지시문과 같은 템플릿 문법을 지원하지 않습니다.\n\n- **See also:**\n - [가이드 - `v-if` on `<template>`](https://ko.vuejs.org/guide/essentials/conditional.html#v-if-on-template) \n - [가이드 - `v-for` on `<template>`](https://ko.vuejs.org/guide/essentials/list.html#v-for-on-template) \n - [가이드 - Named slots](https://ko.vuejs.org/guide/components/slots.html#named-slots) \n"
|
| 415 |
+
},
|
| 416 |
+
"attributes": [],
|
| 417 |
+
"references": [
|
| 418 |
+
{
|
| 419 |
+
"name": "en",
|
| 420 |
+
"url": "https://vuejs.org/api/built-in-special-elements.html#template"
|
| 421 |
+
},
|
| 422 |
+
{
|
| 423 |
+
"name": "zh-cn",
|
| 424 |
+
"url": "https://cn.vuejs.org/api/built-in-special-elements.html#template"
|
| 425 |
+
},
|
| 426 |
+
{
|
| 427 |
+
"name": "ja",
|
| 428 |
+
"url": "https://ja.vuejs.org/api/built-in-special-elements.html#template"
|
| 429 |
+
},
|
| 430 |
+
{
|
| 431 |
+
"name": "ua",
|
| 432 |
+
"url": "https://ua.vuejs.org/api/built-in-special-elements.html#template"
|
| 433 |
+
},
|
| 434 |
+
{
|
| 435 |
+
"name": "fr",
|
| 436 |
+
"url": "https://fr.vuejs.org/api/built-in-special-elements.html#template"
|
| 437 |
+
},
|
| 438 |
+
{
|
| 439 |
+
"name": "ko",
|
| 440 |
+
"url": "https://ko.vuejs.org/api/built-in-special-elements.html#template"
|
| 441 |
+
},
|
| 442 |
+
{
|
| 443 |
+
"name": "pt",
|
| 444 |
+
"url": "https://pt.vuejs.org/api/built-in-special-elements.html#template"
|
| 445 |
+
},
|
| 446 |
+
{
|
| 447 |
+
"name": "bn",
|
| 448 |
+
"url": "https://bn.vuejs.org/api/built-in-special-elements.html#template"
|
| 449 |
+
},
|
| 450 |
+
{
|
| 451 |
+
"name": "it",
|
| 452 |
+
"url": "https://it.vuejs.org/api/built-in-special-elements.html#template"
|
| 453 |
+
},
|
| 454 |
+
{
|
| 455 |
+
"name": "cs",
|
| 456 |
+
"url": "https://cs.vuejs.org/api/built-in-special-elements.html#template"
|
| 457 |
+
},
|
| 458 |
+
{
|
| 459 |
+
"name": "ru",
|
| 460 |
+
"url": "https://ru.vuejs.org/api/built-in-special-elements.html#template"
|
| 461 |
+
},
|
| 462 |
+
{
|
| 463 |
+
"name": "fa",
|
| 464 |
+
"url": "https://fa.vuejs.org/api/built-in-special-elements.html#template"
|
| 465 |
+
}
|
| 466 |
+
]
|
| 467 |
+
}
|
| 468 |
+
],
|
| 469 |
+
"globalAttributes": [
|
| 470 |
+
{
|
| 471 |
+
"name": "v-text",
|
| 472 |
+
"description": {
|
| 473 |
+
"kind": "markdown",
|
| 474 |
+
"value": "\n엘리먼트의 텍스트 컨텐츠를 업데이트합니다.\n\n- **요구되는 값**: `string`\n\n- **세부 사항**:\n\n `v-text`는 엘리먼트의 [텍스트 컨텐츠](https://developer.mozilla.org/en-US/docs/Web/API/Node/textContent) 속성을 설정하므로, 엘리먼트 내부의 기존 컨텐츠를 덮어씁니다. `텍스트 컨텐츠`의 일부를 업데이트해야 하는 경우, [이중 중괄호](https://ko.vuejs.org/guide/essentials/template-syntax.html#text-interpolation)를 사용해야 합니다.\n\n- **예제**\n\n ```html\n <span v-text=\"msg\"></span>\n <!-- 아래와 같음 -->\n <span>{{msg}}</span>\n ```\n\n- **참고**: [템플릿 문법 - 텍스트 보간법](https://ko.vuejs.org/guide/essentials/template-syntax.html#text-interpolation)\n"
|
| 475 |
+
},
|
| 476 |
+
"references": [
|
| 477 |
+
{
|
| 478 |
+
"name": "en",
|
| 479 |
+
"url": "https://vuejs.org/api/built-in-directives.html#v-text"
|
| 480 |
+
},
|
| 481 |
+
{
|
| 482 |
+
"name": "zh-cn",
|
| 483 |
+
"url": "https://cn.vuejs.org/api/built-in-directives.html#v-text"
|
| 484 |
+
},
|
| 485 |
+
{
|
| 486 |
+
"name": "ja",
|
| 487 |
+
"url": "https://ja.vuejs.org/api/built-in-directives.html#v-text"
|
| 488 |
+
},
|
| 489 |
+
{
|
| 490 |
+
"name": "ua",
|
| 491 |
+
"url": "https://ua.vuejs.org/api/built-in-directives.html#v-text"
|
| 492 |
+
},
|
| 493 |
+
{
|
| 494 |
+
"name": "fr",
|
| 495 |
+
"url": "https://fr.vuejs.org/api/built-in-directives.html#v-text"
|
| 496 |
+
},
|
| 497 |
+
{
|
| 498 |
+
"name": "ko",
|
| 499 |
+
"url": "https://ko.vuejs.org/api/built-in-directives.html#v-text"
|
| 500 |
+
},
|
| 501 |
+
{
|
| 502 |
+
"name": "pt",
|
| 503 |
+
"url": "https://pt.vuejs.org/api/built-in-directives.html#v-text"
|
| 504 |
+
},
|
| 505 |
+
{
|
| 506 |
+
"name": "bn",
|
| 507 |
+
"url": "https://bn.vuejs.org/api/built-in-directives.html#v-text"
|
| 508 |
+
},
|
| 509 |
+
{
|
| 510 |
+
"name": "it",
|
| 511 |
+
"url": "https://it.vuejs.org/api/built-in-directives.html#v-text"
|
| 512 |
+
},
|
| 513 |
+
{
|
| 514 |
+
"name": "cs",
|
| 515 |
+
"url": "https://cs.vuejs.org/api/built-in-directives.html#v-text"
|
| 516 |
+
},
|
| 517 |
+
{
|
| 518 |
+
"name": "ru",
|
| 519 |
+
"url": "https://ru.vuejs.org/api/built-in-directives.html#v-text"
|
| 520 |
+
},
|
| 521 |
+
{
|
| 522 |
+
"name": "fa",
|
| 523 |
+
"url": "https://fa.vuejs.org/api/built-in-directives.html#v-text"
|
| 524 |
+
}
|
| 525 |
+
]
|
| 526 |
+
},
|
| 527 |
+
{
|
| 528 |
+
"name": "v-html",
|
| 529 |
+
"description": {
|
| 530 |
+
"kind": "markdown",
|
| 531 |
+
"value": "\n엘리먼트의 [innerHTML](https://developer.mozilla.org/en-US/docs/Web/API/Element/innerHTML)을 업데이트합니다.\n\n- **요구되는 값**: `string`\n\n- **세부 사항**:\n\n `v-html`의 내용은 Vue 템플릿 문법을 처리하지 않고 일반 HTML로 삽입됩니다. `v-html`을 사용하여 템플릿을 작성하려고 한다면, 이 방법 대신 컴포넌트를 사용하여 해결하는 방법을 고민해봐야 합니다.\n\n ::: warning 보안 참고 사항\n 웹사이트에서 임의의 HTML을 동적으로 렌더링하는 것은 [XSS 공격](https://en.wikipedia.org/wiki/Cross-site_scripting)으로 쉽게 이어질 수 있기 때문에 매우 위험할 수 있습니다. 신뢰할 수 있는 컨텐츠에만 `v-html`을 사용하고, 사용자가 제공하는 컨텐츠에는 **절대** 사용하면 안됩니다.\n :::\n\n [싱글 파일 컴포넌트(SFC)](https://ko.vuejs.org/guide/scaling-up/sfc.html)에서 `scoped`(범위를 지정한) Style은 `v-html` 내부 컨텐츠에 적용되지 않습니다. 왜냐하면 해당 HTML은 Vue의 템플릿 컴파일러에서 처리되지 않기 때문입니다. 범위를 지정한 CSS로 `v-html` 컨텐츠를 대상으로 지정하려는 경우, [CSS 모듈](./sfc-css-features#css-modules) 또는 BEM과 같은 수동 범위 지정 방법과 함께 전역 `<style>` 엘리먼트를 사용할 수 있습니다.\n\n- **예제**\n\n ```html\n <div v-html=\"html\"></div>\n ```\n\n- **참고**: [템플릿 문법 - HTML 출력](https://ko.vuejs.org/guide/essentials/template-syntax.html#raw-html)\n"
|
| 532 |
+
},
|
| 533 |
+
"references": [
|
| 534 |
+
{
|
| 535 |
+
"name": "en",
|
| 536 |
+
"url": "https://vuejs.org/api/built-in-directives.html#v-html"
|
| 537 |
+
},
|
| 538 |
+
{
|
| 539 |
+
"name": "zh-cn",
|
| 540 |
+
"url": "https://cn.vuejs.org/api/built-in-directives.html#v-html"
|
| 541 |
+
},
|
| 542 |
+
{
|
| 543 |
+
"name": "ja",
|
| 544 |
+
"url": "https://ja.vuejs.org/api/built-in-directives.html#v-html"
|
| 545 |
+
},
|
| 546 |
+
{
|
| 547 |
+
"name": "ua",
|
| 548 |
+
"url": "https://ua.vuejs.org/api/built-in-directives.html#v-html"
|
| 549 |
+
},
|
| 550 |
+
{
|
| 551 |
+
"name": "fr",
|
| 552 |
+
"url": "https://fr.vuejs.org/api/built-in-directives.html#v-html"
|
| 553 |
+
},
|
| 554 |
+
{
|
| 555 |
+
"name": "ko",
|
| 556 |
+
"url": "https://ko.vuejs.org/api/built-in-directives.html#v-html"
|
| 557 |
+
},
|
| 558 |
+
{
|
| 559 |
+
"name": "pt",
|
| 560 |
+
"url": "https://pt.vuejs.org/api/built-in-directives.html#v-html"
|
| 561 |
+
},
|
| 562 |
+
{
|
| 563 |
+
"name": "bn",
|
| 564 |
+
"url": "https://bn.vuejs.org/api/built-in-directives.html#v-html"
|
| 565 |
+
},
|
| 566 |
+
{
|
| 567 |
+
"name": "it",
|
| 568 |
+
"url": "https://it.vuejs.org/api/built-in-directives.html#v-html"
|
| 569 |
+
},
|
| 570 |
+
{
|
| 571 |
+
"name": "cs",
|
| 572 |
+
"url": "https://cs.vuejs.org/api/built-in-directives.html#v-html"
|
| 573 |
+
},
|
| 574 |
+
{
|
| 575 |
+
"name": "ru",
|
| 576 |
+
"url": "https://ru.vuejs.org/api/built-in-directives.html#v-html"
|
| 577 |
+
},
|
| 578 |
+
{
|
| 579 |
+
"name": "fa",
|
| 580 |
+
"url": "https://fa.vuejs.org/api/built-in-directives.html#v-html"
|
| 581 |
+
}
|
| 582 |
+
]
|
| 583 |
+
},
|
| 584 |
+
{
|
| 585 |
+
"name": "v-show",
|
| 586 |
+
"description": {
|
| 587 |
+
"kind": "markdown",
|
| 588 |
+
"value": "\n표현식의 [truthy](https://developer.mozilla.org/en-US/docs/Glossary/Truthy) 값을 기반으로 엘리먼트의 가시성을 전환합니다.\n\n- **요구되는 값**: `any`\n\n- **세부 사항**:\n\n `v-show`는 인라인 스타일을 통해 `display` CSS 속성을 설정하며, 엘리먼트가 표시될 때 초기 `display` 값을 설정하려고 시도합니다. 또한 조건이 변경될 때 전환을 트리거합니다.\n\n- **참고**: [조건부 렌더링 - v-show](https://ko.vuejs.org/guide/essentials/conditional.html#v-show)\n"
|
| 589 |
+
},
|
| 590 |
+
"references": [
|
| 591 |
+
{
|
| 592 |
+
"name": "en",
|
| 593 |
+
"url": "https://vuejs.org/api/built-in-directives.html#v-show"
|
| 594 |
+
},
|
| 595 |
+
{
|
| 596 |
+
"name": "zh-cn",
|
| 597 |
+
"url": "https://cn.vuejs.org/api/built-in-directives.html#v-show"
|
| 598 |
+
},
|
| 599 |
+
{
|
| 600 |
+
"name": "ja",
|
| 601 |
+
"url": "https://ja.vuejs.org/api/built-in-directives.html#v-show"
|
| 602 |
+
},
|
| 603 |
+
{
|
| 604 |
+
"name": "ua",
|
| 605 |
+
"url": "https://ua.vuejs.org/api/built-in-directives.html#v-show"
|
| 606 |
+
},
|
| 607 |
+
{
|
| 608 |
+
"name": "fr",
|
| 609 |
+
"url": "https://fr.vuejs.org/api/built-in-directives.html#v-show"
|
| 610 |
+
},
|
| 611 |
+
{
|
| 612 |
+
"name": "ko",
|
| 613 |
+
"url": "https://ko.vuejs.org/api/built-in-directives.html#v-show"
|
| 614 |
+
},
|
| 615 |
+
{
|
| 616 |
+
"name": "pt",
|
| 617 |
+
"url": "https://pt.vuejs.org/api/built-in-directives.html#v-show"
|
| 618 |
+
},
|
| 619 |
+
{
|
| 620 |
+
"name": "bn",
|
| 621 |
+
"url": "https://bn.vuejs.org/api/built-in-directives.html#v-show"
|
| 622 |
+
},
|
| 623 |
+
{
|
| 624 |
+
"name": "it",
|
| 625 |
+
"url": "https://it.vuejs.org/api/built-in-directives.html#v-show"
|
| 626 |
+
},
|
| 627 |
+
{
|
| 628 |
+
"name": "cs",
|
| 629 |
+
"url": "https://cs.vuejs.org/api/built-in-directives.html#v-show"
|
| 630 |
+
},
|
| 631 |
+
{
|
| 632 |
+
"name": "ru",
|
| 633 |
+
"url": "https://ru.vuejs.org/api/built-in-directives.html#v-show"
|
| 634 |
+
},
|
| 635 |
+
{
|
| 636 |
+
"name": "fa",
|
| 637 |
+
"url": "https://fa.vuejs.org/api/built-in-directives.html#v-show"
|
| 638 |
+
}
|
| 639 |
+
]
|
| 640 |
+
},
|
| 641 |
+
{
|
| 642 |
+
"name": "v-if",
|
| 643 |
+
"description": {
|
| 644 |
+
"kind": "markdown",
|
| 645 |
+
"value": "\n표현식의 truthy 값을 기반으로 엘리먼트 또는 템플릿 일부를 조건부로 렌더링합니다.\n\n- **요구되는 값**: `any`\n\n- **세부 사항**:\n\n `v-if` 엘리먼트가 토글되면, 엘리먼트와 여기에 포함된 디렉티브/컴포넌트가 파괴되고 재구성됩니다. 초기 조건 값이 falsy이면, 내부 컨텐츠가 전혀 렌더링되지 않습니다.\n\n 텍스트 또는 여러 엘리먼트를 포함하는 조건부 블록을 나타내기 위해 `<template>`에 사용할 수도 있습니다.\n\n 이 디렉티브는 조건이 변경될 때, [트랜지션](https://ko.vuejs.org/guide/built-ins/transition.html)을 트리거합니다.\n\n `v-for`와 함께 사용하는 경우, `v-if`의 우선 순위가 높습니다. 하나의 엘리먼트에 이 두 디렉티브을 함께 사용하는 것은 권장되지 않습니다. 자세한 내용은 [리스트 렌더링](https://ko.vuejs.org/guide/essentials/list.html#v-for-with-v-if)을 참고하세요.\n\n- **참고**: [조건부 렌더링 - v-if](https://ko.vuejs.org/guide/essentials/conditional.html#v-if)\n"
|
| 646 |
+
},
|
| 647 |
+
"references": [
|
| 648 |
+
{
|
| 649 |
+
"name": "en",
|
| 650 |
+
"url": "https://vuejs.org/api/built-in-directives.html#v-if"
|
| 651 |
+
},
|
| 652 |
+
{
|
| 653 |
+
"name": "zh-cn",
|
| 654 |
+
"url": "https://cn.vuejs.org/api/built-in-directives.html#v-if"
|
| 655 |
+
},
|
| 656 |
+
{
|
| 657 |
+
"name": "ja",
|
| 658 |
+
"url": "https://ja.vuejs.org/api/built-in-directives.html#v-if"
|
| 659 |
+
},
|
| 660 |
+
{
|
| 661 |
+
"name": "ua",
|
| 662 |
+
"url": "https://ua.vuejs.org/api/built-in-directives.html#v-if"
|
| 663 |
+
},
|
| 664 |
+
{
|
| 665 |
+
"name": "fr",
|
| 666 |
+
"url": "https://fr.vuejs.org/api/built-in-directives.html#v-if"
|
| 667 |
+
},
|
| 668 |
+
{
|
| 669 |
+
"name": "ko",
|
| 670 |
+
"url": "https://ko.vuejs.org/api/built-in-directives.html#v-if"
|
| 671 |
+
},
|
| 672 |
+
{
|
| 673 |
+
"name": "pt",
|
| 674 |
+
"url": "https://pt.vuejs.org/api/built-in-directives.html#v-if"
|
| 675 |
+
},
|
| 676 |
+
{
|
| 677 |
+
"name": "bn",
|
| 678 |
+
"url": "https://bn.vuejs.org/api/built-in-directives.html#v-if"
|
| 679 |
+
},
|
| 680 |
+
{
|
| 681 |
+
"name": "it",
|
| 682 |
+
"url": "https://it.vuejs.org/api/built-in-directives.html#v-if"
|
| 683 |
+
},
|
| 684 |
+
{
|
| 685 |
+
"name": "cs",
|
| 686 |
+
"url": "https://cs.vuejs.org/api/built-in-directives.html#v-if"
|
| 687 |
+
},
|
| 688 |
+
{
|
| 689 |
+
"name": "ru",
|
| 690 |
+
"url": "https://ru.vuejs.org/api/built-in-directives.html#v-if"
|
| 691 |
+
},
|
| 692 |
+
{
|
| 693 |
+
"name": "fa",
|
| 694 |
+
"url": "https://fa.vuejs.org/api/built-in-directives.html#v-if"
|
| 695 |
+
}
|
| 696 |
+
]
|
| 697 |
+
},
|
| 698 |
+
{
|
| 699 |
+
"name": "v-else",
|
| 700 |
+
"valueSet": "v",
|
| 701 |
+
"description": {
|
| 702 |
+
"kind": "markdown",
|
| 703 |
+
"value": "\n`v-if` 또는 `v-else-if` 체인에 대한 `else`입니다.\n\n- **표현식을 허용하지 않습니다**.\n\n- **세부 사항**:\n\n - 제한사항: 이전 형제 엘리먼트에 `v-if` 또는 `v-else-if`가 있어야 합니다.\n\n - `<template>`에서 텍스트 또는 여러 엘리먼트를 포함하는 조건부 블록을 나타내는 데 사용할 수 있습니다.\n\n- **예제**\n\n ```html\n <div v-if=\"Math.random() > 0.5\">\n 이제 나를 볼 수 있어요!\n </div>\n <div v-else>\n 아직이에요!\n </div>\n ```\n\n- **참고**: [조건부 렌더링 - v-else](https://ko.vuejs.org/guide/essentials/conditional.html#v-else)\n"
|
| 704 |
+
},
|
| 705 |
+
"references": [
|
| 706 |
+
{
|
| 707 |
+
"name": "en",
|
| 708 |
+
"url": "https://vuejs.org/api/built-in-directives.html#v-else"
|
| 709 |
+
},
|
| 710 |
+
{
|
| 711 |
+
"name": "zh-cn",
|
| 712 |
+
"url": "https://cn.vuejs.org/api/built-in-directives.html#v-else"
|
| 713 |
+
},
|
| 714 |
+
{
|
| 715 |
+
"name": "ja",
|
| 716 |
+
"url": "https://ja.vuejs.org/api/built-in-directives.html#v-else"
|
| 717 |
+
},
|
| 718 |
+
{
|
| 719 |
+
"name": "ua",
|
| 720 |
+
"url": "https://ua.vuejs.org/api/built-in-directives.html#v-else"
|
| 721 |
+
},
|
| 722 |
+
{
|
| 723 |
+
"name": "fr",
|
| 724 |
+
"url": "https://fr.vuejs.org/api/built-in-directives.html#v-else"
|
| 725 |
+
},
|
| 726 |
+
{
|
| 727 |
+
"name": "ko",
|
| 728 |
+
"url": "https://ko.vuejs.org/api/built-in-directives.html#v-else"
|
| 729 |
+
},
|
| 730 |
+
{
|
| 731 |
+
"name": "pt",
|
| 732 |
+
"url": "https://pt.vuejs.org/api/built-in-directives.html#v-else"
|
| 733 |
+
},
|
| 734 |
+
{
|
| 735 |
+
"name": "bn",
|
| 736 |
+
"url": "https://bn.vuejs.org/api/built-in-directives.html#v-else"
|
| 737 |
+
},
|
| 738 |
+
{
|
| 739 |
+
"name": "it",
|
| 740 |
+
"url": "https://it.vuejs.org/api/built-in-directives.html#v-else"
|
| 741 |
+
},
|
| 742 |
+
{
|
| 743 |
+
"name": "cs",
|
| 744 |
+
"url": "https://cs.vuejs.org/api/built-in-directives.html#v-else"
|
| 745 |
+
},
|
| 746 |
+
{
|
| 747 |
+
"name": "ru",
|
| 748 |
+
"url": "https://ru.vuejs.org/api/built-in-directives.html#v-else"
|
| 749 |
+
},
|
| 750 |
+
{
|
| 751 |
+
"name": "fa",
|
| 752 |
+
"url": "https://fa.vuejs.org/api/built-in-directives.html#v-else"
|
| 753 |
+
}
|
| 754 |
+
]
|
| 755 |
+
},
|
| 756 |
+
{
|
| 757 |
+
"name": "v-else-if",
|
| 758 |
+
"description": {
|
| 759 |
+
"kind": "markdown",
|
| 760 |
+
"value": "\n`v-if`에 대한 `else if` 블록을 나타냅니다. `v-else-if`는 계속 이어서 사용할 수 있습니다.\n\n- **요구되는 값**: `any`\n\n- **세부 사항**:\n\n - 제한사항: 이전 형제 엘리먼트에 `v-if` 또는 `v-else-if`가 있어야 합니다.\n\n - `<template>`에서 텍스트 또는 여러 엘리먼트를 포함하는 조건부 블록을 나타내는 데 사용할 수 있습니다.\n\n- **예제**\n\n ```html\n <div v-if=\"type === 'A'\">\n A\n </div>\n <div v-else-if=\"type === 'B'\">\n B\n </div>\n <div v-else-if=\"type === 'C'\">\n C\n </div>\n <div v-else>\n A/B/C 가 아니야!\n </div>\n ```\n\n- **참고**: [조건부 렌더링 - v-else-if](https://ko.vuejs.org/guide/essentials/conditional.html#v-else-if)\n"
|
| 761 |
+
},
|
| 762 |
+
"references": [
|
| 763 |
+
{
|
| 764 |
+
"name": "en",
|
| 765 |
+
"url": "https://vuejs.org/api/built-in-directives.html#v-else-if"
|
| 766 |
+
},
|
| 767 |
+
{
|
| 768 |
+
"name": "zh-cn",
|
| 769 |
+
"url": "https://cn.vuejs.org/api/built-in-directives.html#v-else-if"
|
| 770 |
+
},
|
| 771 |
+
{
|
| 772 |
+
"name": "ja",
|
| 773 |
+
"url": "https://ja.vuejs.org/api/built-in-directives.html#v-else-if"
|
| 774 |
+
},
|
| 775 |
+
{
|
| 776 |
+
"name": "ua",
|
| 777 |
+
"url": "https://ua.vuejs.org/api/built-in-directives.html#v-else-if"
|
| 778 |
+
},
|
| 779 |
+
{
|
| 780 |
+
"name": "fr",
|
| 781 |
+
"url": "https://fr.vuejs.org/api/built-in-directives.html#v-else-if"
|
| 782 |
+
},
|
| 783 |
+
{
|
| 784 |
+
"name": "ko",
|
| 785 |
+
"url": "https://ko.vuejs.org/api/built-in-directives.html#v-else-if"
|
| 786 |
+
},
|
| 787 |
+
{
|
| 788 |
+
"name": "pt",
|
| 789 |
+
"url": "https://pt.vuejs.org/api/built-in-directives.html#v-else-if"
|
| 790 |
+
},
|
| 791 |
+
{
|
| 792 |
+
"name": "bn",
|
| 793 |
+
"url": "https://bn.vuejs.org/api/built-in-directives.html#v-else-if"
|
| 794 |
+
},
|
| 795 |
+
{
|
| 796 |
+
"name": "it",
|
| 797 |
+
"url": "https://it.vuejs.org/api/built-in-directives.html#v-else-if"
|
| 798 |
+
},
|
| 799 |
+
{
|
| 800 |
+
"name": "cs",
|
| 801 |
+
"url": "https://cs.vuejs.org/api/built-in-directives.html#v-else-if"
|
| 802 |
+
},
|
| 803 |
+
{
|
| 804 |
+
"name": "ru",
|
| 805 |
+
"url": "https://ru.vuejs.org/api/built-in-directives.html#v-else-if"
|
| 806 |
+
},
|
| 807 |
+
{
|
| 808 |
+
"name": "fa",
|
| 809 |
+
"url": "https://fa.vuejs.org/api/built-in-directives.html#v-else-if"
|
| 810 |
+
}
|
| 811 |
+
]
|
| 812 |
+
},
|
| 813 |
+
{
|
| 814 |
+
"name": "v-for",
|
| 815 |
+
"description": {
|
| 816 |
+
"kind": "markdown",
|
| 817 |
+
"value": "\n소스 데이터를 기반으로 엘리먼트 또는 템플릿 블록을 여러 번 렌더링합니다.\n\n- **요구되는 값**: `Array | Object | number | string | Iterable`\n\n- **세부 사항**:\n\n 디렉티브는 반복되는 과정의 현재 값에 별칭을 제공하기 위해, 특수 문법인 `alias in expression`(표현식 내 별칭)을 사용해야 합니다:\n\n ```html\n <div v-for=\"item in items\">\n {{ item.text }}\n </div>\n ```\n\n 또한 인덱스(객체에서 사용되는 경우 키)의 별칭을 지정할 수도 있습니다:\n\n ```html\n <div v-for=\"(item, index) in items\"></div>\n <div v-for=\"(value, key) in object\"></div>\n <div v-for=\"(value, name, index) in object\"></div>\n ```\n\n `v-for`의 기본 동작은 엘리먼트를 이동하지 않고 제자리에 패치(patch)하려고 합니다. 강제로 엘리먼트를 재정렬하려면, 특수 속성 `key`를 사용하여 순서 지정을 위한 힌트를 제공해야 합니다:\n\n ```html\n <div v-for=\"item in items\" :key=\"item.id\">\n {{ item.text }}\n </div>\n ```\n\n `v-for`는 네이티브 `Map`,`Set`과 더불어 [Iterable Protocol](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols#The_iterable_protocol)을 구현한 값에서도 작동합니다.\n\n- **참고**:\n - [가이드 - 리스트 렌더링](https://ko.vuejs.org/guide/essentials/list.html)\n"
|
| 818 |
+
},
|
| 819 |
+
"references": [
|
| 820 |
+
{
|
| 821 |
+
"name": "en",
|
| 822 |
+
"url": "https://vuejs.org/api/built-in-directives.html#v-for"
|
| 823 |
+
},
|
| 824 |
+
{
|
| 825 |
+
"name": "zh-cn",
|
| 826 |
+
"url": "https://cn.vuejs.org/api/built-in-directives.html#v-for"
|
| 827 |
+
},
|
| 828 |
+
{
|
| 829 |
+
"name": "ja",
|
| 830 |
+
"url": "https://ja.vuejs.org/api/built-in-directives.html#v-for"
|
| 831 |
+
},
|
| 832 |
+
{
|
| 833 |
+
"name": "ua",
|
| 834 |
+
"url": "https://ua.vuejs.org/api/built-in-directives.html#v-for"
|
| 835 |
+
},
|
| 836 |
+
{
|
| 837 |
+
"name": "fr",
|
| 838 |
+
"url": "https://fr.vuejs.org/api/built-in-directives.html#v-for"
|
| 839 |
+
},
|
| 840 |
+
{
|
| 841 |
+
"name": "ko",
|
| 842 |
+
"url": "https://ko.vuejs.org/api/built-in-directives.html#v-for"
|
| 843 |
+
},
|
| 844 |
+
{
|
| 845 |
+
"name": "pt",
|
| 846 |
+
"url": "https://pt.vuejs.org/api/built-in-directives.html#v-for"
|
| 847 |
+
},
|
| 848 |
+
{
|
| 849 |
+
"name": "bn",
|
| 850 |
+
"url": "https://bn.vuejs.org/api/built-in-directives.html#v-for"
|
| 851 |
+
},
|
| 852 |
+
{
|
| 853 |
+
"name": "it",
|
| 854 |
+
"url": "https://it.vuejs.org/api/built-in-directives.html#v-for"
|
| 855 |
+
},
|
| 856 |
+
{
|
| 857 |
+
"name": "cs",
|
| 858 |
+
"url": "https://cs.vuejs.org/api/built-in-directives.html#v-for"
|
| 859 |
+
},
|
| 860 |
+
{
|
| 861 |
+
"name": "ru",
|
| 862 |
+
"url": "https://ru.vuejs.org/api/built-in-directives.html#v-for"
|
| 863 |
+
},
|
| 864 |
+
{
|
| 865 |
+
"name": "fa",
|
| 866 |
+
"url": "https://fa.vuejs.org/api/built-in-directives.html#v-for"
|
| 867 |
+
}
|
| 868 |
+
]
|
| 869 |
+
},
|
| 870 |
+
{
|
| 871 |
+
"name": "v-on",
|
| 872 |
+
"description": {
|
| 873 |
+
"kind": "markdown",
|
| 874 |
+
"value": "\n엘리먼트에 이벤트 리스너를 연결합니다.\n\n- **단축 문법:** `@`\n\n- **요구되는 값**: `Function | Inline Statement | Object (without argument)`\n\n- **인자:** `event` (선택사항: 객체 문법을 사용하는 경우)\n\n- **수식어:**\n\n - `.stop` - `event.stopPropagation()` 호출.\n - `.prevent` - `event.preventDefault()` 호출.\n - `.capture` - 캡처 모드로 이벤트 등록.\n - `.self` - 이벤트가 이 엘리먼트에서 전달된 경우에만 트리거 됨.\n - `.{keyAlias}` - 이벤트가 특정 키에 대해서만 트리거 됨.\n - `.once` - 이벤트가 한 번만 트리거 됨(일회용처럼).\n - `.left` - 마우스 왼쪽 버튼으로만 이벤트가 트리거 됨.\n - `.right` - 마우스 오른쪽 버튼으로만 이벤트가 트리거 됨.\n - `.middle` - 마우스 중앙(힐 클릭) 버튼으로만 이벤트가 트리거 됨.\n - `.passive` - `{ passive: true }` 옵션으로 DOM 이벤트를 등록.\n\n- **세부 사항**:\n\n 이벤트 타입은 인자로 표시됩니다. 표현식은 메서드 이름 또는 인라인 명령문이거나, 수식어가 있는 경우 생략될 수 있습니다.\n\n 일반 엘리먼트에 사용되면 [**네이티브 DOM 이벤트**](https://developer.mozilla.org/en-US/docs/Web/Events)만 수신합니다. 커스텀 엘리먼트 컴포넌트에서 사용되는 경우, 해당 자식 컴포넌트에서 발송(emit)하는 **커스텀 이벤트**를 수신합니다.\n\n 네이티브 DOM 이벤트를 수신할 때, 메서드의 인자는 네이티브 이벤트 뿐 입니다. 인라인 명령문을 사용하는 경우, 명령문은 특수 속성인 `$event`로 `v-on:click=\"handle('ok', $event)\"`와 같이 이벤트 객체에 접근할 수 있습니다.\n\n `v-on`은 인자 없이 `이벤트(키): 리스너(값)` 형식의 객체 바인딩도 지원합니다. 수식어는 객체 문법을 사용할 때는 지원하지 않습니다.\n\n- **예제**\n\n ```html\n <!-- 메서드 핸들러 -->\n <button v-on:click=\"doThis\"></button>\n\n <!-- 동적 이벤트 -->\n <button v-on:[event]=\"doThis\"></button>\n\n <!-- 인라인 표현식 -->\n <button v-on:click=\"doThat('hello', $event)\"></button>\n\n <!-- 단축 문법 -->\n <button @click=\"doThis\"></button>\n\n <!-- 단축 문법 동적 이벤트 -->\n <button @[event]=\"doThis\"></button>\n\n <!-- 전파 중지 -->\n <button @click.stop=\"doThis\"></button>\n\n <!-- event.preventDefault() 작동 -->\n <button @click.prevent=\"doThis\"></button>\n\n <!-- 표현식 없이 event.preventDefault()만 사용 -->\n <form @submit.prevent></form>\n\n <!-- 수식어 이어서 사용 -->\n <button @click.stop.prevent=\"doThis\"></button>\n\n <!-- 키 별칭을 수식어로 사용 -->\n <input @keyup.enter=\"onEnter\" />\n\n <!-- 클릭 이벤트 단 한 번만 트리거 -->\n <button v-on:click.once=\"doThis\"></button>\n\n <!-- 객체 문법 -->\n <button v-on=\"{ mousedown: doThis, mouseup: doThat }\"></button>\n ```\n\n 자식 컴포넌트의 커스텀 이벤트 수신 대기(자식에서 \"my-event\"가 발생하면 핸들러가 호출됨):\n\n ```html\n <MyComponent @my-event=\"handleThis\" />\n\n <!-- 인라인 표현식 -->\n <MyComponent @my-event=\"handleThis(123, $event)\" />\n ```\n\n- **참고**:\n - [이벤트 핸들링](https://ko.vuejs.org/guide/essentials/event-handling.html)\n - [컴포넌트 - 이벤트 청취하기](https://ko.vuejs.org/guide/essentials/component-basics.html#listening-to-events)\n"
|
| 875 |
+
},
|
| 876 |
+
"references": [
|
| 877 |
+
{
|
| 878 |
+
"name": "en",
|
| 879 |
+
"url": "https://vuejs.org/api/built-in-directives.html#v-on"
|
| 880 |
+
},
|
| 881 |
+
{
|
| 882 |
+
"name": "zh-cn",
|
| 883 |
+
"url": "https://cn.vuejs.org/api/built-in-directives.html#v-on"
|
| 884 |
+
},
|
| 885 |
+
{
|
| 886 |
+
"name": "ja",
|
| 887 |
+
"url": "https://ja.vuejs.org/api/built-in-directives.html#v-on"
|
| 888 |
+
},
|
| 889 |
+
{
|
| 890 |
+
"name": "ua",
|
| 891 |
+
"url": "https://ua.vuejs.org/api/built-in-directives.html#v-on"
|
| 892 |
+
},
|
| 893 |
+
{
|
| 894 |
+
"name": "fr",
|
| 895 |
+
"url": "https://fr.vuejs.org/api/built-in-directives.html#v-on"
|
| 896 |
+
},
|
| 897 |
+
{
|
| 898 |
+
"name": "ko",
|
| 899 |
+
"url": "https://ko.vuejs.org/api/built-in-directives.html#v-on"
|
| 900 |
+
},
|
| 901 |
+
{
|
| 902 |
+
"name": "pt",
|
| 903 |
+
"url": "https://pt.vuejs.org/api/built-in-directives.html#v-on"
|
| 904 |
+
},
|
| 905 |
+
{
|
| 906 |
+
"name": "bn",
|
| 907 |
+
"url": "https://bn.vuejs.org/api/built-in-directives.html#v-on"
|
| 908 |
+
},
|
| 909 |
+
{
|
| 910 |
+
"name": "it",
|
| 911 |
+
"url": "https://it.vuejs.org/api/built-in-directives.html#v-on"
|
| 912 |
+
},
|
| 913 |
+
{
|
| 914 |
+
"name": "cs",
|
| 915 |
+
"url": "https://cs.vuejs.org/api/built-in-directives.html#v-on"
|
| 916 |
+
},
|
| 917 |
+
{
|
| 918 |
+
"name": "ru",
|
| 919 |
+
"url": "https://ru.vuejs.org/api/built-in-directives.html#v-on"
|
| 920 |
+
},
|
| 921 |
+
{
|
| 922 |
+
"name": "fa",
|
| 923 |
+
"url": "https://fa.vuejs.org/api/built-in-directives.html#v-on"
|
| 924 |
+
}
|
| 925 |
+
]
|
| 926 |
+
},
|
| 927 |
+
{
|
| 928 |
+
"name": "v-bind",
|
| 929 |
+
"description": {
|
| 930 |
+
"kind": "markdown",
|
| 931 |
+
"value": "\n하나 이상의 속성 또는 컴포넌트 prop을 표현식에 동적으로 바인딩합니다.\n\n- **단축 문법:**\n - `:` 또는 `.`(`.prop` 수식어를 사용할 때)\n - 속성(attribute)과 바인딩된 값이 같은 이름을 가질 경우 값을 생략할 수 있음 <sup class=\"vt-badge\">3.4+</sup>\n\n- **요구되는 값**: `any (인자 있이) | Object (인자 없이)`\n\n- **인자:** `attrOrProp (optional)`\n\n- **수식어:**\n\n - `.camel` - kebab-case 속성 이름을 camelCase로 변환.\n - `.prop` - 바인딩을 [DOM 속성(property: 이하 프로퍼티)](https://developer.mozilla.org/en-US/docs/Web/API/Element#properties)으로 강제 설정. <sup class=\"vt-badge\">3.2+</sup>\n - `.attr` - 바인딩을 [DOM 속성(attribute)](https://developer.mozilla.org/en-US/docs/Glossary/Attribute)으로 강제 설정. <sup class=\"vt-badge\">3.2+</sup>\n\n- **사용법**:\n\n `class` 또는 `style` 속성을 바인딩하는 데 사용되는 경우, `v-bind`는 배열 또는 객체와 같이 값을 추가할 수 있는 타입을 지원합니다. 자세한 내용은 아래 링크된 가이드 섹션을 참고합시다.\n\n 엘리먼트에 바인딩을 설정할 때, Vue는 기본적으로 연산자 검사를 위한 `in`을 사용하여, 엘리먼트에 프로퍼티로 정의된 키가 있는지 확인합니다. 프로퍼티가 정의되면, Vue는 속성 대신 DOM 프로퍼티로 값을 설정합니다. 이것은 대부분의 경우 작동하지만, `.prop` 또는 `.attr` 수식어를 명시적으로 사용하여 이 동작을 재정의할 수 있습니다. 이것은 특히 [커스텀 엘리먼트로 작업](https://ko.vuejs.org/guide/extras/web-components.html#passing-dom-properties)할 때 필요합니다.\n\n 컴포넌트 prop 바인딩에 사용될 때 prop은 자식 컴포넌트에서 적절하게 선언되어야 합니다.\n\n 인자 없이 사용하는 경우, 속성을 이름-값 쌍으로 포함하는 객체를 바인딩하는 데 사용할 수 있습니다. 이 모드에서 `class`와 `style`은 배열 또는 객체를 지원하지 않습니다.\n\n- **예제**\n\n ```html\n <!-- 속성 바인딩 -->\n <img v-bind:src=\"imageSrc\" />\n\n <!-- 동적인 속성명 -->\n <button v-bind:[key]=\"value\"></button>\n\n <!-- 단축 문법 -->\n <img :src=\"imageSrc\" />\n\n <!-- 같은 이름 생략 가능 (3.4+), 오른쪽과 같음 :src=\"src\" -->\n <img :src />\n \n <!-- 단축 문법과 동적 속성명 -->\n <button :[key]=\"value\"></button>\n\n <!-- 인라인으로 문자열 결합 -->\n <img :src=\"'/path/to/images/' + fileName\" />\n\n <!-- class 바인딩 -->\n <div :class=\"{ red: isRed }\"></div>\n <div :class=\"[classA, classB]\"></div>\n <div :class=\"[classA, { classB: isB, classC: isC }]\"></div>\n\n <!-- style 바인딩 -->\n <div :style=\"{ fontSize: size + 'px' }\"></div>\n <div :style=\"[styleObjectA, styleObjectB]\"></div>\n\n <!-- 속성을 객체로 바인딩 -->\n <div v-bind=\"{ id: someProp, 'other-attr': otherProp }\"></div>\n\n <!-- prop 바인딩. \"prop\"은 자식 컴포넌트에서 선언되어 있어야 함 -->\n <MyComponent :prop=\"someThing\" />\n\n <!-- 자식 컴포넌트와 공유될 부모 props를 전달 -->\n <MyComponent v-bind=\"$props\" />\n \n <!-- XLink -->\n <svg><a :xlink:special=\"foo\"></a></svg>\n ```\n\n `.prop` 수식어에는 전용 단축 문법 `.`가 있습니다:\n\n ```html\n <div :someProperty.prop=\"someObject\"></div>\n\n <!-- 위 코드는 아래와 같이 단축할 수 있음 -->\n <div .someProperty=\"someObject\"></div>\n ```\n\n `.camel` 수식어는 DOM 내 템플릿을 사용할 때, `v-bind`의 속성명을 카멜라이징(camelizing)할 수 있습니다. 예를 들면, SVG `viewBox` 속성:\n\n ```html\n <svg :view-box.camel=\"viewBox\"></svg>\n ```\n\n 문자열 템플릿을 사용하거나 템플릿을 빌드 과정으로 미리 컴파일하는 경우에는 `.camel`이 필요하지 않습니다.\n\n- **참고**:\n - [가이드 - 클래스와 스타일 바인딩](https://ko.vuejs.org/guide/essentials/class-and-style.html)\n - [가이드 - Props: Props 전달에 관한 심화](https://ko.vuejs.org/guide/components/props.html#prop-passing-details)\n"
|
| 932 |
+
},
|
| 933 |
+
"references": [
|
| 934 |
+
{
|
| 935 |
+
"name": "en",
|
| 936 |
+
"url": "https://vuejs.org/api/built-in-directives.html#v-bind"
|
| 937 |
+
},
|
| 938 |
+
{
|
| 939 |
+
"name": "zh-cn",
|
| 940 |
+
"url": "https://cn.vuejs.org/api/built-in-directives.html#v-bind"
|
| 941 |
+
},
|
| 942 |
+
{
|
| 943 |
+
"name": "ja",
|
| 944 |
+
"url": "https://ja.vuejs.org/api/built-in-directives.html#v-bind"
|
| 945 |
+
},
|
| 946 |
+
{
|
| 947 |
+
"name": "ua",
|
| 948 |
+
"url": "https://ua.vuejs.org/api/built-in-directives.html#v-bind"
|
| 949 |
+
},
|
| 950 |
+
{
|
| 951 |
+
"name": "fr",
|
| 952 |
+
"url": "https://fr.vuejs.org/api/built-in-directives.html#v-bind"
|
| 953 |
+
},
|
| 954 |
+
{
|
| 955 |
+
"name": "ko",
|
| 956 |
+
"url": "https://ko.vuejs.org/api/built-in-directives.html#v-bind"
|
| 957 |
+
},
|
| 958 |
+
{
|
| 959 |
+
"name": "pt",
|
| 960 |
+
"url": "https://pt.vuejs.org/api/built-in-directives.html#v-bind"
|
| 961 |
+
},
|
| 962 |
+
{
|
| 963 |
+
"name": "bn",
|
| 964 |
+
"url": "https://bn.vuejs.org/api/built-in-directives.html#v-bind"
|
| 965 |
+
},
|
| 966 |
+
{
|
| 967 |
+
"name": "it",
|
| 968 |
+
"url": "https://it.vuejs.org/api/built-in-directives.html#v-bind"
|
| 969 |
+
},
|
| 970 |
+
{
|
| 971 |
+
"name": "cs",
|
| 972 |
+
"url": "https://cs.vuejs.org/api/built-in-directives.html#v-bind"
|
| 973 |
+
},
|
| 974 |
+
{
|
| 975 |
+
"name": "ru",
|
| 976 |
+
"url": "https://ru.vuejs.org/api/built-in-directives.html#v-bind"
|
| 977 |
+
},
|
| 978 |
+
{
|
| 979 |
+
"name": "fa",
|
| 980 |
+
"url": "https://fa.vuejs.org/api/built-in-directives.html#v-bind"
|
| 981 |
+
}
|
| 982 |
+
]
|
| 983 |
+
},
|
| 984 |
+
{
|
| 985 |
+
"name": "v-model",
|
| 986 |
+
"description": {
|
| 987 |
+
"kind": "markdown",
|
| 988 |
+
"value": "\n사용자 입력을 받는 폼(form) 엘리먼트 또는 컴포넌트에 양방향 바인딩을 만듭니다.\n\n- **요구되는 값**: 사용자 입력을 받는 폼 엘리먼트 또는 컴포넌트의 출력 값에 따라 다름.\n\n- **다음으로 제한됨**:\n\n - `<input>`\n - `<select>`\n - `<textarea>`\n - 컴포넌트\n\n- **수식어:**\n\n - [`.lazy`](https://ko.vuejs.org/guide/essentials/forms.html#lazy) - `input` 대신 `change` 이벤트를 수신함.\n - [`.number`](https://ko.vuejs.org/guide/essentials/forms.html#number) - 유효한 입력 문자열을 숫자로 변환하여 전달.\n - [`.trim`](https://ko.vuejs.org/guide/essentials/forms.html#trim) - 사용자 입력의 공백을 트리밍.\n\n- **참고**:\n\n - [가이드 - Form 입력 바인딩](https://ko.vuejs.org/guide/essentials/forms.html)\n - [가이드 - 이벤트: `v-model`과 함께 사용하기](https://ko.vuejs.org/guide/components/v-model.html)\n"
|
| 989 |
+
},
|
| 990 |
+
"references": [
|
| 991 |
+
{
|
| 992 |
+
"name": "en",
|
| 993 |
+
"url": "https://vuejs.org/api/built-in-directives.html#v-model"
|
| 994 |
+
},
|
| 995 |
+
{
|
| 996 |
+
"name": "zh-cn",
|
| 997 |
+
"url": "https://cn.vuejs.org/api/built-in-directives.html#v-model"
|
| 998 |
+
},
|
| 999 |
+
{
|
| 1000 |
+
"name": "ja",
|
| 1001 |
+
"url": "https://ja.vuejs.org/api/built-in-directives.html#v-model"
|
| 1002 |
+
},
|
| 1003 |
+
{
|
| 1004 |
+
"name": "ua",
|
| 1005 |
+
"url": "https://ua.vuejs.org/api/built-in-directives.html#v-model"
|
| 1006 |
+
},
|
| 1007 |
+
{
|
| 1008 |
+
"name": "fr",
|
| 1009 |
+
"url": "https://fr.vuejs.org/api/built-in-directives.html#v-model"
|
| 1010 |
+
},
|
| 1011 |
+
{
|
| 1012 |
+
"name": "ko",
|
| 1013 |
+
"url": "https://ko.vuejs.org/api/built-in-directives.html#v-model"
|
| 1014 |
+
},
|
| 1015 |
+
{
|
| 1016 |
+
"name": "pt",
|
| 1017 |
+
"url": "https://pt.vuejs.org/api/built-in-directives.html#v-model"
|
| 1018 |
+
},
|
| 1019 |
+
{
|
| 1020 |
+
"name": "bn",
|
| 1021 |
+
"url": "https://bn.vuejs.org/api/built-in-directives.html#v-model"
|
| 1022 |
+
},
|
| 1023 |
+
{
|
| 1024 |
+
"name": "it",
|
| 1025 |
+
"url": "https://it.vuejs.org/api/built-in-directives.html#v-model"
|
| 1026 |
+
},
|
| 1027 |
+
{
|
| 1028 |
+
"name": "cs",
|
| 1029 |
+
"url": "https://cs.vuejs.org/api/built-in-directives.html#v-model"
|
| 1030 |
+
},
|
| 1031 |
+
{
|
| 1032 |
+
"name": "ru",
|
| 1033 |
+
"url": "https://ru.vuejs.org/api/built-in-directives.html#v-model"
|
| 1034 |
+
},
|
| 1035 |
+
{
|
| 1036 |
+
"name": "fa",
|
| 1037 |
+
"url": "https://fa.vuejs.org/api/built-in-directives.html#v-model"
|
| 1038 |
+
}
|
| 1039 |
+
]
|
| 1040 |
+
},
|
| 1041 |
+
{
|
| 1042 |
+
"name": "v-slot",
|
| 1043 |
+
"description": {
|
| 1044 |
+
"kind": "markdown",
|
| 1045 |
+
"value": "\n이름이 있는 슬롯 또는 props를 받을 것으로 예상되는 범위형 (Scoped) 슬롯을 나타냅니다.\n\n- **단축 문법:** `#`\n\n- **요구되는 값**: JavaScript expression that is valid in a function argument position, including support for destructuring. Optional - only needed if expecting props to be passed to the slot.\n\n- **인자:** 슬롯 이름 (선택적, 기본값은 `default`)\n\n- **다음으로 제한됨**:\n\n - `<template>`\n - [컴포넌트](https://ko.vuejs.org/guide/components/slots.html#scoped-slots) (props를 수신할 기본 슬롯만 있는 경우)\n\n- **예제**\n\n ```html\n <!-- 이름이 있는 슬롯 -->\n <BaseLayout>\n <template v-slot:header>\n 해더 컨텐츠\n </template>\n\n <template v-slot:default>\n 기본 슬롯 컨텐츠\n </template>\n\n <template v-slot:footer>\n 푸터 컨텐츠\n </template>\n </BaseLayout>\n\n <!-- props를 수신할 기본 슬롯 -->\n <InfiniteScroll>\n <template v-slot:item=\"slotProps\">\n <div class=\"item\">\n {{ slotProps.item.text }}\n </div>\n </template>\n </InfiniteScroll>\n\n <!-- props를 수신할 기본 슬롯, 분해할당을 사용 -->\n <Mouse v-slot=\"{ x, y }\">\n 마우스 위치: {{ x }}, {{ y }}\n </Mouse>\n ```\n\n- **참고**:\n - [가이드 - 슬롯](https://ko.vuejs.org/guide/components/slots.html)\n"
|
| 1046 |
+
},
|
| 1047 |
+
"references": [
|
| 1048 |
+
{
|
| 1049 |
+
"name": "en",
|
| 1050 |
+
"url": "https://vuejs.org/api/built-in-directives.html#v-slot"
|
| 1051 |
+
},
|
| 1052 |
+
{
|
| 1053 |
+
"name": "zh-cn",
|
| 1054 |
+
"url": "https://cn.vuejs.org/api/built-in-directives.html#v-slot"
|
| 1055 |
+
},
|
| 1056 |
+
{
|
| 1057 |
+
"name": "ja",
|
| 1058 |
+
"url": "https://ja.vuejs.org/api/built-in-directives.html#v-slot"
|
| 1059 |
+
},
|
| 1060 |
+
{
|
| 1061 |
+
"name": "ua",
|
| 1062 |
+
"url": "https://ua.vuejs.org/api/built-in-directives.html#v-slot"
|
| 1063 |
+
},
|
| 1064 |
+
{
|
| 1065 |
+
"name": "fr",
|
| 1066 |
+
"url": "https://fr.vuejs.org/api/built-in-directives.html#v-slot"
|
| 1067 |
+
},
|
| 1068 |
+
{
|
| 1069 |
+
"name": "ko",
|
| 1070 |
+
"url": "https://ko.vuejs.org/api/built-in-directives.html#v-slot"
|
| 1071 |
+
},
|
| 1072 |
+
{
|
| 1073 |
+
"name": "pt",
|
| 1074 |
+
"url": "https://pt.vuejs.org/api/built-in-directives.html#v-slot"
|
| 1075 |
+
},
|
| 1076 |
+
{
|
| 1077 |
+
"name": "bn",
|
| 1078 |
+
"url": "https://bn.vuejs.org/api/built-in-directives.html#v-slot"
|
| 1079 |
+
},
|
| 1080 |
+
{
|
| 1081 |
+
"name": "it",
|
| 1082 |
+
"url": "https://it.vuejs.org/api/built-in-directives.html#v-slot"
|
| 1083 |
+
},
|
| 1084 |
+
{
|
| 1085 |
+
"name": "cs",
|
| 1086 |
+
"url": "https://cs.vuejs.org/api/built-in-directives.html#v-slot"
|
| 1087 |
+
},
|
| 1088 |
+
{
|
| 1089 |
+
"name": "ru",
|
| 1090 |
+
"url": "https://ru.vuejs.org/api/built-in-directives.html#v-slot"
|
| 1091 |
+
},
|
| 1092 |
+
{
|
| 1093 |
+
"name": "fa",
|
| 1094 |
+
"url": "https://fa.vuejs.org/api/built-in-directives.html#v-slot"
|
| 1095 |
+
}
|
| 1096 |
+
]
|
| 1097 |
+
},
|
| 1098 |
+
{
|
| 1099 |
+
"name": "v-pre",
|
| 1100 |
+
"description": {
|
| 1101 |
+
"kind": "markdown",
|
| 1102 |
+
"value": "\n이 엘리먼트와 모든 자식 엘리먼트의 컴파일을 생략합니다.\n\n- **표현식을 허용하지 않습니다**.\n\n- **세부 사항**:\n\n `v-pre`가 있는 엘리먼트 내에서 모든 Vue 템플릿 구문은 그대로 유지되고 렌더링됩니다. 가장 일반적인 사용 사례는 이중 중괄호 태그를 표시하는 것입니다.\n\n- **예제**\n\n ```html\n <span v-pre>{{ 이곳은 컴파일되지 않습니다. }}</span>\n ```\n"
|
| 1103 |
+
},
|
| 1104 |
+
"references": [
|
| 1105 |
+
{
|
| 1106 |
+
"name": "en",
|
| 1107 |
+
"url": "https://vuejs.org/api/built-in-directives.html#v-pre"
|
| 1108 |
+
},
|
| 1109 |
+
{
|
| 1110 |
+
"name": "zh-cn",
|
| 1111 |
+
"url": "https://cn.vuejs.org/api/built-in-directives.html#v-pre"
|
| 1112 |
+
},
|
| 1113 |
+
{
|
| 1114 |
+
"name": "ja",
|
| 1115 |
+
"url": "https://ja.vuejs.org/api/built-in-directives.html#v-pre"
|
| 1116 |
+
},
|
| 1117 |
+
{
|
| 1118 |
+
"name": "ua",
|
| 1119 |
+
"url": "https://ua.vuejs.org/api/built-in-directives.html#v-pre"
|
| 1120 |
+
},
|
| 1121 |
+
{
|
| 1122 |
+
"name": "fr",
|
| 1123 |
+
"url": "https://fr.vuejs.org/api/built-in-directives.html#v-pre"
|
| 1124 |
+
},
|
| 1125 |
+
{
|
| 1126 |
+
"name": "ko",
|
| 1127 |
+
"url": "https://ko.vuejs.org/api/built-in-directives.html#v-pre"
|
| 1128 |
+
},
|
| 1129 |
+
{
|
| 1130 |
+
"name": "pt",
|
| 1131 |
+
"url": "https://pt.vuejs.org/api/built-in-directives.html#v-pre"
|
| 1132 |
+
},
|
| 1133 |
+
{
|
| 1134 |
+
"name": "bn",
|
| 1135 |
+
"url": "https://bn.vuejs.org/api/built-in-directives.html#v-pre"
|
| 1136 |
+
},
|
| 1137 |
+
{
|
| 1138 |
+
"name": "it",
|
| 1139 |
+
"url": "https://it.vuejs.org/api/built-in-directives.html#v-pre"
|
| 1140 |
+
},
|
| 1141 |
+
{
|
| 1142 |
+
"name": "cs",
|
| 1143 |
+
"url": "https://cs.vuejs.org/api/built-in-directives.html#v-pre"
|
| 1144 |
+
},
|
| 1145 |
+
{
|
| 1146 |
+
"name": "ru",
|
| 1147 |
+
"url": "https://ru.vuejs.org/api/built-in-directives.html#v-pre"
|
| 1148 |
+
},
|
| 1149 |
+
{
|
| 1150 |
+
"name": "fa",
|
| 1151 |
+
"url": "https://fa.vuejs.org/api/built-in-directives.html#v-pre"
|
| 1152 |
+
}
|
| 1153 |
+
]
|
| 1154 |
+
},
|
| 1155 |
+
{
|
| 1156 |
+
"name": "v-once",
|
| 1157 |
+
"description": {
|
| 1158 |
+
"kind": "markdown",
|
| 1159 |
+
"value": "\n엘리먼트와 컴포넌트를 한 번만 렌더링하고, 향후 업데이트를 생략합니다.\n\n- **표현식을 허용하지 않습니다**.\n\n- **세부 사항**:\n\n 이후 다시 렌더링할 때 엘리먼트/컴포넌트 및 모든 자식들은 정적 컨텐츠로 처리되어 생략됩니다. 이것은 업데이트 성능을 최적화하는 데 사용할 수 있습니다.\n\n ```html\n <!-- 단일 엘리먼트 -->\n <span v-once>절대 바뀌지 않음: {{msg}}</span>\n <!-- 자식이 있는 엘리먼트 -->\n <div v-once>\n <h1>댓글</h1>\n <p>{{msg}}</p>\n </div>\n <!-- 컴포넌트 -->\n <MyComponent v-once :comment=\"msg\"></MyComponent>\n <!-- `v-for` 디렉티브 -->\n <ul>\n <li v-for=\"i in list\" v-once>{{i}}</li>\n </ul>\n ```\n\n 3.2부터는 [`v-memo`](#v-memo)를 사용하여 무효화 조건으로 템플릿의 일부를 메모화할 수도 있습니다.\n\n- **참고**:\n - [가이드 - 템플릿 문법: 텍스트 보간법](https://ko.vuejs.org/guide/essentials/template-syntax.html#text-interpolation)\n - [v-memo](#v-memo)\n"
|
| 1160 |
+
},
|
| 1161 |
+
"references": [
|
| 1162 |
+
{
|
| 1163 |
+
"name": "en",
|
| 1164 |
+
"url": "https://vuejs.org/api/built-in-directives.html#v-once"
|
| 1165 |
+
},
|
| 1166 |
+
{
|
| 1167 |
+
"name": "zh-cn",
|
| 1168 |
+
"url": "https://cn.vuejs.org/api/built-in-directives.html#v-once"
|
| 1169 |
+
},
|
| 1170 |
+
{
|
| 1171 |
+
"name": "ja",
|
| 1172 |
+
"url": "https://ja.vuejs.org/api/built-in-directives.html#v-once"
|
| 1173 |
+
},
|
| 1174 |
+
{
|
| 1175 |
+
"name": "ua",
|
| 1176 |
+
"url": "https://ua.vuejs.org/api/built-in-directives.html#v-once"
|
| 1177 |
+
},
|
| 1178 |
+
{
|
| 1179 |
+
"name": "fr",
|
| 1180 |
+
"url": "https://fr.vuejs.org/api/built-in-directives.html#v-once"
|
| 1181 |
+
},
|
| 1182 |
+
{
|
| 1183 |
+
"name": "ko",
|
| 1184 |
+
"url": "https://ko.vuejs.org/api/built-in-directives.html#v-once"
|
| 1185 |
+
},
|
| 1186 |
+
{
|
| 1187 |
+
"name": "pt",
|
| 1188 |
+
"url": "https://pt.vuejs.org/api/built-in-directives.html#v-once"
|
| 1189 |
+
},
|
| 1190 |
+
{
|
| 1191 |
+
"name": "bn",
|
| 1192 |
+
"url": "https://bn.vuejs.org/api/built-in-directives.html#v-once"
|
| 1193 |
+
},
|
| 1194 |
+
{
|
| 1195 |
+
"name": "it",
|
| 1196 |
+
"url": "https://it.vuejs.org/api/built-in-directives.html#v-once"
|
| 1197 |
+
},
|
| 1198 |
+
{
|
| 1199 |
+
"name": "cs",
|
| 1200 |
+
"url": "https://cs.vuejs.org/api/built-in-directives.html#v-once"
|
| 1201 |
+
},
|
| 1202 |
+
{
|
| 1203 |
+
"name": "ru",
|
| 1204 |
+
"url": "https://ru.vuejs.org/api/built-in-directives.html#v-once"
|
| 1205 |
+
},
|
| 1206 |
+
{
|
| 1207 |
+
"name": "fa",
|
| 1208 |
+
"url": "https://fa.vuejs.org/api/built-in-directives.html#v-once"
|
| 1209 |
+
}
|
| 1210 |
+
]
|
| 1211 |
+
},
|
| 1212 |
+
{
|
| 1213 |
+
"name": "v-memo",
|
| 1214 |
+
"description": {
|
| 1215 |
+
"kind": "markdown",
|
| 1216 |
+
"value": "\n- **요구되는 값**: `any[]`\n\n- **세부 사항**:\n\n 템플릿의 하위 트리를 메모합니다. 엘리먼트와 컴포넌트 모두에 사용할 수 있습니다. 디렉티브는 메모이제이션을 위해 비교할 의존성 값의 고정된 길이의 배열을 요구합니다. 배열의 모든 값이 마지막 렌더링과 같으면 전체 하위 트리에 대한 업데이트를 생략합니다. 예를 들어:\n\n ```html\n <div v-memo=\"[valueA, valueB]\">\n ...\n </div>\n ```\n\n 컴포넌트가 다시 렌더링될 때 `valueA`와 `valueB`가 모두 동일하게 유지되면, 이 `<div>`와 하위 항목에 대한 모든 업데이트를 생략합니다. 사실, 하위 트리의 메모된 복사본을 재사용할 수 있기 때문에 가상 DOM VNode 생성도 생략합니다.\n\n 메모이제이션 배열을 올바르게 지정하는 것이 중요합니다. 그렇지 않으면 실제로 적용되어야 하는 업데이트를 건너뛸 수 있습니다. 빈 의존성 배열(`v-memo=\"[]\"`)이 있는 `v-memo`는 기능적으로 `v-once`와 동일합니다.\n\n **`v-for`과 함께 사용하기**\n\n `v-memo`는 성능이 중요한 시나리오에서 마이크로 최적화를 위해 제공되는 것으로, 일반적으로 거의 필요하지 않습니다. 이것이 도움이 될 수 있는 가장 일반적인 경우는 큰 리스트(`length > 1000`)를 `v-for`로 렌더링할 때입니다:\n\n ```html\n <div v-for=\"item in list\" :key=\"item.id\" v-memo=\"[item.id === selected]\">\n <p>ID: {{ item.id }} - 선택됨: {{ item.id === selected }}</p>\n <p>...더 많은 자식 노드</p>\n </div>\n ```\n\n 컴포넌트의 `selected` 상태가 변경되면, 대부분의 아이템이 정확히 동일하게 유지되더라도 많은 양의 VNode가 생성됩니다. 여기서 `v-memo` 사용법은 본질적으로 \"아이템의 선택여부가 바뀐 경우에만, 이 아이템을 업데이트하십시오\"입니다. 이렇게 하면 영향을 받지 않는 모든 아이템��� 이전 VNode를 재사용하고, 차이점 비교를 생략할 수 있습니다. Vue는 아이템의 `:key`로 자동 추론하므로, 메모 의존성 배열에 `item.id`를 포함할 필요가 없습니다.\n\n :::warning\n `v-for`와 함께 `v-memo`를 사용할 때, 동일한 엘리먼트에 사용되는지 확인이 필요합니다. **`v-memo`는 `v-for` 내에서 작동하지 않습니다**.\n :::\n\n `v-memo`는 자식 컴포넌트 업데이트 확인이 최적화되지 않은 특정 엣지 케이스에서 원치 않는 업데이트를 수동으로 방지하기 위해 컴포넌트에 사용할 수도 있습니다. 그러나 필요한 업데이트를 건너뛰지 않도록 올바른 의존성 배열을 지정하는 것은 개발자의 책임입니다.\n\n- **참고**:\n - [v-once](#v-once)\n"
|
| 1217 |
+
},
|
| 1218 |
+
"references": [
|
| 1219 |
+
{
|
| 1220 |
+
"name": "en",
|
| 1221 |
+
"url": "https://vuejs.org/api/built-in-directives.html#v-memo"
|
| 1222 |
+
},
|
| 1223 |
+
{
|
| 1224 |
+
"name": "zh-cn",
|
| 1225 |
+
"url": "https://cn.vuejs.org/api/built-in-directives.html#v-memo"
|
| 1226 |
+
},
|
| 1227 |
+
{
|
| 1228 |
+
"name": "ja",
|
| 1229 |
+
"url": "https://ja.vuejs.org/api/built-in-directives.html#v-memo"
|
| 1230 |
+
},
|
| 1231 |
+
{
|
| 1232 |
+
"name": "ua",
|
| 1233 |
+
"url": "https://ua.vuejs.org/api/built-in-directives.html#v-memo"
|
| 1234 |
+
},
|
| 1235 |
+
{
|
| 1236 |
+
"name": "fr",
|
| 1237 |
+
"url": "https://fr.vuejs.org/api/built-in-directives.html#v-memo"
|
| 1238 |
+
},
|
| 1239 |
+
{
|
| 1240 |
+
"name": "ko",
|
| 1241 |
+
"url": "https://ko.vuejs.org/api/built-in-directives.html#v-memo"
|
| 1242 |
+
},
|
| 1243 |
+
{
|
| 1244 |
+
"name": "pt",
|
| 1245 |
+
"url": "https://pt.vuejs.org/api/built-in-directives.html#v-memo"
|
| 1246 |
+
},
|
| 1247 |
+
{
|
| 1248 |
+
"name": "bn",
|
| 1249 |
+
"url": "https://bn.vuejs.org/api/built-in-directives.html#v-memo"
|
| 1250 |
+
},
|
| 1251 |
+
{
|
| 1252 |
+
"name": "it",
|
| 1253 |
+
"url": "https://it.vuejs.org/api/built-in-directives.html#v-memo"
|
| 1254 |
+
},
|
| 1255 |
+
{
|
| 1256 |
+
"name": "cs",
|
| 1257 |
+
"url": "https://cs.vuejs.org/api/built-in-directives.html#v-memo"
|
| 1258 |
+
},
|
| 1259 |
+
{
|
| 1260 |
+
"name": "ru",
|
| 1261 |
+
"url": "https://ru.vuejs.org/api/built-in-directives.html#v-memo"
|
| 1262 |
+
},
|
| 1263 |
+
{
|
| 1264 |
+
"name": "fa",
|
| 1265 |
+
"url": "https://fa.vuejs.org/api/built-in-directives.html#v-memo"
|
| 1266 |
+
}
|
| 1267 |
+
]
|
| 1268 |
+
},
|
| 1269 |
+
{
|
| 1270 |
+
"name": "v-cloak",
|
| 1271 |
+
"description": {
|
| 1272 |
+
"kind": "markdown",
|
| 1273 |
+
"value": "\n준비될 때까지 컴파일되지 않은 템플릿을 숨기는 데 사용됩니다.\n\n- **표현식을 허용하지 않습니다**.\n\n- **세부 사항**:\n\n **이 디렉티브는 빌드 과정이 없는 설정에서만 필요합니다**.\n\n DOM 내 템플릿을 사용할 때, \"컴파일되지 않은 템플릿이 순간 보이는 현상\"이 있을 수 있습니다. 이러면 사용자는 컴포넌트가 렌더링된 컨텐츠로 대체할 때까지 이중 중괄호 태그를 볼 수 있습니다.\n\n `v-cloak`은 연결된 컴포넌트 인스턴스가 마운트될 때까지 엘리먼트에 남아 있습니다. `[v-cloak] { display: none }`과 같은 CSS 규칙과 결합하여, 컴포넌트가 준비될 때까지 템플릿을 숨기는 데 사용할 수 있습니다.\n\n- **예제**\n\n ```css\n [v-cloak] {\n display: none;\n }\n ```\n\n ```html\n <div v-cloak>\n {{ message }}\n </div>\n ```\n\n `<div>`는 컴파일이 완료될 때까지 표시되지 않습니다.\n"
|
| 1274 |
+
},
|
| 1275 |
+
"references": [
|
| 1276 |
+
{
|
| 1277 |
+
"name": "en",
|
| 1278 |
+
"url": "https://vuejs.org/api/built-in-directives.html#v-cloak"
|
| 1279 |
+
},
|
| 1280 |
+
{
|
| 1281 |
+
"name": "zh-cn",
|
| 1282 |
+
"url": "https://cn.vuejs.org/api/built-in-directives.html#v-cloak"
|
| 1283 |
+
},
|
| 1284 |
+
{
|
| 1285 |
+
"name": "ja",
|
| 1286 |
+
"url": "https://ja.vuejs.org/api/built-in-directives.html#v-cloak"
|
| 1287 |
+
},
|
| 1288 |
+
{
|
| 1289 |
+
"name": "ua",
|
| 1290 |
+
"url": "https://ua.vuejs.org/api/built-in-directives.html#v-cloak"
|
| 1291 |
+
},
|
| 1292 |
+
{
|
| 1293 |
+
"name": "fr",
|
| 1294 |
+
"url": "https://fr.vuejs.org/api/built-in-directives.html#v-cloak"
|
| 1295 |
+
},
|
| 1296 |
+
{
|
| 1297 |
+
"name": "ko",
|
| 1298 |
+
"url": "https://ko.vuejs.org/api/built-in-directives.html#v-cloak"
|
| 1299 |
+
},
|
| 1300 |
+
{
|
| 1301 |
+
"name": "pt",
|
| 1302 |
+
"url": "https://pt.vuejs.org/api/built-in-directives.html#v-cloak"
|
| 1303 |
+
},
|
| 1304 |
+
{
|
| 1305 |
+
"name": "bn",
|
| 1306 |
+
"url": "https://bn.vuejs.org/api/built-in-directives.html#v-cloak"
|
| 1307 |
+
},
|
| 1308 |
+
{
|
| 1309 |
+
"name": "it",
|
| 1310 |
+
"url": "https://it.vuejs.org/api/built-in-directives.html#v-cloak"
|
| 1311 |
+
},
|
| 1312 |
+
{
|
| 1313 |
+
"name": "cs",
|
| 1314 |
+
"url": "https://cs.vuejs.org/api/built-in-directives.html#v-cloak"
|
| 1315 |
+
},
|
| 1316 |
+
{
|
| 1317 |
+
"name": "ru",
|
| 1318 |
+
"url": "https://ru.vuejs.org/api/built-in-directives.html#v-cloak"
|
| 1319 |
+
},
|
| 1320 |
+
{
|
| 1321 |
+
"name": "fa",
|
| 1322 |
+
"url": "https://fa.vuejs.org/api/built-in-directives.html#v-cloak"
|
| 1323 |
+
}
|
| 1324 |
+
]
|
| 1325 |
+
},
|
| 1326 |
+
{
|
| 1327 |
+
"name": "key",
|
| 1328 |
+
"description": {
|
| 1329 |
+
"kind": "markdown",
|
| 1330 |
+
"value": "\n특수 속성 `key`는 Vue의 가상 DOM 알고리즘이 이전 목록과 새 노드 목록을 비교할 때 vnode를 식별하는 힌트로 주로 사용됩니다.\n\n- **요구되는 값**: `number | string | symbol`\n\n- **세부 사항**:\n\n 키가 없으면 Vue는 엘리먼트 이동을 최소화하고 동일한 유형의 엘리먼트를 가능한 한 제자리에서 패치/재사용하는 알고리즘을 사용합니다.\n 키를 사용하면 키의 순서 변경에 따라 엘리먼트를 재정렬하고 더 이상 존재하지 않는 키가 있는 엘리먼트는 항상 제거/파기됩니다.\n\n 동일한 공통 부모의 자식들은 **고유 키**가 있어야 합니다.\n 키가 중복되면 렌더링 에러가 발생합니다.\n\n `v-for`에서 가장 일반적으로 사용 됩니다:\n\n ```html\n <ul>\n <li v-for=\"item in items\" :key=\"item.id\">...</li>\n </ul>\n ```\n\n 또는 엘리먼트/컴포넌트를 재사용하는 대신 강제로 교체하는 데 사용할 수도 있습니다.\n 다음과 같은 경우에 유용할 수 있습니다:\n\n - 컴포넌트의 생명 주기 훅을 올바르게 트리거함.\n - 트랜지션 트리거\n\n 예제:\n\n ```html\n <transition>\n <span :key=\"text\">{{ text }}</span>\n </transition>\n ```\n\n `text`가 변경되면 `<span>`이 패치 대신 항상 교체되므로 트랜지션이 트리거됩니다.\n\n- **참고**: [가이드 - 리스트 렌더링: `key`를 통한 상태유지](https://ko.vuejs.org/guide/essentials/list.html#maintaining-state-with-key)\n"
|
| 1331 |
+
},
|
| 1332 |
+
"references": [
|
| 1333 |
+
{
|
| 1334 |
+
"name": "en",
|
| 1335 |
+
"url": "https://vuejs.org/api/built-in-special-attributes.html#key"
|
| 1336 |
+
},
|
| 1337 |
+
{
|
| 1338 |
+
"name": "zh-cn",
|
| 1339 |
+
"url": "https://cn.vuejs.org/api/built-in-special-attributes.html#key"
|
| 1340 |
+
},
|
| 1341 |
+
{
|
| 1342 |
+
"name": "ja",
|
| 1343 |
+
"url": "https://ja.vuejs.org/api/built-in-special-attributes.html#key"
|
| 1344 |
+
},
|
| 1345 |
+
{
|
| 1346 |
+
"name": "ua",
|
| 1347 |
+
"url": "https://ua.vuejs.org/api/built-in-special-attributes.html#key"
|
| 1348 |
+
},
|
| 1349 |
+
{
|
| 1350 |
+
"name": "fr",
|
| 1351 |
+
"url": "https://fr.vuejs.org/api/built-in-special-attributes.html#key"
|
| 1352 |
+
},
|
| 1353 |
+
{
|
| 1354 |
+
"name": "ko",
|
| 1355 |
+
"url": "https://ko.vuejs.org/api/built-in-special-attributes.html#key"
|
| 1356 |
+
},
|
| 1357 |
+
{
|
| 1358 |
+
"name": "pt",
|
| 1359 |
+
"url": "https://pt.vuejs.org/api/built-in-special-attributes.html#key"
|
| 1360 |
+
},
|
| 1361 |
+
{
|
| 1362 |
+
"name": "bn",
|
| 1363 |
+
"url": "https://bn.vuejs.org/api/built-in-special-attributes.html#key"
|
| 1364 |
+
},
|
| 1365 |
+
{
|
| 1366 |
+
"name": "it",
|
| 1367 |
+
"url": "https://it.vuejs.org/api/built-in-special-attributes.html#key"
|
| 1368 |
+
},
|
| 1369 |
+
{
|
| 1370 |
+
"name": "cs",
|
| 1371 |
+
"url": "https://cs.vuejs.org/api/built-in-special-attributes.html#key"
|
| 1372 |
+
},
|
| 1373 |
+
{
|
| 1374 |
+
"name": "ru",
|
| 1375 |
+
"url": "https://ru.vuejs.org/api/built-in-special-attributes.html#key"
|
| 1376 |
+
},
|
| 1377 |
+
{
|
| 1378 |
+
"name": "fa",
|
| 1379 |
+
"url": "https://fa.vuejs.org/api/built-in-special-attributes.html#key"
|
| 1380 |
+
}
|
| 1381 |
+
]
|
| 1382 |
+
},
|
| 1383 |
+
{
|
| 1384 |
+
"name": "ref",
|
| 1385 |
+
"description": {
|
| 1386 |
+
"kind": "markdown",
|
| 1387 |
+
"value": "\n[템플릿 참조](https://ko.vuejs.org/guide/essentials/template-refs.html)를 의미합니다.\n\n- **요구되는 값**: `string | Function`\n\n- **세부 사항**:\n\n `ref` is used to register a reference to an element or a child component.\n\n In Options API, the reference will be registered under the component's `this.$refs` object:\n\n `ref`는 엘리먼트 또는 자식 컴포넌트를 참조하기 위해 사용됩니다.\n\n 옵션 API에서 참조는 컴포넌트의 `this.$refs` 객체 내에 등록됩니다.\n\n ```html\n <!-- 저장됨: this.$refs.p -->\n <p ref=\"p\">안녕!</p>\n ```\n\n 컴포지션 API에서 참조는 이름이 일치하는 `ref`에 저장됩니다.\n\n ```vue\n <script setup>\n import { ref } from 'vue'\n\n const p = ref()\n </script>\n\n <template>\n <p ref=\"p\">안녕!</p>\n </template>\n ```\n\n 일반 DOM 엘리먼트에서 사용되는 경우, 참조는 해당 엘리먼트가 됩니다.\n 자식 컴포넌트에 사용되는 경우, 참조는 자식 컴포넌트 인스턴스가 됩니다.\n\n `ref`는 함수를 사용하여 참조 저장을 완전히 제어할 수 있습니다:\n\n ```html\n <ChildComponent :ref=\"(el) => child = el\" />\n ```\n\n 참조 등록 타이밍에 대한 중요한 참고 사항:\n 참조는 렌더 함수의 결과로 생성되므로,\n 접근하기 전에 컴포넌트가 마운트될 때까지 기다려야 합니다.\n\n `this.$refs`도 반응형이 아니므로 데이터 바인딩을 위한 템플릿에서 사용하면 안됩니다.\n\n- **참고**: \n - [가이드 - 템플릿 refs](https://ko.vuejs.org/guide/essentials/template-refs.html)\n - [Guide - 템플릿 Refs에 타입 적용하기Typing Template Refs](https://ko.vuejs.org/guide/typescript/composition-api.html#typing-template-refs) <sup class=\"vt-badge ts\" />\n - [Guide - 컴포넌트 템플릿 Refs에 타입 적용하기](https://ko.vuejs.org/guide/typescript/composition-api.html#typing-component-template-refs) <sup class=\"vt-badge ts\" />\n"
|
| 1388 |
+
},
|
| 1389 |
+
"references": [
|
| 1390 |
+
{
|
| 1391 |
+
"name": "en",
|
| 1392 |
+
"url": "https://vuejs.org/api/built-in-special-attributes.html#ref"
|
| 1393 |
+
},
|
| 1394 |
+
{
|
| 1395 |
+
"name": "zh-cn",
|
| 1396 |
+
"url": "https://cn.vuejs.org/api/built-in-special-attributes.html#ref"
|
| 1397 |
+
},
|
| 1398 |
+
{
|
| 1399 |
+
"name": "ja",
|
| 1400 |
+
"url": "https://ja.vuejs.org/api/built-in-special-attributes.html#ref"
|
| 1401 |
+
},
|
| 1402 |
+
{
|
| 1403 |
+
"name": "ua",
|
| 1404 |
+
"url": "https://ua.vuejs.org/api/built-in-special-attributes.html#ref"
|
| 1405 |
+
},
|
| 1406 |
+
{
|
| 1407 |
+
"name": "fr",
|
| 1408 |
+
"url": "https://fr.vuejs.org/api/built-in-special-attributes.html#ref"
|
| 1409 |
+
},
|
| 1410 |
+
{
|
| 1411 |
+
"name": "ko",
|
| 1412 |
+
"url": "https://ko.vuejs.org/api/built-in-special-attributes.html#ref"
|
| 1413 |
+
},
|
| 1414 |
+
{
|
| 1415 |
+
"name": "pt",
|
| 1416 |
+
"url": "https://pt.vuejs.org/api/built-in-special-attributes.html#ref"
|
| 1417 |
+
},
|
| 1418 |
+
{
|
| 1419 |
+
"name": "bn",
|
| 1420 |
+
"url": "https://bn.vuejs.org/api/built-in-special-attributes.html#ref"
|
| 1421 |
+
},
|
| 1422 |
+
{
|
| 1423 |
+
"name": "it",
|
| 1424 |
+
"url": "https://it.vuejs.org/api/built-in-special-attributes.html#ref"
|
| 1425 |
+
},
|
| 1426 |
+
{
|
| 1427 |
+
"name": "cs",
|
| 1428 |
+
"url": "https://cs.vuejs.org/api/built-in-special-attributes.html#ref"
|
| 1429 |
+
},
|
| 1430 |
+
{
|
| 1431 |
+
"name": "ru",
|
| 1432 |
+
"url": "https://ru.vuejs.org/api/built-in-special-attributes.html#ref"
|
| 1433 |
+
},
|
| 1434 |
+
{
|
| 1435 |
+
"name": "fa",
|
| 1436 |
+
"url": "https://fa.vuejs.org/api/built-in-special-attributes.html#ref"
|
| 1437 |
+
}
|
| 1438 |
+
]
|
| 1439 |
+
},
|
| 1440 |
+
{
|
| 1441 |
+
"name": "is",
|
| 1442 |
+
"description": {
|
| 1443 |
+
"kind": "markdown",
|
| 1444 |
+
"value": "\n[동적 컴포넌트](https://ko.vuejs.org/guide/essentials/component-basics.html#dynamic-components) 바인딩에 사용합니다.\n\n- **요구되는 값**: `string | Component`\n\n- **네이티브 엘리먼트에 사용** <sup class=\"vt-badge\">3.1+</sup>\n\n `is` 속성이 네이티브 HTML 엘리먼트에 사용되면,\n 네이티브 웹 플랫폼 함수인 [커스터마이즈 빌트인 엘리먼트](https://html.spec.whatwg.org/multipage/custom-elements#custom-elements-customized-builtin-example)로 해석됩니다.\n\n 그러나 [in-DOM 템플릿 파싱 주의 사항](https://ko.vuejs.org/guide/essentials/component-basics.html#in-dom-template-parsing-caveats)에 설명된 대로,\n 기본 엘리먼트를 Vue 컴포넌트로 교체하기 위해 Vue가 필요할 수 있는 사용 사례가 있습니다.\n Vue가 엘리먼트를 Vue 컴포넌트로 렌더링하도록 `is` 속성 값에 `vue:` 접두사를 붙일 수 있습니다:\n\n ```html\n <table>\n <tr is=\"vue:my-row-component\"></tr>\n </table>\n ```\n\n- **참고**:\n\n - [API - 특수 엘리먼트: `<component>`](https://ko.vuejs.org/api/built-in-special-elements.html#component)\n - [가이드 - 컴포넌트 기초: 동적 컴포넌트](https://ko.vuejs.org/guide/essentials/component-basics.html#dynamic-components)\n"
|
| 1445 |
+
},
|
| 1446 |
+
"references": [
|
| 1447 |
+
{
|
| 1448 |
+
"name": "en",
|
| 1449 |
+
"url": "https://vuejs.org/api/built-in-special-attributes.html#is"
|
| 1450 |
+
},
|
| 1451 |
+
{
|
| 1452 |
+
"name": "zh-cn",
|
| 1453 |
+
"url": "https://cn.vuejs.org/api/built-in-special-attributes.html#is"
|
| 1454 |
+
},
|
| 1455 |
+
{
|
| 1456 |
+
"name": "ja",
|
| 1457 |
+
"url": "https://ja.vuejs.org/api/built-in-special-attributes.html#is"
|
| 1458 |
+
},
|
| 1459 |
+
{
|
| 1460 |
+
"name": "ua",
|
| 1461 |
+
"url": "https://ua.vuejs.org/api/built-in-special-attributes.html#is"
|
| 1462 |
+
},
|
| 1463 |
+
{
|
| 1464 |
+
"name": "fr",
|
| 1465 |
+
"url": "https://fr.vuejs.org/api/built-in-special-attributes.html#is"
|
| 1466 |
+
},
|
| 1467 |
+
{
|
| 1468 |
+
"name": "ko",
|
| 1469 |
+
"url": "https://ko.vuejs.org/api/built-in-special-attributes.html#is"
|
| 1470 |
+
},
|
| 1471 |
+
{
|
| 1472 |
+
"name": "pt",
|
| 1473 |
+
"url": "https://pt.vuejs.org/api/built-in-special-attributes.html#is"
|
| 1474 |
+
},
|
| 1475 |
+
{
|
| 1476 |
+
"name": "bn",
|
| 1477 |
+
"url": "https://bn.vuejs.org/api/built-in-special-attributes.html#is"
|
| 1478 |
+
},
|
| 1479 |
+
{
|
| 1480 |
+
"name": "it",
|
| 1481 |
+
"url": "https://it.vuejs.org/api/built-in-special-attributes.html#is"
|
| 1482 |
+
},
|
| 1483 |
+
{
|
| 1484 |
+
"name": "cs",
|
| 1485 |
+
"url": "https://cs.vuejs.org/api/built-in-special-attributes.html#is"
|
| 1486 |
+
},
|
| 1487 |
+
{
|
| 1488 |
+
"name": "ru",
|
| 1489 |
+
"url": "https://ru.vuejs.org/api/built-in-special-attributes.html#is"
|
| 1490 |
+
},
|
| 1491 |
+
{
|
| 1492 |
+
"name": "fa",
|
| 1493 |
+
"url": "https://fa.vuejs.org/api/built-in-special-attributes.html#is"
|
| 1494 |
+
}
|
| 1495 |
+
]
|
| 1496 |
+
}
|
| 1497 |
+
]
|
| 1498 |
+
}
|
Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/@vue/language-service/data/template/pt.json
CHANGED
|
@@ -1,3 +1,1498 @@
|
|
| 1 |
-
|
| 2 |
-
|
| 3 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"version": 1.1,
|
| 3 |
+
"tags": [
|
| 4 |
+
{
|
| 5 |
+
"name": "Transition",
|
| 6 |
+
"description": {
|
| 7 |
+
"kind": "markdown",
|
| 8 |
+
"value": "\nFornece efeitos de transição animados para um **único** elemento ou componente.\n\n- **Propriedades**\n\n ```ts\n interface TransitionProps {\n /**\n * Usado para gerar automaticamente nomes de classes CSS de transição.\n * exemplo `name: 'fade'` expandirá automaticamente para `.fade-enter`,\n * `.fade-enter-active`, etc.\n */\n name?: string\n /**\n * Decide aplicar classes CSS de transição.\n * Padrão: true\n */\n css?: boolean\n /**\n * Especifica o tipo de eventos de transição à aguardar\n * para determinar a transição e o tempo.\n * O comportamento padrão é detetar automaticamente o tipo\n * que tiver a maior duração.\n */\n type?: 'transition' | 'animation'\n /**\n * Especifica durações explícitas para as transições.\n * O comportamento padrão é esperar pelo primeiro evento `transitionend`\n * ou `animationend` no elemento de transição raiz.\n */\n duration?: number | { enter: number; leave: number }\n /**\n * Controla a sequência de tempo das transições que entram ou saem.\n * O comportamento padrão é simultâneo.\n */\n mode?: 'in-out' | 'out-in' | 'default'\n /**\n * Define aplicar a transição na interpretação inicial.\n * Padrão: false\n */\n appear?: boolean\n\n /**\n * Propriedades para personalizar as classes de transição.\n * Use kebab-case nos modelos de marcação, exemplo enter-from-class=\"xxx\"\n */\n enterFromClass?: string\n enterActiveClass?: string\n enterToClass?: string\n appearFromClass?: string\n appearActiveClass?: string\n appearToClass?: string\n leaveFromClass?: string\n leaveActiveClass?: string\n leaveToClass?: string\n }\n ```\n\n- **Eventos**\n\n - `@before-enter`\n - `@before-leave`\n - `@enter`\n - `@leave`\n - `@appear`\n - `@after-enter`\n - `@after-leave`\n - `@after-appear`\n - `@enter-cancelled`\n - `@leave-cancelled` (apenas `v-show`)\n - `@appear-cancelled`\n\n- **Exemplo**\n\n Elemento simples:\n\n ```html\n <Transition>\n <div v-if=\"ok\">conteúdo alternado</div>\n </Transition>\n ```\n\n Forçar uma transição mudando o atributo `key`:\n\n ```html\n <Transition>\n <div :key=\"text\">{{ text }}</div>\n </Transition>\n ```\n\n Componente dinâmico, com o modo de transição + animação ao aparecer:\n\n ```html\n <Transition name=\"fade\" mode=\"out-in\" appear>\n <component :is=\"view\"></component>\n </Transition>\n ```\n\n Ouvir eventos de transição:\n\n ```html\n <Transition @after-enter=\"onTransitionComplete\">\n <div v-show=\"ok\">conteúdo ativado</div>\n </Transition>\n ```\n\n- **Consultar também:** [Guia - Transição](https://pt.vuejs.org/guide/built-ins/transition.html)\n"
|
| 9 |
+
},
|
| 10 |
+
"attributes": [],
|
| 11 |
+
"references": [
|
| 12 |
+
{
|
| 13 |
+
"name": "en",
|
| 14 |
+
"url": "https://vuejs.org/api/built-in-components.html#transition"
|
| 15 |
+
},
|
| 16 |
+
{
|
| 17 |
+
"name": "zh-cn",
|
| 18 |
+
"url": "https://cn.vuejs.org/api/built-in-components.html#transition"
|
| 19 |
+
},
|
| 20 |
+
{
|
| 21 |
+
"name": "ja",
|
| 22 |
+
"url": "https://ja.vuejs.org/api/built-in-components.html#transition"
|
| 23 |
+
},
|
| 24 |
+
{
|
| 25 |
+
"name": "ua",
|
| 26 |
+
"url": "https://ua.vuejs.org/api/built-in-components.html#transition"
|
| 27 |
+
},
|
| 28 |
+
{
|
| 29 |
+
"name": "fr",
|
| 30 |
+
"url": "https://fr.vuejs.org/api/built-in-components.html#transition"
|
| 31 |
+
},
|
| 32 |
+
{
|
| 33 |
+
"name": "ko",
|
| 34 |
+
"url": "https://ko.vuejs.org/api/built-in-components.html#transition"
|
| 35 |
+
},
|
| 36 |
+
{
|
| 37 |
+
"name": "pt",
|
| 38 |
+
"url": "https://pt.vuejs.org/api/built-in-components.html#transition"
|
| 39 |
+
},
|
| 40 |
+
{
|
| 41 |
+
"name": "bn",
|
| 42 |
+
"url": "https://bn.vuejs.org/api/built-in-components.html#transition"
|
| 43 |
+
},
|
| 44 |
+
{
|
| 45 |
+
"name": "it",
|
| 46 |
+
"url": "https://it.vuejs.org/api/built-in-components.html#transition"
|
| 47 |
+
},
|
| 48 |
+
{
|
| 49 |
+
"name": "cs",
|
| 50 |
+
"url": "https://cs.vuejs.org/api/built-in-components.html#transition"
|
| 51 |
+
},
|
| 52 |
+
{
|
| 53 |
+
"name": "ru",
|
| 54 |
+
"url": "https://ru.vuejs.org/api/built-in-components.html#transition"
|
| 55 |
+
},
|
| 56 |
+
{
|
| 57 |
+
"name": "fa",
|
| 58 |
+
"url": "https://fa.vuejs.org/api/built-in-components.html#transition"
|
| 59 |
+
}
|
| 60 |
+
]
|
| 61 |
+
},
|
| 62 |
+
{
|
| 63 |
+
"name": "TransitionGroup",
|
| 64 |
+
"description": {
|
| 65 |
+
"kind": "markdown",
|
| 66 |
+
"value": "\nFornece efeitos de transição para **múltiplos** elementos ou componentes numa lista.\n\n- **Propriedades**\n\n `<TransitionGroup>` aceita as mesmas propriedades que o `<Transition>` exceto `mode`, e mais duas propriedades adicionais:\n\n ```ts\n interface TransitionGroupProps extends Omit<TransitionProps, 'mode'> {\n /**\n * Se não definido, desenha um fragmento.\n */\n tag?: string\n /**\n * Para personalizar as classes CSS aplicadas durante as transições de movimento.\n * Use kebab-case em modelos de marcação, exemplo move-class=\"xxx\"\n */\n moveClass?: string\n }\n ```\n\n- **Eventos**\n\n `<TransitionGroup>` emite os mesmos eventos que `<Transition>`.\n\n- **Detalhes**\n\n Por padrão, `<TransitionGroup>` não desenha um elemento de DOM que envolve, mas pode ser definido através da propriedade `tag`.\n\n Note que todo filho num `<transition-group>` deve ser [**identificado unicamente**](https://pt.vuejs.org/guide/essentials/list.html#maintaining-state-with-key) para que as animações funcionem apropriadamente.\n\n `<TransitionGroup>` suporta transições de movimento através de transformações de CSS. Quando a posição dum filho na tela é mudada após uma atualização, será aplicada uma classe de movimento CSS (gerada automaticamente pelo atributo `name` ou configurada pela propriedade `move-class`). Se a propriedade de CSS `transform` é passível de transição quando a classe de movimento é aplicada, o elemento será suavemente animado até o seu destino usando a [técnica FLIP](https://aerotwist.com/blog/flip-your-animations/).\n\n- **Exemplo**\n\n ```html\n <TransitionGroup tag=\"ul\" name=\"slide\">\n <li v-for=\"item in items\" :key=\"item.id\">\n {{ item.text }}\n </li>\n </TransitionGroup>\n ```\n\n- **Consultar também:** [Guia - `TransitionGroup`](https://pt.vuejs.org/guide/built-ins/transition-group.html)\n"
|
| 67 |
+
},
|
| 68 |
+
"attributes": [],
|
| 69 |
+
"references": [
|
| 70 |
+
{
|
| 71 |
+
"name": "en",
|
| 72 |
+
"url": "https://vuejs.org/api/built-in-components.html#transitiongroup"
|
| 73 |
+
},
|
| 74 |
+
{
|
| 75 |
+
"name": "zh-cn",
|
| 76 |
+
"url": "https://cn.vuejs.org/api/built-in-components.html#transitiongroup"
|
| 77 |
+
},
|
| 78 |
+
{
|
| 79 |
+
"name": "ja",
|
| 80 |
+
"url": "https://ja.vuejs.org/api/built-in-components.html#transitiongroup"
|
| 81 |
+
},
|
| 82 |
+
{
|
| 83 |
+
"name": "ua",
|
| 84 |
+
"url": "https://ua.vuejs.org/api/built-in-components.html#transitiongroup"
|
| 85 |
+
},
|
| 86 |
+
{
|
| 87 |
+
"name": "fr",
|
| 88 |
+
"url": "https://fr.vuejs.org/api/built-in-components.html#transitiongroup"
|
| 89 |
+
},
|
| 90 |
+
{
|
| 91 |
+
"name": "ko",
|
| 92 |
+
"url": "https://ko.vuejs.org/api/built-in-components.html#transitiongroup"
|
| 93 |
+
},
|
| 94 |
+
{
|
| 95 |
+
"name": "pt",
|
| 96 |
+
"url": "https://pt.vuejs.org/api/built-in-components.html#transitiongroup"
|
| 97 |
+
},
|
| 98 |
+
{
|
| 99 |
+
"name": "bn",
|
| 100 |
+
"url": "https://bn.vuejs.org/api/built-in-components.html#transitiongroup"
|
| 101 |
+
},
|
| 102 |
+
{
|
| 103 |
+
"name": "it",
|
| 104 |
+
"url": "https://it.vuejs.org/api/built-in-components.html#transitiongroup"
|
| 105 |
+
},
|
| 106 |
+
{
|
| 107 |
+
"name": "cs",
|
| 108 |
+
"url": "https://cs.vuejs.org/api/built-in-components.html#transitiongroup"
|
| 109 |
+
},
|
| 110 |
+
{
|
| 111 |
+
"name": "ru",
|
| 112 |
+
"url": "https://ru.vuejs.org/api/built-in-components.html#transitiongroup"
|
| 113 |
+
},
|
| 114 |
+
{
|
| 115 |
+
"name": "fa",
|
| 116 |
+
"url": "https://fa.vuejs.org/api/built-in-components.html#transitiongroup"
|
| 117 |
+
}
|
| 118 |
+
]
|
| 119 |
+
},
|
| 120 |
+
{
|
| 121 |
+
"name": "KeepAlive",
|
| 122 |
+
"description": {
|
| 123 |
+
"kind": "markdown",
|
| 124 |
+
"value": "\nArmazena para consulta imediata os componentes alternados dinamicamente envolvidos dentro.\n\n- **Propriedades**\n\n ```ts\n interface KeepAliveProps {\n /**\n * Se especificado, apenas componentes com nomes correspondidos\n * pelo `include` estarão na memória de consulta imediata.\n */\n include?: MatchPattern\n /**\n * Qualquer componente com um nome correspondidos pelo `exclude`\n * não estarão na memória de consulta imediata.\n */\n exclude?: MatchPattern\n /**\n * O número máximo de instâncias de componente à armazenar\n * na memória de consulta imediata.\n */\n max?: number | string\n }\n\n type MatchPattern = string | RegExp | (string | RegExp)[]\n ```\n\n- **Detalhes**\n\n Quando envolvido em torno dum componente dinâmico, `<KeepAlive>` armazena para consulta imediata as instâncias de componente inativo sem destruí-las.\n\n Só pode existir uma instância de componente como filho direto de `<KeepAlive>` em qualquer momento.\n\n Quando um componente é alternado dentro de `<KeepAlive>`, seus gatilhos de ciclo de vida `activated` e `deactivated` são invocados de acordo, fornecendo uma alternativa ao `mounted` e `unmounted`, que não são chamados. Isto aplica-se ao filho direto de `<KeepAlive>` e também a todos os seus descendentes.\n\n- **Exemplo**\n\n Uso básico:\n\n ```html\n <KeepAlive>\n <component :is=\"view\"></component>\n </KeepAlive>\n ```\n\n Quando usado com os ramos `v-if` / `v-else`, só deve existir um componente desenhado de cada vez:\n\n ```html\n <KeepAlive>\n <comp-a v-if=\"a > 1\"></comp-a>\n <comp-b v-else></comp-b>\n </KeepAlive>\n ```\n\n Usado em conjunto com `<Transition>`:\n\n ```html\n <Transition>\n <KeepAlive>\n <component :is=\"view\"></component>\n </KeepAlive>\n </Transition>\n ```\n\n Usando `include` / `exclude`:\n\n ```html\n <!-- sequência de caracteres delimitada por vírgula -->\n <KeepAlive include=\"a,b\">\n <component :is=\"view\"></component>\n </KeepAlive>\n\n <!-- regex (use `v-bind`) -->\n <KeepAlive :include=\"/a|b/\">\n <component :is=\"view\"></component>\n </KeepAlive>\n\n <!-- vetor (use `v-bind`) -->\n <KeepAlive :include=\"['a', 'b']\">\n <component :is=\"view\"></component>\n </KeepAlive>\n ```\n\n Uso com `max`:\n\n ```html\n <KeepAlive :max=\"10\">\n <component :is=\"view\"></component>\n </KeepAlive>\n ```\n\n- **Consultar também:** [Guia - `KeepAlive`](https://pt.vuejs.org/guide/built-ins/keep-alive.html)\n"
|
| 125 |
+
},
|
| 126 |
+
"attributes": [],
|
| 127 |
+
"references": [
|
| 128 |
+
{
|
| 129 |
+
"name": "en",
|
| 130 |
+
"url": "https://vuejs.org/api/built-in-components.html#keepalive"
|
| 131 |
+
},
|
| 132 |
+
{
|
| 133 |
+
"name": "zh-cn",
|
| 134 |
+
"url": "https://cn.vuejs.org/api/built-in-components.html#keepalive"
|
| 135 |
+
},
|
| 136 |
+
{
|
| 137 |
+
"name": "ja",
|
| 138 |
+
"url": "https://ja.vuejs.org/api/built-in-components.html#keepalive"
|
| 139 |
+
},
|
| 140 |
+
{
|
| 141 |
+
"name": "ua",
|
| 142 |
+
"url": "https://ua.vuejs.org/api/built-in-components.html#keepalive"
|
| 143 |
+
},
|
| 144 |
+
{
|
| 145 |
+
"name": "fr",
|
| 146 |
+
"url": "https://fr.vuejs.org/api/built-in-components.html#keepalive"
|
| 147 |
+
},
|
| 148 |
+
{
|
| 149 |
+
"name": "ko",
|
| 150 |
+
"url": "https://ko.vuejs.org/api/built-in-components.html#keepalive"
|
| 151 |
+
},
|
| 152 |
+
{
|
| 153 |
+
"name": "pt",
|
| 154 |
+
"url": "https://pt.vuejs.org/api/built-in-components.html#keepalive"
|
| 155 |
+
},
|
| 156 |
+
{
|
| 157 |
+
"name": "bn",
|
| 158 |
+
"url": "https://bn.vuejs.org/api/built-in-components.html#keepalive"
|
| 159 |
+
},
|
| 160 |
+
{
|
| 161 |
+
"name": "it",
|
| 162 |
+
"url": "https://it.vuejs.org/api/built-in-components.html#keepalive"
|
| 163 |
+
},
|
| 164 |
+
{
|
| 165 |
+
"name": "cs",
|
| 166 |
+
"url": "https://cs.vuejs.org/api/built-in-components.html#keepalive"
|
| 167 |
+
},
|
| 168 |
+
{
|
| 169 |
+
"name": "ru",
|
| 170 |
+
"url": "https://ru.vuejs.org/api/built-in-components.html#keepalive"
|
| 171 |
+
},
|
| 172 |
+
{
|
| 173 |
+
"name": "fa",
|
| 174 |
+
"url": "https://fa.vuejs.org/api/built-in-components.html#keepalive"
|
| 175 |
+
}
|
| 176 |
+
]
|
| 177 |
+
},
|
| 178 |
+
{
|
| 179 |
+
"name": "Teleport",
|
| 180 |
+
"description": {
|
| 181 |
+
"kind": "markdown",
|
| 182 |
+
"value": "\nDesenha o conteúdo da sua ranhura numa outra parte do DOM.\n\n- **Propriedades**\n\n ```ts\n interface TeleportProps {\n /**\n * Obrigatório. Específica o contentor alvo.\n * Pode ser ou um seletor ou um elemento verdadeiro.\n */\n to: string | HTMLElement\n /**\n * Quando `true`, o conteúdo continuará na sua localização\n * original ao invés de ser movido para o contentor alvo.\n * Pode ser mudado dinamicamente.\n */\n disabled?: boolean\n }\n ```\n\n- **Exemplo**\n\n Especificando o contentor alvo:\n\n ```html\n <teleport to=\"#some-id\" />\n <teleport to=\".some-class\" />\n <teleport to=\"[data-teleport]\" />\n ```\n\n Desativar condicionalmente:\n\n ```html\n <teleport to=\"#popup\" :disabled=\"displayVideoInline\">\n <video src=\"./my-movie.mp4\">\n </teleport>\n ```\n\n- **Consultar também:** [Guia - `Teleport`](https://pt.vuejs.org/guide/built-ins/teleport.html)\n"
|
| 183 |
+
},
|
| 184 |
+
"attributes": [],
|
| 185 |
+
"references": [
|
| 186 |
+
{
|
| 187 |
+
"name": "en",
|
| 188 |
+
"url": "https://vuejs.org/api/built-in-components.html#teleport"
|
| 189 |
+
},
|
| 190 |
+
{
|
| 191 |
+
"name": "zh-cn",
|
| 192 |
+
"url": "https://cn.vuejs.org/api/built-in-components.html#teleport"
|
| 193 |
+
},
|
| 194 |
+
{
|
| 195 |
+
"name": "ja",
|
| 196 |
+
"url": "https://ja.vuejs.org/api/built-in-components.html#teleport"
|
| 197 |
+
},
|
| 198 |
+
{
|
| 199 |
+
"name": "ua",
|
| 200 |
+
"url": "https://ua.vuejs.org/api/built-in-components.html#teleport"
|
| 201 |
+
},
|
| 202 |
+
{
|
| 203 |
+
"name": "fr",
|
| 204 |
+
"url": "https://fr.vuejs.org/api/built-in-components.html#teleport"
|
| 205 |
+
},
|
| 206 |
+
{
|
| 207 |
+
"name": "ko",
|
| 208 |
+
"url": "https://ko.vuejs.org/api/built-in-components.html#teleport"
|
| 209 |
+
},
|
| 210 |
+
{
|
| 211 |
+
"name": "pt",
|
| 212 |
+
"url": "https://pt.vuejs.org/api/built-in-components.html#teleport"
|
| 213 |
+
},
|
| 214 |
+
{
|
| 215 |
+
"name": "bn",
|
| 216 |
+
"url": "https://bn.vuejs.org/api/built-in-components.html#teleport"
|
| 217 |
+
},
|
| 218 |
+
{
|
| 219 |
+
"name": "it",
|
| 220 |
+
"url": "https://it.vuejs.org/api/built-in-components.html#teleport"
|
| 221 |
+
},
|
| 222 |
+
{
|
| 223 |
+
"name": "cs",
|
| 224 |
+
"url": "https://cs.vuejs.org/api/built-in-components.html#teleport"
|
| 225 |
+
},
|
| 226 |
+
{
|
| 227 |
+
"name": "ru",
|
| 228 |
+
"url": "https://ru.vuejs.org/api/built-in-components.html#teleport"
|
| 229 |
+
},
|
| 230 |
+
{
|
| 231 |
+
"name": "fa",
|
| 232 |
+
"url": "https://fa.vuejs.org/api/built-in-components.html#teleport"
|
| 233 |
+
}
|
| 234 |
+
]
|
| 235 |
+
},
|
| 236 |
+
{
|
| 237 |
+
"name": "Suspense",
|
| 238 |
+
"description": {
|
| 239 |
+
"kind": "markdown",
|
| 240 |
+
"value": "\nUsado para orquestrar dependências assíncronas encaixadas numa árvore de componente.\n\n- **Propriedades**\n\n ```ts\n interface SuspenseProps {\n timeout?: string | number\n }\n ```\n\n- **Eventos**\n\n - `@resolve`\n - `@pending`\n - `@fallback`\n\n- **Detalhes**\n\n `<Suspense>` aceita duas ranhuras: a ranhura `#default` e a ranhura `#fallback`. Ele exibirá o conteúdo da ranhura de retorno (`#fallback`) enquanto desenha a ranhura padrão (`#default`) na memória.\n\n Se encontrar dependências assíncronas ([Componentes Assíncronos](https://pt.vuejs.org/guide/components/async.html) e componentes com [`async setup()`](https://pt.vuejs.org/guide/built-ins/suspense.html#async-setup)) enquanto desenha a ranhura padrão, aguardará até todos serem resolvidos antes de exibir a ranhura padrão.\n\n- **Consultar também:** [Guia - `Suspense`](https://pt.vuejs.org/guide/built-ins/suspense.html)\n"
|
| 241 |
+
},
|
| 242 |
+
"attributes": [],
|
| 243 |
+
"references": [
|
| 244 |
+
{
|
| 245 |
+
"name": "en",
|
| 246 |
+
"url": "https://vuejs.org/api/built-in-components.html#suspense"
|
| 247 |
+
},
|
| 248 |
+
{
|
| 249 |
+
"name": "zh-cn",
|
| 250 |
+
"url": "https://cn.vuejs.org/api/built-in-components.html#suspense"
|
| 251 |
+
},
|
| 252 |
+
{
|
| 253 |
+
"name": "ja",
|
| 254 |
+
"url": "https://ja.vuejs.org/api/built-in-components.html#suspense"
|
| 255 |
+
},
|
| 256 |
+
{
|
| 257 |
+
"name": "ua",
|
| 258 |
+
"url": "https://ua.vuejs.org/api/built-in-components.html#suspense"
|
| 259 |
+
},
|
| 260 |
+
{
|
| 261 |
+
"name": "fr",
|
| 262 |
+
"url": "https://fr.vuejs.org/api/built-in-components.html#suspense"
|
| 263 |
+
},
|
| 264 |
+
{
|
| 265 |
+
"name": "ko",
|
| 266 |
+
"url": "https://ko.vuejs.org/api/built-in-components.html#suspense"
|
| 267 |
+
},
|
| 268 |
+
{
|
| 269 |
+
"name": "pt",
|
| 270 |
+
"url": "https://pt.vuejs.org/api/built-in-components.html#suspense"
|
| 271 |
+
},
|
| 272 |
+
{
|
| 273 |
+
"name": "bn",
|
| 274 |
+
"url": "https://bn.vuejs.org/api/built-in-components.html#suspense"
|
| 275 |
+
},
|
| 276 |
+
{
|
| 277 |
+
"name": "it",
|
| 278 |
+
"url": "https://it.vuejs.org/api/built-in-components.html#suspense"
|
| 279 |
+
},
|
| 280 |
+
{
|
| 281 |
+
"name": "cs",
|
| 282 |
+
"url": "https://cs.vuejs.org/api/built-in-components.html#suspense"
|
| 283 |
+
},
|
| 284 |
+
{
|
| 285 |
+
"name": "ru",
|
| 286 |
+
"url": "https://ru.vuejs.org/api/built-in-components.html#suspense"
|
| 287 |
+
},
|
| 288 |
+
{
|
| 289 |
+
"name": "fa",
|
| 290 |
+
"url": "https://fa.vuejs.org/api/built-in-components.html#suspense"
|
| 291 |
+
}
|
| 292 |
+
]
|
| 293 |
+
},
|
| 294 |
+
{
|
| 295 |
+
"name": "component",
|
| 296 |
+
"description": {
|
| 297 |
+
"kind": "markdown",
|
| 298 |
+
"value": "\nUma \"meta componente\" para desenhar componentes ou elementos dinâmicos.\n\n- **Propriedades**\n\n ```ts\n interface DynamicComponentProps {\n is: string | Component\n }\n ```\n\n- **Detalhes**\n\n O verdadeiro componente à desenhar é determinado pela propriedade `is`.\n\n - Quando `is` for uma sequência de caracteres, poderia ser ou nome dum marcador de HTML ou o nome dum componente registado.\n\n - Alternativamente, `is` também pode ser diretamente vinculado à definição dum componente.\n\n- **Exemplo**\n\n Interpretação dos componentes com nome registado (API de Opções):\n\n ```vue\n <script>\n import Foo from './Foo.vue'\n import Bar from './Bar.vue'\n\n export default {\n components: { Foo, Bar },\n data() {\n return {\n view: 'Foo'\n }\n }\n }\n </script>\n\n <template>\n <component :is=\"view\" />\n </template>\n ```\n\n Interpretação dos componentes com a definição (API de Composição com `<script setup></script>`):\n\n ```vue\n <script setup>\n import Foo from './Foo.vue'\n import Bar from './Bar.vue'\n </script>\n\n <template>\n <component :is=\"Math.random() > 0.5 ? Foo : Bar\" />\n </template>\n ```\n\n Interpretação dos elementos de HTML:\n\n ```html\n <component :is=\"href ? 'a' : 'span'\"></component>\n ```\n\n Os todos os [componentes embutidos](./built-in-components) podem ser passados para `is`, mas devemos registá-los se quisermos passá-los pelo nome. Por exemplo:\n\n ```vue\n <script>\n import { Transition, TransitionGroup } from 'vue'\n\n export default {\n components: {\n Transition,\n TransitionGroup\n }\n }\n </script>\n\n <template>\n <component :is=\"isGroup ? 'TransitionGroup' : 'Transition'\">\n ...\n </component>\n </template>\n ```\n\n O registo não é obrigatório se passarmos o próprio componente à `is` no lugar do seu nome, por exemplo no `<script setup>`.\n\n Se `v-model` for usada num marcador `<component>`, o compilador do modelo de marcação a expandirá à uma propriedade `modelValue` e um ouvinte de evento `update:modelValue`, tal como faria com qualquer outro componente. No entanto, isto não será compatível com os elementos de HTML nativos, tais como `<input>` ou `<select>`. Como resultado, usar `v-model` com um elemento nativo criado dinamicamente não funcionará:\n\n ```vue\n <script setup>\n import { ref } from 'vue'\n \n const tag = ref('input')\n const username = ref('')\n </script>\n\n <template>\n <!-- Isto não funcionará porque 'input' é um elemento de HTML nativo -->\n <component :is=\"tag\" v-model=\"username\" />\n </template>\n ```\n\n Na prática, este caso extremo não é comum, porque os campos de formulário nativos normalmente são envolvidos dentro de componentes em aplicações reais. Se precisarmos usar diretamente um elemento nativo então podemos dividir a `v-model` num atributo e evento manualmente.\n\n- **Consulte também** [Componentes Dinâmicos](https://pt.vuejs.org/guide/essentials/component-basics.html#dynamic-components)\n"
|
| 299 |
+
},
|
| 300 |
+
"attributes": [],
|
| 301 |
+
"references": [
|
| 302 |
+
{
|
| 303 |
+
"name": "en",
|
| 304 |
+
"url": "https://vuejs.org/api/built-in-special-elements.html#component"
|
| 305 |
+
},
|
| 306 |
+
{
|
| 307 |
+
"name": "zh-cn",
|
| 308 |
+
"url": "https://cn.vuejs.org/api/built-in-special-elements.html#component"
|
| 309 |
+
},
|
| 310 |
+
{
|
| 311 |
+
"name": "ja",
|
| 312 |
+
"url": "https://ja.vuejs.org/api/built-in-special-elements.html#component"
|
| 313 |
+
},
|
| 314 |
+
{
|
| 315 |
+
"name": "ua",
|
| 316 |
+
"url": "https://ua.vuejs.org/api/built-in-special-elements.html#component"
|
| 317 |
+
},
|
| 318 |
+
{
|
| 319 |
+
"name": "fr",
|
| 320 |
+
"url": "https://fr.vuejs.org/api/built-in-special-elements.html#component"
|
| 321 |
+
},
|
| 322 |
+
{
|
| 323 |
+
"name": "ko",
|
| 324 |
+
"url": "https://ko.vuejs.org/api/built-in-special-elements.html#component"
|
| 325 |
+
},
|
| 326 |
+
{
|
| 327 |
+
"name": "pt",
|
| 328 |
+
"url": "https://pt.vuejs.org/api/built-in-special-elements.html#component"
|
| 329 |
+
},
|
| 330 |
+
{
|
| 331 |
+
"name": "bn",
|
| 332 |
+
"url": "https://bn.vuejs.org/api/built-in-special-elements.html#component"
|
| 333 |
+
},
|
| 334 |
+
{
|
| 335 |
+
"name": "it",
|
| 336 |
+
"url": "https://it.vuejs.org/api/built-in-special-elements.html#component"
|
| 337 |
+
},
|
| 338 |
+
{
|
| 339 |
+
"name": "cs",
|
| 340 |
+
"url": "https://cs.vuejs.org/api/built-in-special-elements.html#component"
|
| 341 |
+
},
|
| 342 |
+
{
|
| 343 |
+
"name": "ru",
|
| 344 |
+
"url": "https://ru.vuejs.org/api/built-in-special-elements.html#component"
|
| 345 |
+
},
|
| 346 |
+
{
|
| 347 |
+
"name": "fa",
|
| 348 |
+
"url": "https://fa.vuejs.org/api/built-in-special-elements.html#component"
|
| 349 |
+
}
|
| 350 |
+
]
|
| 351 |
+
},
|
| 352 |
+
{
|
| 353 |
+
"name": "slot",
|
| 354 |
+
"description": {
|
| 355 |
+
"kind": "markdown",
|
| 356 |
+
"value": "\nDenota as saídas de conteúdo da ranhura nos modelos de marcação\n\n- **Propriedades**\n\n ```ts\n interface SlotProps {\n /**\n * Quaisquer propriedades passadas ao <slot>\n * são passadas como argumentos para ranhuras isoladas\n */\n [key: string]: any\n /**\n * Reservada para especificação do nome da ranhura.\n */\n name?: string\n }\n ```\n\n- **Detalhes**\n\n O elemento `<slot>` pode usar o atributo `name` para especificar um nome de ranhura. Quando nenhum `name` for especificado, desenhará a ranhura padrão. Os atributos adicionais passados ao elemento da ranhura serão passados como propriedades de ranhura à ranhura isolada definida no pai.\n\n O próprio elemento será substituído pelo seu conteúdo de ranhura correspondente.\n\n Os elementos de `<slot>` nos modelos de marcação da Vue são compilados para JavaScript, então não são para serem confundidos com os [elementos `<slot>` nativos](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/slot).\n\n- **Consulte também** [Componentes - Ranhuras](https://pt.vuejs.org/guide/components/slots.html)\n"
|
| 357 |
+
},
|
| 358 |
+
"attributes": [],
|
| 359 |
+
"references": [
|
| 360 |
+
{
|
| 361 |
+
"name": "en",
|
| 362 |
+
"url": "https://vuejs.org/api/built-in-special-elements.html#slot"
|
| 363 |
+
},
|
| 364 |
+
{
|
| 365 |
+
"name": "zh-cn",
|
| 366 |
+
"url": "https://cn.vuejs.org/api/built-in-special-elements.html#slot"
|
| 367 |
+
},
|
| 368 |
+
{
|
| 369 |
+
"name": "ja",
|
| 370 |
+
"url": "https://ja.vuejs.org/api/built-in-special-elements.html#slot"
|
| 371 |
+
},
|
| 372 |
+
{
|
| 373 |
+
"name": "ua",
|
| 374 |
+
"url": "https://ua.vuejs.org/api/built-in-special-elements.html#slot"
|
| 375 |
+
},
|
| 376 |
+
{
|
| 377 |
+
"name": "fr",
|
| 378 |
+
"url": "https://fr.vuejs.org/api/built-in-special-elements.html#slot"
|
| 379 |
+
},
|
| 380 |
+
{
|
| 381 |
+
"name": "ko",
|
| 382 |
+
"url": "https://ko.vuejs.org/api/built-in-special-elements.html#slot"
|
| 383 |
+
},
|
| 384 |
+
{
|
| 385 |
+
"name": "pt",
|
| 386 |
+
"url": "https://pt.vuejs.org/api/built-in-special-elements.html#slot"
|
| 387 |
+
},
|
| 388 |
+
{
|
| 389 |
+
"name": "bn",
|
| 390 |
+
"url": "https://bn.vuejs.org/api/built-in-special-elements.html#slot"
|
| 391 |
+
},
|
| 392 |
+
{
|
| 393 |
+
"name": "it",
|
| 394 |
+
"url": "https://it.vuejs.org/api/built-in-special-elements.html#slot"
|
| 395 |
+
},
|
| 396 |
+
{
|
| 397 |
+
"name": "cs",
|
| 398 |
+
"url": "https://cs.vuejs.org/api/built-in-special-elements.html#slot"
|
| 399 |
+
},
|
| 400 |
+
{
|
| 401 |
+
"name": "ru",
|
| 402 |
+
"url": "https://ru.vuejs.org/api/built-in-special-elements.html#slot"
|
| 403 |
+
},
|
| 404 |
+
{
|
| 405 |
+
"name": "fa",
|
| 406 |
+
"url": "https://fa.vuejs.org/api/built-in-special-elements.html#slot"
|
| 407 |
+
}
|
| 408 |
+
]
|
| 409 |
+
},
|
| 410 |
+
{
|
| 411 |
+
"name": "template",
|
| 412 |
+
"description": {
|
| 413 |
+
"kind": "markdown",
|
| 414 |
+
"value": "\nO marcador `<template>` é usado como um espaço reservado quando queremos usar uma diretiva embutida sem desenhar um elemento no DOM.\n\n- **Detalhes**\n\n O manipulação especial do `<template>` apenas é acionada se for usada com uma destas diretivas:\n\n - `v-if`, `v-else-if`, ou `v-else`\n - `v-for`\n - `v-slot`\n \n Se nenhuma destas diretivas estiver presente, então será desenhado como um [elemento `<template>` nativo](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/template).\n\n Um `<template>` com uma `v-for` também pode ter um [atributo `key`](https://pt.vuejs.org/api/built-in-special-attributes.html#key). Todos os outros atributos e diretivas serão descartados, porque não são relevantes sem um elemento correspondente.\n\n Os componentes de ficheiro único usam [marcador `<template>` de alto nível](https://pt.vuejs.org/api/sfc-spec.html#language-blocks) para envolver todo o modelo de marcação. Este uso é separado do uso de `<template>` descrito acima. Este marcador de alto nível não faz parte do próprio modelo de marcação e suporta a sintaxe de modelo de marcação, tais como as diretivas.\n\n- **Consulte também**\n - [Guia - `v-if` sobre o `<template>`](https://pt.vuejs.org/guide/essentials/conditional.html#v-if-on-template) \n - [Guia - `v-for` sobre o `<template>`](https://pt.vuejs.org/guide/essentials/list.html#v-for-on-template) \n - [Guia - Ranhuras Nomeadas](https://pt.vuejs.org/guide/components/slots.html#named-slots) \n"
|
| 415 |
+
},
|
| 416 |
+
"attributes": [],
|
| 417 |
+
"references": [
|
| 418 |
+
{
|
| 419 |
+
"name": "en",
|
| 420 |
+
"url": "https://vuejs.org/api/built-in-special-elements.html#template"
|
| 421 |
+
},
|
| 422 |
+
{
|
| 423 |
+
"name": "zh-cn",
|
| 424 |
+
"url": "https://cn.vuejs.org/api/built-in-special-elements.html#template"
|
| 425 |
+
},
|
| 426 |
+
{
|
| 427 |
+
"name": "ja",
|
| 428 |
+
"url": "https://ja.vuejs.org/api/built-in-special-elements.html#template"
|
| 429 |
+
},
|
| 430 |
+
{
|
| 431 |
+
"name": "ua",
|
| 432 |
+
"url": "https://ua.vuejs.org/api/built-in-special-elements.html#template"
|
| 433 |
+
},
|
| 434 |
+
{
|
| 435 |
+
"name": "fr",
|
| 436 |
+
"url": "https://fr.vuejs.org/api/built-in-special-elements.html#template"
|
| 437 |
+
},
|
| 438 |
+
{
|
| 439 |
+
"name": "ko",
|
| 440 |
+
"url": "https://ko.vuejs.org/api/built-in-special-elements.html#template"
|
| 441 |
+
},
|
| 442 |
+
{
|
| 443 |
+
"name": "pt",
|
| 444 |
+
"url": "https://pt.vuejs.org/api/built-in-special-elements.html#template"
|
| 445 |
+
},
|
| 446 |
+
{
|
| 447 |
+
"name": "bn",
|
| 448 |
+
"url": "https://bn.vuejs.org/api/built-in-special-elements.html#template"
|
| 449 |
+
},
|
| 450 |
+
{
|
| 451 |
+
"name": "it",
|
| 452 |
+
"url": "https://it.vuejs.org/api/built-in-special-elements.html#template"
|
| 453 |
+
},
|
| 454 |
+
{
|
| 455 |
+
"name": "cs",
|
| 456 |
+
"url": "https://cs.vuejs.org/api/built-in-special-elements.html#template"
|
| 457 |
+
},
|
| 458 |
+
{
|
| 459 |
+
"name": "ru",
|
| 460 |
+
"url": "https://ru.vuejs.org/api/built-in-special-elements.html#template"
|
| 461 |
+
},
|
| 462 |
+
{
|
| 463 |
+
"name": "fa",
|
| 464 |
+
"url": "https://fa.vuejs.org/api/built-in-special-elements.html#template"
|
| 465 |
+
}
|
| 466 |
+
]
|
| 467 |
+
}
|
| 468 |
+
],
|
| 469 |
+
"globalAttributes": [
|
| 470 |
+
{
|
| 471 |
+
"name": "v-text",
|
| 472 |
+
"description": {
|
| 473 |
+
"kind": "markdown",
|
| 474 |
+
"value": "\nAtualiza o conteúdo de texto do elemento.\n\n- **Espera:** `string`\n\n- **Detalhes**\n\n `v-text` funciona definindo a propriedade [`textContent`](https://developer.mozilla.org/en-US/docs/Web/API/Node/textContent) do elemento, sobrescreverá qualquer conteúdo existente dentro do elemento. Se precisarmos de atualizar a parte da `textContent`, devemos usar as [interpolações de bigodes](https://pt.vuejs.org/guide/essentials/template-syntax.html#text-interpolation).\n\n- **Exemplo**\n\n ```html\n <span v-text=\"msg\"></span>\n <!-- é o mesmo que -->\n <span>{{msg}}</span>\n ```\n\n- **Consultar também** [Sintaxe do Modelo de Marcação - Interpolação de Texto](https://pt.vuejs.org/guide/essentials/template-syntax.html#text-interpolation)\n"
|
| 475 |
+
},
|
| 476 |
+
"references": [
|
| 477 |
+
{
|
| 478 |
+
"name": "en",
|
| 479 |
+
"url": "https://vuejs.org/api/built-in-directives.html#v-text"
|
| 480 |
+
},
|
| 481 |
+
{
|
| 482 |
+
"name": "zh-cn",
|
| 483 |
+
"url": "https://cn.vuejs.org/api/built-in-directives.html#v-text"
|
| 484 |
+
},
|
| 485 |
+
{
|
| 486 |
+
"name": "ja",
|
| 487 |
+
"url": "https://ja.vuejs.org/api/built-in-directives.html#v-text"
|
| 488 |
+
},
|
| 489 |
+
{
|
| 490 |
+
"name": "ua",
|
| 491 |
+
"url": "https://ua.vuejs.org/api/built-in-directives.html#v-text"
|
| 492 |
+
},
|
| 493 |
+
{
|
| 494 |
+
"name": "fr",
|
| 495 |
+
"url": "https://fr.vuejs.org/api/built-in-directives.html#v-text"
|
| 496 |
+
},
|
| 497 |
+
{
|
| 498 |
+
"name": "ko",
|
| 499 |
+
"url": "https://ko.vuejs.org/api/built-in-directives.html#v-text"
|
| 500 |
+
},
|
| 501 |
+
{
|
| 502 |
+
"name": "pt",
|
| 503 |
+
"url": "https://pt.vuejs.org/api/built-in-directives.html#v-text"
|
| 504 |
+
},
|
| 505 |
+
{
|
| 506 |
+
"name": "bn",
|
| 507 |
+
"url": "https://bn.vuejs.org/api/built-in-directives.html#v-text"
|
| 508 |
+
},
|
| 509 |
+
{
|
| 510 |
+
"name": "it",
|
| 511 |
+
"url": "https://it.vuejs.org/api/built-in-directives.html#v-text"
|
| 512 |
+
},
|
| 513 |
+
{
|
| 514 |
+
"name": "cs",
|
| 515 |
+
"url": "https://cs.vuejs.org/api/built-in-directives.html#v-text"
|
| 516 |
+
},
|
| 517 |
+
{
|
| 518 |
+
"name": "ru",
|
| 519 |
+
"url": "https://ru.vuejs.org/api/built-in-directives.html#v-text"
|
| 520 |
+
},
|
| 521 |
+
{
|
| 522 |
+
"name": "fa",
|
| 523 |
+
"url": "https://fa.vuejs.org/api/built-in-directives.html#v-text"
|
| 524 |
+
}
|
| 525 |
+
]
|
| 526 |
+
},
|
| 527 |
+
{
|
| 528 |
+
"name": "v-html",
|
| 529 |
+
"description": {
|
| 530 |
+
"kind": "markdown",
|
| 531 |
+
"value": "\nAtualiza a [`innerHTML`](https://developer.mozilla.org/en-US/docs/Web/API/Element/innerHTML) do elemento.\n\n- **Espera:** `string`\n\n- **Detalhes:**\n\n Os conteúdos da `v-html` são inseridos como HTML simples - a sintaxe de modelo de marcação da Vue não será processada. Se estivermos a tentar compor modelos de marcação usando `v-html`, vamos tentar repensar a solução usando componentes.\n\n :::warning NOTA DE SEGURANÇA\n Interpretar dinamicamente HTML arbitrário na nossa aplicação pode ser muito perigoso porque pode facilmente conduzir a [ataques de XSS](https://en.wikipedia.org/wiki/Cross-site_scripting). Só deveríamos usar `v-html` sobre conteúdo confiável e **nunca** sobre conteúdo fornecido pelo utilizador.\n :::\n\n Nos [Componentes de Ficheiro Único](https://pt.vuejs.org/guide/scaling-up/sfc.html), os estilos `scoped` não serão aplicados ao conteúdo dentro de `v-html`, porque este HTML não é processado pelo compilador de modelos de marcação da Vue. Se quisermos mirar o conteúdo de `v-html` com CSS isolada, podemos usar os [módulos de CSS](./sfc-css-features#css-modules) ou elemento `<style>` adicional e global com uma estratégia de isolamento manual, como a BEM.\n\n- **Exemplo**\n\n ```html\n <div v-html=\"html\"></div>\n ```\n\n- **Consultar também** [Sintaxe do Modelo de Marcação - HTML Puro](https://pt.vuejs.org/guide/essentials/template-syntax.html#raw-html)\n"
|
| 532 |
+
},
|
| 533 |
+
"references": [
|
| 534 |
+
{
|
| 535 |
+
"name": "en",
|
| 536 |
+
"url": "https://vuejs.org/api/built-in-directives.html#v-html"
|
| 537 |
+
},
|
| 538 |
+
{
|
| 539 |
+
"name": "zh-cn",
|
| 540 |
+
"url": "https://cn.vuejs.org/api/built-in-directives.html#v-html"
|
| 541 |
+
},
|
| 542 |
+
{
|
| 543 |
+
"name": "ja",
|
| 544 |
+
"url": "https://ja.vuejs.org/api/built-in-directives.html#v-html"
|
| 545 |
+
},
|
| 546 |
+
{
|
| 547 |
+
"name": "ua",
|
| 548 |
+
"url": "https://ua.vuejs.org/api/built-in-directives.html#v-html"
|
| 549 |
+
},
|
| 550 |
+
{
|
| 551 |
+
"name": "fr",
|
| 552 |
+
"url": "https://fr.vuejs.org/api/built-in-directives.html#v-html"
|
| 553 |
+
},
|
| 554 |
+
{
|
| 555 |
+
"name": "ko",
|
| 556 |
+
"url": "https://ko.vuejs.org/api/built-in-directives.html#v-html"
|
| 557 |
+
},
|
| 558 |
+
{
|
| 559 |
+
"name": "pt",
|
| 560 |
+
"url": "https://pt.vuejs.org/api/built-in-directives.html#v-html"
|
| 561 |
+
},
|
| 562 |
+
{
|
| 563 |
+
"name": "bn",
|
| 564 |
+
"url": "https://bn.vuejs.org/api/built-in-directives.html#v-html"
|
| 565 |
+
},
|
| 566 |
+
{
|
| 567 |
+
"name": "it",
|
| 568 |
+
"url": "https://it.vuejs.org/api/built-in-directives.html#v-html"
|
| 569 |
+
},
|
| 570 |
+
{
|
| 571 |
+
"name": "cs",
|
| 572 |
+
"url": "https://cs.vuejs.org/api/built-in-directives.html#v-html"
|
| 573 |
+
},
|
| 574 |
+
{
|
| 575 |
+
"name": "ru",
|
| 576 |
+
"url": "https://ru.vuejs.org/api/built-in-directives.html#v-html"
|
| 577 |
+
},
|
| 578 |
+
{
|
| 579 |
+
"name": "fa",
|
| 580 |
+
"url": "https://fa.vuejs.org/api/built-in-directives.html#v-html"
|
| 581 |
+
}
|
| 582 |
+
]
|
| 583 |
+
},
|
| 584 |
+
{
|
| 585 |
+
"name": "v-show",
|
| 586 |
+
"description": {
|
| 587 |
+
"kind": "markdown",
|
| 588 |
+
"value": "\nAlterna a visibilidade do elemento baseado na veracidade do valor da expressão.\n\n- **Espera:** `any`\n\n- **Detalhes**\n\n `v-show` funciona definindo a propriedade de CSS `display` através de estilos em linha, e tentará respeitar o valor inicial da `display` quando o elemento estiver visível. Também aciona transições quando sua condição muda.\n\n- **Consultar também** [Interpretação Condicional - `v-show`](https://pt.vuejs.org/guide/essentials/conditional.html#v-show)\n"
|
| 589 |
+
},
|
| 590 |
+
"references": [
|
| 591 |
+
{
|
| 592 |
+
"name": "en",
|
| 593 |
+
"url": "https://vuejs.org/api/built-in-directives.html#v-show"
|
| 594 |
+
},
|
| 595 |
+
{
|
| 596 |
+
"name": "zh-cn",
|
| 597 |
+
"url": "https://cn.vuejs.org/api/built-in-directives.html#v-show"
|
| 598 |
+
},
|
| 599 |
+
{
|
| 600 |
+
"name": "ja",
|
| 601 |
+
"url": "https://ja.vuejs.org/api/built-in-directives.html#v-show"
|
| 602 |
+
},
|
| 603 |
+
{
|
| 604 |
+
"name": "ua",
|
| 605 |
+
"url": "https://ua.vuejs.org/api/built-in-directives.html#v-show"
|
| 606 |
+
},
|
| 607 |
+
{
|
| 608 |
+
"name": "fr",
|
| 609 |
+
"url": "https://fr.vuejs.org/api/built-in-directives.html#v-show"
|
| 610 |
+
},
|
| 611 |
+
{
|
| 612 |
+
"name": "ko",
|
| 613 |
+
"url": "https://ko.vuejs.org/api/built-in-directives.html#v-show"
|
| 614 |
+
},
|
| 615 |
+
{
|
| 616 |
+
"name": "pt",
|
| 617 |
+
"url": "https://pt.vuejs.org/api/built-in-directives.html#v-show"
|
| 618 |
+
},
|
| 619 |
+
{
|
| 620 |
+
"name": "bn",
|
| 621 |
+
"url": "https://bn.vuejs.org/api/built-in-directives.html#v-show"
|
| 622 |
+
},
|
| 623 |
+
{
|
| 624 |
+
"name": "it",
|
| 625 |
+
"url": "https://it.vuejs.org/api/built-in-directives.html#v-show"
|
| 626 |
+
},
|
| 627 |
+
{
|
| 628 |
+
"name": "cs",
|
| 629 |
+
"url": "https://cs.vuejs.org/api/built-in-directives.html#v-show"
|
| 630 |
+
},
|
| 631 |
+
{
|
| 632 |
+
"name": "ru",
|
| 633 |
+
"url": "https://ru.vuejs.org/api/built-in-directives.html#v-show"
|
| 634 |
+
},
|
| 635 |
+
{
|
| 636 |
+
"name": "fa",
|
| 637 |
+
"url": "https://fa.vuejs.org/api/built-in-directives.html#v-show"
|
| 638 |
+
}
|
| 639 |
+
]
|
| 640 |
+
},
|
| 641 |
+
{
|
| 642 |
+
"name": "v-if",
|
| 643 |
+
"description": {
|
| 644 |
+
"kind": "markdown",
|
| 645 |
+
"value": "\nInterpreta condicionalmente um elemento ou um fragmento de modelo de marcação baseado na veracidade do valor da expressão.\n\n- **Espera:** `any`\n\n- **Detalhes**\n\n Quando um elemento de `v-if` é alternado, o elemento e suas diretivas ou componentes contidos são destruídos e construídos novamente. Se a condição inicial for falsa, então o conteúdo interno não será interpretado de todo.\n\n Pode ser usada no `<template>` para denotar um bloco condicional contendo apenas texto ou vários elementos.\n\n Esta diretiva aciona transições quando sua condição muda.\n\n Quando usada em conjunto, a `v-if` tem uma prioridade superior à `v-for`. Não recomendados usar estas duas diretivas ao mesmo tempo sobre um elemento — consulte o [guia de interpretação de lista](https://pt.vuejs.org/guide/essentials/list.html#v-for-with-v-if) por mais detalhes.\n\n- **Consultar também** [Interpretação Condicional - `v-if`](https://pt.vuejs.org/guide/essentials/conditional.html#v-if)\n"
|
| 646 |
+
},
|
| 647 |
+
"references": [
|
| 648 |
+
{
|
| 649 |
+
"name": "en",
|
| 650 |
+
"url": "https://vuejs.org/api/built-in-directives.html#v-if"
|
| 651 |
+
},
|
| 652 |
+
{
|
| 653 |
+
"name": "zh-cn",
|
| 654 |
+
"url": "https://cn.vuejs.org/api/built-in-directives.html#v-if"
|
| 655 |
+
},
|
| 656 |
+
{
|
| 657 |
+
"name": "ja",
|
| 658 |
+
"url": "https://ja.vuejs.org/api/built-in-directives.html#v-if"
|
| 659 |
+
},
|
| 660 |
+
{
|
| 661 |
+
"name": "ua",
|
| 662 |
+
"url": "https://ua.vuejs.org/api/built-in-directives.html#v-if"
|
| 663 |
+
},
|
| 664 |
+
{
|
| 665 |
+
"name": "fr",
|
| 666 |
+
"url": "https://fr.vuejs.org/api/built-in-directives.html#v-if"
|
| 667 |
+
},
|
| 668 |
+
{
|
| 669 |
+
"name": "ko",
|
| 670 |
+
"url": "https://ko.vuejs.org/api/built-in-directives.html#v-if"
|
| 671 |
+
},
|
| 672 |
+
{
|
| 673 |
+
"name": "pt",
|
| 674 |
+
"url": "https://pt.vuejs.org/api/built-in-directives.html#v-if"
|
| 675 |
+
},
|
| 676 |
+
{
|
| 677 |
+
"name": "bn",
|
| 678 |
+
"url": "https://bn.vuejs.org/api/built-in-directives.html#v-if"
|
| 679 |
+
},
|
| 680 |
+
{
|
| 681 |
+
"name": "it",
|
| 682 |
+
"url": "https://it.vuejs.org/api/built-in-directives.html#v-if"
|
| 683 |
+
},
|
| 684 |
+
{
|
| 685 |
+
"name": "cs",
|
| 686 |
+
"url": "https://cs.vuejs.org/api/built-in-directives.html#v-if"
|
| 687 |
+
},
|
| 688 |
+
{
|
| 689 |
+
"name": "ru",
|
| 690 |
+
"url": "https://ru.vuejs.org/api/built-in-directives.html#v-if"
|
| 691 |
+
},
|
| 692 |
+
{
|
| 693 |
+
"name": "fa",
|
| 694 |
+
"url": "https://fa.vuejs.org/api/built-in-directives.html#v-if"
|
| 695 |
+
}
|
| 696 |
+
]
|
| 697 |
+
},
|
| 698 |
+
{
|
| 699 |
+
"name": "v-else",
|
| 700 |
+
"valueSet": "v",
|
| 701 |
+
"description": {
|
| 702 |
+
"kind": "markdown",
|
| 703 |
+
"value": "\nDenota um \"bloco `else`\" para a `v-if` ou para uma cadeia `v-if` / `v-else-if`.\n\n- **Não espera expressões**\n\n- **Detalhes**\n\n - Restrição: o anterior elemento irmão deve ter a `v-if` ou `v-else-if`.\n\n - Pode ser usada no `<template>` para denotar um bloco condicional contendo apenas texto ou vários elementos.\n\n- **Exemplo**\n\n ```html\n <div v-if=\"Math.random() > 0.5\">\n Now you see me\n </div>\n <div v-else>\n Now you don't\n </div>\n ```\n\n- **Consultar também** [Interpretação Condicional - `v-else`](https://pt.vuejs.org/guide/essentials/conditional.html#v-else)\n"
|
| 704 |
+
},
|
| 705 |
+
"references": [
|
| 706 |
+
{
|
| 707 |
+
"name": "en",
|
| 708 |
+
"url": "https://vuejs.org/api/built-in-directives.html#v-else"
|
| 709 |
+
},
|
| 710 |
+
{
|
| 711 |
+
"name": "zh-cn",
|
| 712 |
+
"url": "https://cn.vuejs.org/api/built-in-directives.html#v-else"
|
| 713 |
+
},
|
| 714 |
+
{
|
| 715 |
+
"name": "ja",
|
| 716 |
+
"url": "https://ja.vuejs.org/api/built-in-directives.html#v-else"
|
| 717 |
+
},
|
| 718 |
+
{
|
| 719 |
+
"name": "ua",
|
| 720 |
+
"url": "https://ua.vuejs.org/api/built-in-directives.html#v-else"
|
| 721 |
+
},
|
| 722 |
+
{
|
| 723 |
+
"name": "fr",
|
| 724 |
+
"url": "https://fr.vuejs.org/api/built-in-directives.html#v-else"
|
| 725 |
+
},
|
| 726 |
+
{
|
| 727 |
+
"name": "ko",
|
| 728 |
+
"url": "https://ko.vuejs.org/api/built-in-directives.html#v-else"
|
| 729 |
+
},
|
| 730 |
+
{
|
| 731 |
+
"name": "pt",
|
| 732 |
+
"url": "https://pt.vuejs.org/api/built-in-directives.html#v-else"
|
| 733 |
+
},
|
| 734 |
+
{
|
| 735 |
+
"name": "bn",
|
| 736 |
+
"url": "https://bn.vuejs.org/api/built-in-directives.html#v-else"
|
| 737 |
+
},
|
| 738 |
+
{
|
| 739 |
+
"name": "it",
|
| 740 |
+
"url": "https://it.vuejs.org/api/built-in-directives.html#v-else"
|
| 741 |
+
},
|
| 742 |
+
{
|
| 743 |
+
"name": "cs",
|
| 744 |
+
"url": "https://cs.vuejs.org/api/built-in-directives.html#v-else"
|
| 745 |
+
},
|
| 746 |
+
{
|
| 747 |
+
"name": "ru",
|
| 748 |
+
"url": "https://ru.vuejs.org/api/built-in-directives.html#v-else"
|
| 749 |
+
},
|
| 750 |
+
{
|
| 751 |
+
"name": "fa",
|
| 752 |
+
"url": "https://fa.vuejs.org/api/built-in-directives.html#v-else"
|
| 753 |
+
}
|
| 754 |
+
]
|
| 755 |
+
},
|
| 756 |
+
{
|
| 757 |
+
"name": "v-else-if",
|
| 758 |
+
"description": {
|
| 759 |
+
"kind": "markdown",
|
| 760 |
+
"value": "\nDenota o \"bloco `else if`\" para a `v-if`. Pode ser encadeada.\n\n- **Espera:** `any`\n\n- **Detalhes**\n\n - Restrição: o anterior elemento irmão deve ter a `v-if` ou `v-else-if`.\n\n - Pode ser usada no `<template>` para denotar um bloco condicional contendo apenas texto ou vários elementos.\n\n- **Exemplo**\n\n ```html\n <div v-if=\"type === 'A'\">\n A\n </div>\n <div v-else-if=\"type === 'B'\">\n B\n </div>\n <div v-else-if=\"type === 'C'\">\n C\n </div>\n <div v-else>\n Not A/B/C\n </div>\n ```\n\n- **Consultar também** [Interpretação Condicional - `v-else-if`](https://pt.vuejs.org/guide/essentials/conditional.html#v-else-if)\n"
|
| 761 |
+
},
|
| 762 |
+
"references": [
|
| 763 |
+
{
|
| 764 |
+
"name": "en",
|
| 765 |
+
"url": "https://vuejs.org/api/built-in-directives.html#v-else-if"
|
| 766 |
+
},
|
| 767 |
+
{
|
| 768 |
+
"name": "zh-cn",
|
| 769 |
+
"url": "https://cn.vuejs.org/api/built-in-directives.html#v-else-if"
|
| 770 |
+
},
|
| 771 |
+
{
|
| 772 |
+
"name": "ja",
|
| 773 |
+
"url": "https://ja.vuejs.org/api/built-in-directives.html#v-else-if"
|
| 774 |
+
},
|
| 775 |
+
{
|
| 776 |
+
"name": "ua",
|
| 777 |
+
"url": "https://ua.vuejs.org/api/built-in-directives.html#v-else-if"
|
| 778 |
+
},
|
| 779 |
+
{
|
| 780 |
+
"name": "fr",
|
| 781 |
+
"url": "https://fr.vuejs.org/api/built-in-directives.html#v-else-if"
|
| 782 |
+
},
|
| 783 |
+
{
|
| 784 |
+
"name": "ko",
|
| 785 |
+
"url": "https://ko.vuejs.org/api/built-in-directives.html#v-else-if"
|
| 786 |
+
},
|
| 787 |
+
{
|
| 788 |
+
"name": "pt",
|
| 789 |
+
"url": "https://pt.vuejs.org/api/built-in-directives.html#v-else-if"
|
| 790 |
+
},
|
| 791 |
+
{
|
| 792 |
+
"name": "bn",
|
| 793 |
+
"url": "https://bn.vuejs.org/api/built-in-directives.html#v-else-if"
|
| 794 |
+
},
|
| 795 |
+
{
|
| 796 |
+
"name": "it",
|
| 797 |
+
"url": "https://it.vuejs.org/api/built-in-directives.html#v-else-if"
|
| 798 |
+
},
|
| 799 |
+
{
|
| 800 |
+
"name": "cs",
|
| 801 |
+
"url": "https://cs.vuejs.org/api/built-in-directives.html#v-else-if"
|
| 802 |
+
},
|
| 803 |
+
{
|
| 804 |
+
"name": "ru",
|
| 805 |
+
"url": "https://ru.vuejs.org/api/built-in-directives.html#v-else-if"
|
| 806 |
+
},
|
| 807 |
+
{
|
| 808 |
+
"name": "fa",
|
| 809 |
+
"url": "https://fa.vuejs.org/api/built-in-directives.html#v-else-if"
|
| 810 |
+
}
|
| 811 |
+
]
|
| 812 |
+
},
|
| 813 |
+
{
|
| 814 |
+
"name": "v-for",
|
| 815 |
+
"description": {
|
| 816 |
+
"kind": "markdown",
|
| 817 |
+
"value": "\nInterpreta o elemento ou bloco de modelo de marcação várias vezes baseada na fonte dos dados.\n\n- **Espera:** `Array | Object | number | string | Iterable`\n\n- **Detalhes**\n\n O valor da diretiva deve usar a sintaxe especial `alias in expression` para fornecer um pseudónimo para o elemento atual a ser iterado:\n\n ```html\n <div v-for=\"item in items\">\n {{ item.text }}\n </div>\n ```\n\n Alternativamente, também podemos especificar um pseudónimo para o índice (ou a chave se usada sobre um objeto):\n\n ```html\n <div v-for=\"(item, index) in items\"></div>\n <div v-for=\"(value, key) in object\"></div>\n <div v-for=\"(value, name, index) in object\"></div>\n ```\n\n O comportamento padrão da `v-for` tentará remendar os elementos no lugar sem movê-los. Para forçar a reordenação de elementos, devemos fornecer uma sugestão de ordenação com o atributo especial `key`:\n\n ```html\n <div v-for=\"item in items\" :key=\"item.id\">\n {{ item.text }}\n </div>\n ```\n\n `v-for` também pode trabalhar com valores que implementam o [Protocolo Iterável](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols#The_iterable_protocol), incluindo os `Map` e `Set` nativos.\n\n- **Consultar também**\n - [Interpretação de Lista](https://pt.vuejs.org/guide/essentials/list.html)\n"
|
| 818 |
+
},
|
| 819 |
+
"references": [
|
| 820 |
+
{
|
| 821 |
+
"name": "en",
|
| 822 |
+
"url": "https://vuejs.org/api/built-in-directives.html#v-for"
|
| 823 |
+
},
|
| 824 |
+
{
|
| 825 |
+
"name": "zh-cn",
|
| 826 |
+
"url": "https://cn.vuejs.org/api/built-in-directives.html#v-for"
|
| 827 |
+
},
|
| 828 |
+
{
|
| 829 |
+
"name": "ja",
|
| 830 |
+
"url": "https://ja.vuejs.org/api/built-in-directives.html#v-for"
|
| 831 |
+
},
|
| 832 |
+
{
|
| 833 |
+
"name": "ua",
|
| 834 |
+
"url": "https://ua.vuejs.org/api/built-in-directives.html#v-for"
|
| 835 |
+
},
|
| 836 |
+
{
|
| 837 |
+
"name": "fr",
|
| 838 |
+
"url": "https://fr.vuejs.org/api/built-in-directives.html#v-for"
|
| 839 |
+
},
|
| 840 |
+
{
|
| 841 |
+
"name": "ko",
|
| 842 |
+
"url": "https://ko.vuejs.org/api/built-in-directives.html#v-for"
|
| 843 |
+
},
|
| 844 |
+
{
|
| 845 |
+
"name": "pt",
|
| 846 |
+
"url": "https://pt.vuejs.org/api/built-in-directives.html#v-for"
|
| 847 |
+
},
|
| 848 |
+
{
|
| 849 |
+
"name": "bn",
|
| 850 |
+
"url": "https://bn.vuejs.org/api/built-in-directives.html#v-for"
|
| 851 |
+
},
|
| 852 |
+
{
|
| 853 |
+
"name": "it",
|
| 854 |
+
"url": "https://it.vuejs.org/api/built-in-directives.html#v-for"
|
| 855 |
+
},
|
| 856 |
+
{
|
| 857 |
+
"name": "cs",
|
| 858 |
+
"url": "https://cs.vuejs.org/api/built-in-directives.html#v-for"
|
| 859 |
+
},
|
| 860 |
+
{
|
| 861 |
+
"name": "ru",
|
| 862 |
+
"url": "https://ru.vuejs.org/api/built-in-directives.html#v-for"
|
| 863 |
+
},
|
| 864 |
+
{
|
| 865 |
+
"name": "fa",
|
| 866 |
+
"url": "https://fa.vuejs.org/api/built-in-directives.html#v-for"
|
| 867 |
+
}
|
| 868 |
+
]
|
| 869 |
+
},
|
| 870 |
+
{
|
| 871 |
+
"name": "v-on",
|
| 872 |
+
"description": {
|
| 873 |
+
"kind": "markdown",
|
| 874 |
+
"value": "\nAnexa um ouvinte de evento ao elemento.\n\n- **Atalho:** `@`\n\n- **Espera:** `Function | Inline Statement | Object (sem argumento)`\n\n- **Argumento:** `event` (opcional se estivermos usando a sintaxe de Objeto)\n\n- **Modificadores**\n\n - `.stop` - chama `event.stopPropagation()`.\n - `.prevent` - chama `event.preventDefault()`.\n - `.capture` - adiciona ouvinte de evento no modo de captura.\n - `.self` - apenas aciona o manipulador se o evento fosse despachado a partir deste elemento.\n - `.{keyAlias}` - apenas aciona o manipulador sobre certas teclas.\n - `.once` - aciona o manipulador no máximo uma vez.\n - `.left` - apenas aciona o manipulador para os eventos de rato do botão esquerdo.\n - `.right` - apenas aciona o manipulador para os eventos de rato do botão direito.\n - `.middle` - apenas aciona o manipulador para os eventos de rato do botão do meio.\n - `.passive` - anexa um evento de DOM com `{ passive: true }`.\n\n- **Detalhes**\n\n O tipo de evento é denotado pelo argumento. A expressão pode ser um nome de método, uma declaração em linha, ou omitida se existirem modificadores presentes.\n\n Quando usada num elemento normal, apenas ouve os [**eventos de DOM nativos**](https://developer.mozilla.org/en-US/docs/Web/Events). Quando usada num componente de elemento personalizado, ouve os **eventos personalizados** emitidos sobre este componente filho.\n\n Quando ouvimos os eventos de DOM nativos, o método recebe o evento nativo como único argumento. Se usarmos a declaração em linha, a declaração tem acesso à propriedade `$event` especial: `v-on:click=\"handle('ok', $event)\"`.\n\n `v-on` também suporta vínculo a um objeto de pares de evento / ouvinte sem um argumento. Nota que quando usamos a sintaxe de objeto, esta não suporta quaisquer modificadores.\n\n- **Exemplo**\n\n ```html\n <!-- manipulador de método -->\n <button v-on:click=\"doThis\"></button>\n\n <!-- evento dinâmico -->\n <button v-on:[event]=\"doThis\"></button>\n\n <!-- declaração em linha -->\n <button v-on:click=\"doThat('hello', $event)\"></button>\n\n <!-- atalho -->\n <button @click=\"doThis\"></button>\n\n <!-- atalho de evento dinâmico -->\n <button @[event]=\"doThis\"></button>\n\n <!-- parar propagação -->\n <button @click.stop=\"doThis\"></button>\n\n <!-- impedir o padrão -->\n <button @click.prevent=\"doThis\"></button>\n\n <!-- impedir o padrão sem expressão -->\n <form @submit.prevent></form>\n\n <!-- encadear modificadores -->\n <button @click.stop.prevent=\"doThis\"></button>\n\n <!-- modificador de tecla usando pseudónimo de tecla -->\n <input @keyup.enter=\"onEnter\" />\n\n <!-- o evento de clique será acionado no máximo uma vez -->\n <button v-on:click.once=\"doThis\"></button>\n\n <!-- sintaxe de objeto -->\n <button v-on=\"{ mousedown: doThis, mouseup: doThat }\"></button>\n ```\n\n Ouvindo eventos personalizados dum componente filho (o manipulador é chamado quando \"my-event\" é emitido sobre o filho):\n\n ```html\n <MyComponent @my-event=\"handleThis\" />\n\n <!-- declaração em linha -->\n <MyComponent @my-event=\"handleThis(123, $event)\" />\n ```\n\n- **Consultar também**\n - [Manipulação de Eventos](https://pt.vuejs.org/guide/essentials/event-handling.html)\n - [Componentes - Eventos Personalizados](https://pt.vuejs.org/guide/essentials/component-basics.html#listening-to-events)\n"
|
| 875 |
+
},
|
| 876 |
+
"references": [
|
| 877 |
+
{
|
| 878 |
+
"name": "en",
|
| 879 |
+
"url": "https://vuejs.org/api/built-in-directives.html#v-on"
|
| 880 |
+
},
|
| 881 |
+
{
|
| 882 |
+
"name": "zh-cn",
|
| 883 |
+
"url": "https://cn.vuejs.org/api/built-in-directives.html#v-on"
|
| 884 |
+
},
|
| 885 |
+
{
|
| 886 |
+
"name": "ja",
|
| 887 |
+
"url": "https://ja.vuejs.org/api/built-in-directives.html#v-on"
|
| 888 |
+
},
|
| 889 |
+
{
|
| 890 |
+
"name": "ua",
|
| 891 |
+
"url": "https://ua.vuejs.org/api/built-in-directives.html#v-on"
|
| 892 |
+
},
|
| 893 |
+
{
|
| 894 |
+
"name": "fr",
|
| 895 |
+
"url": "https://fr.vuejs.org/api/built-in-directives.html#v-on"
|
| 896 |
+
},
|
| 897 |
+
{
|
| 898 |
+
"name": "ko",
|
| 899 |
+
"url": "https://ko.vuejs.org/api/built-in-directives.html#v-on"
|
| 900 |
+
},
|
| 901 |
+
{
|
| 902 |
+
"name": "pt",
|
| 903 |
+
"url": "https://pt.vuejs.org/api/built-in-directives.html#v-on"
|
| 904 |
+
},
|
| 905 |
+
{
|
| 906 |
+
"name": "bn",
|
| 907 |
+
"url": "https://bn.vuejs.org/api/built-in-directives.html#v-on"
|
| 908 |
+
},
|
| 909 |
+
{
|
| 910 |
+
"name": "it",
|
| 911 |
+
"url": "https://it.vuejs.org/api/built-in-directives.html#v-on"
|
| 912 |
+
},
|
| 913 |
+
{
|
| 914 |
+
"name": "cs",
|
| 915 |
+
"url": "https://cs.vuejs.org/api/built-in-directives.html#v-on"
|
| 916 |
+
},
|
| 917 |
+
{
|
| 918 |
+
"name": "ru",
|
| 919 |
+
"url": "https://ru.vuejs.org/api/built-in-directives.html#v-on"
|
| 920 |
+
},
|
| 921 |
+
{
|
| 922 |
+
"name": "fa",
|
| 923 |
+
"url": "https://fa.vuejs.org/api/built-in-directives.html#v-on"
|
| 924 |
+
}
|
| 925 |
+
]
|
| 926 |
+
},
|
| 927 |
+
{
|
| 928 |
+
"name": "v-bind",
|
| 929 |
+
"description": {
|
| 930 |
+
"kind": "markdown",
|
| 931 |
+
"value": "\nVincula dinamicamente um ou mais atributos, ou uma propriedade de componente à uma expressão.\n\n- **Atalho:**\n - `:` ou `.` (quando usamos o modificador `.prop`)\n - Omitir o valor (quando o atributo e o valor vinculado tiverem o mesmo nome) <sup class=\"vt-badge\">3.4+</sup>\n\n- **Espera:** `any (com argumento) | Object (sem argumento)`\n\n- **Argumento:** `attrOrProp (opcional)`\n\n- **Modificadores**\n\n - `.camel` - transforma o nome de atributo em caixa espetada em caixa de camelo.\n - `.prop` - força um vínculo a ser definido como uma propriedade do DOM. <sup class=\"vt-badge\">3.2+</sup>\n - `.attr` - força um vínculo a ser definido como um atributo de DOM. <sup class=\"vt-badge\">3.2+</sup>\n\n- **Uso**\n\n Quando usada para vincular o atributo `class` ou `style`, `v-bind` suporta tipos de valores adicionar como Vetor ou Objeto. Consulte a seção do guia ligado abaixo por mais detalhes.\n\n Quando definimos um vínculo num elemento, a Vue por padrão verifica se o elemento tem a chave definida como uma propriedade usando uma verificação do operador `in`. Se a propriedade for definida, a Vue definirá o valor como uma propriedade de DOM ao invés dum atributo. Isto deve funciona na maioria dos casos, mas podemos sobrepor este comportamento ao usar explicitamente os modificadores `.prop` ou `.attr`. Isto é algumas vezes necessário, especialmente quando [trabalhamos com elementos personalizados](https://pt.vuejs.org/guide/extras/web-components.html#passing-dom-properties).\n\n Quando usada para vínculos de propriedade de componente, a propriedade deve ser declarada apropriadamente no componente filho.\n\n Quando usada sem um argumento, pode ser usada para vincular um objeto contendo pares de nome-valor de atributo.\n\n- **Exemplo**\n\n ```html\n <!-- vincular um atributo -->\n <img v-bind:src=\"imageSrc\" />\n\n <!-- nome de atributo dinâmico -->\n <button v-bind:[key]=\"value\"></button>\n\n <!-- atalho -->\n <img :src=\"imageSrc\" />\n\n <!-- atalho de mesmo nome (3.4+), expande a `:src=\"src\"` -->\n <img :src />\n\n <!-- atalho de nome de atributo dinâmico -->\n <button :[key]=\"value\"></button>\n\n <!-- com concatenação de sequência de caracteres em linha -->\n <img :src=\"'/path/to/images/' + fileName\" />\n\n <!-- vínculos de classe -->\n <div :class=\"{ red: isRed }\"></div>\n <div :class=\"[classA, classB]\"></div>\n <div :class=\"[classA, { classB: isB, classC: isC }]\"></div>\n\n <!-- vínculos de estilo -->\n <div :style=\"{ fontSize: size + 'px' }\"></div>\n <div :style=\"[styleObjectA, styleObjectB]\"></div>\n\n <!-- vincular um objeto de atributos -->\n <div v-bind=\"{ id: someProp, 'other-attr': otherProp }\"></div>\n\n <!-- vincular propriedades. -->\n <!-- \"prop\" deve ser declarada no componente filho. -->\n <MyComponent :prop=\"someThing\" />\n\n <!-- passar as propriedades do pai em comum com um componente filho -->\n <MyComponent v-bind=\"$props\" />\n\n <!-- XLink -->\n <svg><a :xlink:special=\"foo\"></a></svg>\n ```\n\n O modificador `.prop` também tem um atalho dedicado `.`:\n\n ```html\n <div :someProperty.prop=\"someObject\"></div>\n\n <!-- equivalente a -->\n <div .someProperty=\"someObject\"></div>\n ```\n\n O modificador `.camel` permite a camelização dum nome de atributo de `v-bind` quando usamos modelos de marcação no DOM, por exemplo o atributo `viewBox` de SVG:\n\n ```html\n <svg :view-box.camel=\"viewBox\"></svg>\n ```\n\n `.camel` não é necessário se estivermos a usar modelos de marcação de sequência de caracteres, pré-compilar o modelo de marcação com uma etapa de construção.\n\n- **Consultar também**\n - [Vínculos de Classe e Estilo](https://pt.vuejs.org/guide/essentials/class-and-style.html)\n - [Componentes - Detalhes da Passagem de Propriedade](https://pt.vuejs.org/guide/components/props.html#prop-passing-details)\n"
|
| 932 |
+
},
|
| 933 |
+
"references": [
|
| 934 |
+
{
|
| 935 |
+
"name": "en",
|
| 936 |
+
"url": "https://vuejs.org/api/built-in-directives.html#v-bind"
|
| 937 |
+
},
|
| 938 |
+
{
|
| 939 |
+
"name": "zh-cn",
|
| 940 |
+
"url": "https://cn.vuejs.org/api/built-in-directives.html#v-bind"
|
| 941 |
+
},
|
| 942 |
+
{
|
| 943 |
+
"name": "ja",
|
| 944 |
+
"url": "https://ja.vuejs.org/api/built-in-directives.html#v-bind"
|
| 945 |
+
},
|
| 946 |
+
{
|
| 947 |
+
"name": "ua",
|
| 948 |
+
"url": "https://ua.vuejs.org/api/built-in-directives.html#v-bind"
|
| 949 |
+
},
|
| 950 |
+
{
|
| 951 |
+
"name": "fr",
|
| 952 |
+
"url": "https://fr.vuejs.org/api/built-in-directives.html#v-bind"
|
| 953 |
+
},
|
| 954 |
+
{
|
| 955 |
+
"name": "ko",
|
| 956 |
+
"url": "https://ko.vuejs.org/api/built-in-directives.html#v-bind"
|
| 957 |
+
},
|
| 958 |
+
{
|
| 959 |
+
"name": "pt",
|
| 960 |
+
"url": "https://pt.vuejs.org/api/built-in-directives.html#v-bind"
|
| 961 |
+
},
|
| 962 |
+
{
|
| 963 |
+
"name": "bn",
|
| 964 |
+
"url": "https://bn.vuejs.org/api/built-in-directives.html#v-bind"
|
| 965 |
+
},
|
| 966 |
+
{
|
| 967 |
+
"name": "it",
|
| 968 |
+
"url": "https://it.vuejs.org/api/built-in-directives.html#v-bind"
|
| 969 |
+
},
|
| 970 |
+
{
|
| 971 |
+
"name": "cs",
|
| 972 |
+
"url": "https://cs.vuejs.org/api/built-in-directives.html#v-bind"
|
| 973 |
+
},
|
| 974 |
+
{
|
| 975 |
+
"name": "ru",
|
| 976 |
+
"url": "https://ru.vuejs.org/api/built-in-directives.html#v-bind"
|
| 977 |
+
},
|
| 978 |
+
{
|
| 979 |
+
"name": "fa",
|
| 980 |
+
"url": "https://fa.vuejs.org/api/built-in-directives.html#v-bind"
|
| 981 |
+
}
|
| 982 |
+
]
|
| 983 |
+
},
|
| 984 |
+
{
|
| 985 |
+
"name": "v-model",
|
| 986 |
+
"description": {
|
| 987 |
+
"kind": "markdown",
|
| 988 |
+
"value": "\nCria um vínculo bidirecional num elemento de entrada de formulário ou um componente.\n\n- **Espera:** variar baseado no valor do elemento de entradas de formulário ou na saída de componentes\n\n- **Limitado a:**\n\n - `<input>`\n - `<select>`\n - `<textarea>`\n - componentes\n\n- **Modificadores**\n\n - [`.lazy`](https://pt.vuejs.org/guide/essentials/forms.html#lazy) - ouve os eventos de `change` ao invés de `input`\n - [`.number`](https://pt.vuejs.org/guide/essentials/forms.html#number) - converte uma sequência de caracteres de entrada válida em números.\n - [`.trim`](https://pt.vuejs.org/guide/essentials/forms.html#trim) - apara a entrada\n\n- **Consultar também**\n\n - [Vínculos de Entrada de Formulário](https://pt.vuejs.org/guide/essentials/forms.html)\n - [Eventos de Componente - Uso com `v-model`](https://pt.vuejs.org/guide/components/v-model.html)\n"
|
| 989 |
+
},
|
| 990 |
+
"references": [
|
| 991 |
+
{
|
| 992 |
+
"name": "en",
|
| 993 |
+
"url": "https://vuejs.org/api/built-in-directives.html#v-model"
|
| 994 |
+
},
|
| 995 |
+
{
|
| 996 |
+
"name": "zh-cn",
|
| 997 |
+
"url": "https://cn.vuejs.org/api/built-in-directives.html#v-model"
|
| 998 |
+
},
|
| 999 |
+
{
|
| 1000 |
+
"name": "ja",
|
| 1001 |
+
"url": "https://ja.vuejs.org/api/built-in-directives.html#v-model"
|
| 1002 |
+
},
|
| 1003 |
+
{
|
| 1004 |
+
"name": "ua",
|
| 1005 |
+
"url": "https://ua.vuejs.org/api/built-in-directives.html#v-model"
|
| 1006 |
+
},
|
| 1007 |
+
{
|
| 1008 |
+
"name": "fr",
|
| 1009 |
+
"url": "https://fr.vuejs.org/api/built-in-directives.html#v-model"
|
| 1010 |
+
},
|
| 1011 |
+
{
|
| 1012 |
+
"name": "ko",
|
| 1013 |
+
"url": "https://ko.vuejs.org/api/built-in-directives.html#v-model"
|
| 1014 |
+
},
|
| 1015 |
+
{
|
| 1016 |
+
"name": "pt",
|
| 1017 |
+
"url": "https://pt.vuejs.org/api/built-in-directives.html#v-model"
|
| 1018 |
+
},
|
| 1019 |
+
{
|
| 1020 |
+
"name": "bn",
|
| 1021 |
+
"url": "https://bn.vuejs.org/api/built-in-directives.html#v-model"
|
| 1022 |
+
},
|
| 1023 |
+
{
|
| 1024 |
+
"name": "it",
|
| 1025 |
+
"url": "https://it.vuejs.org/api/built-in-directives.html#v-model"
|
| 1026 |
+
},
|
| 1027 |
+
{
|
| 1028 |
+
"name": "cs",
|
| 1029 |
+
"url": "https://cs.vuejs.org/api/built-in-directives.html#v-model"
|
| 1030 |
+
},
|
| 1031 |
+
{
|
| 1032 |
+
"name": "ru",
|
| 1033 |
+
"url": "https://ru.vuejs.org/api/built-in-directives.html#v-model"
|
| 1034 |
+
},
|
| 1035 |
+
{
|
| 1036 |
+
"name": "fa",
|
| 1037 |
+
"url": "https://fa.vuejs.org/api/built-in-directives.html#v-model"
|
| 1038 |
+
}
|
| 1039 |
+
]
|
| 1040 |
+
},
|
| 1041 |
+
{
|
| 1042 |
+
"name": "v-slot",
|
| 1043 |
+
"description": {
|
| 1044 |
+
"kind": "markdown",
|
| 1045 |
+
"value": "\nDenota ranhuras nomeadas ou ranhuras isoladas que esperam receber propriedades.\n\n- **Atalho:** `#`\n\n- **Espera:** expressão de JavaScript que é válido numa posição de argumento de função, incluindo suporte para desestruturação. Opcional - apenas necessário se esperamos propriedades serem passadas para a ranhura.\n\n- **Argumento:** nome da ranhura (opcional, predefinido para `default`)\n\n- **Limitado a:**\n\n - `<template>`\n - [componentes](https://pt.vuejs.org/guide/components/slots.html#scoped-slots) (para única ranhura padrão com propriedades)\n\n- **Exemplo**\n\n ```html\n <!-- Ranhuras nomeadas -->\n <BaseLayout>\n <template v-slot:header>\n Header content\n </template>\n\n <template v-slot:default>\n Default slot content\n </template>\n\n <template v-slot:footer>\n Footer content\n </template>\n </BaseLayout>\n\n <!-- Ranhura nomeada que recebe propriedades -->\n <InfiniteScroll>\n <template v-slot:item=\"slotProps\">\n <div class=\"item\">\n {{ slotProps.item.text }}\n </div>\n </template>\n </InfiniteScroll>\n\n <!-- Ranhura padrão que recebe propriedades, com desestruturação -->\n <Mouse v-slot=\"{ x, y }\">\n Mouse position: {{ x }}, {{ y }}\n </Mouse>\n ```\n\n- **Consultar também**\n - [Componentes - Ranhuras](https://pt.vuejs.org/guide/components/slots.html)\n"
|
| 1046 |
+
},
|
| 1047 |
+
"references": [
|
| 1048 |
+
{
|
| 1049 |
+
"name": "en",
|
| 1050 |
+
"url": "https://vuejs.org/api/built-in-directives.html#v-slot"
|
| 1051 |
+
},
|
| 1052 |
+
{
|
| 1053 |
+
"name": "zh-cn",
|
| 1054 |
+
"url": "https://cn.vuejs.org/api/built-in-directives.html#v-slot"
|
| 1055 |
+
},
|
| 1056 |
+
{
|
| 1057 |
+
"name": "ja",
|
| 1058 |
+
"url": "https://ja.vuejs.org/api/built-in-directives.html#v-slot"
|
| 1059 |
+
},
|
| 1060 |
+
{
|
| 1061 |
+
"name": "ua",
|
| 1062 |
+
"url": "https://ua.vuejs.org/api/built-in-directives.html#v-slot"
|
| 1063 |
+
},
|
| 1064 |
+
{
|
| 1065 |
+
"name": "fr",
|
| 1066 |
+
"url": "https://fr.vuejs.org/api/built-in-directives.html#v-slot"
|
| 1067 |
+
},
|
| 1068 |
+
{
|
| 1069 |
+
"name": "ko",
|
| 1070 |
+
"url": "https://ko.vuejs.org/api/built-in-directives.html#v-slot"
|
| 1071 |
+
},
|
| 1072 |
+
{
|
| 1073 |
+
"name": "pt",
|
| 1074 |
+
"url": "https://pt.vuejs.org/api/built-in-directives.html#v-slot"
|
| 1075 |
+
},
|
| 1076 |
+
{
|
| 1077 |
+
"name": "bn",
|
| 1078 |
+
"url": "https://bn.vuejs.org/api/built-in-directives.html#v-slot"
|
| 1079 |
+
},
|
| 1080 |
+
{
|
| 1081 |
+
"name": "it",
|
| 1082 |
+
"url": "https://it.vuejs.org/api/built-in-directives.html#v-slot"
|
| 1083 |
+
},
|
| 1084 |
+
{
|
| 1085 |
+
"name": "cs",
|
| 1086 |
+
"url": "https://cs.vuejs.org/api/built-in-directives.html#v-slot"
|
| 1087 |
+
},
|
| 1088 |
+
{
|
| 1089 |
+
"name": "ru",
|
| 1090 |
+
"url": "https://ru.vuejs.org/api/built-in-directives.html#v-slot"
|
| 1091 |
+
},
|
| 1092 |
+
{
|
| 1093 |
+
"name": "fa",
|
| 1094 |
+
"url": "https://fa.vuejs.org/api/built-in-directives.html#v-slot"
|
| 1095 |
+
}
|
| 1096 |
+
]
|
| 1097 |
+
},
|
| 1098 |
+
{
|
| 1099 |
+
"name": "v-pre",
|
| 1100 |
+
"description": {
|
| 1101 |
+
"kind": "markdown",
|
| 1102 |
+
"value": "\nIgnora a compilação para este elemento e todos os seus filhos.\n\n- **Não espera expressão**\n\n- **Detalhes**\n\n Dentro do elemento com `v-pre`, toda a sintaxe de modelo de marcação da Vue será preservada e desenhada como está. O caso de uso mais comum disto é a exibição de marcadores de bigodes puros.\n\n- **Exemplo**\n\n ```html\n <span v-pre>{{ this will not be compiled }}</span>\n ```\n"
|
| 1103 |
+
},
|
| 1104 |
+
"references": [
|
| 1105 |
+
{
|
| 1106 |
+
"name": "en",
|
| 1107 |
+
"url": "https://vuejs.org/api/built-in-directives.html#v-pre"
|
| 1108 |
+
},
|
| 1109 |
+
{
|
| 1110 |
+
"name": "zh-cn",
|
| 1111 |
+
"url": "https://cn.vuejs.org/api/built-in-directives.html#v-pre"
|
| 1112 |
+
},
|
| 1113 |
+
{
|
| 1114 |
+
"name": "ja",
|
| 1115 |
+
"url": "https://ja.vuejs.org/api/built-in-directives.html#v-pre"
|
| 1116 |
+
},
|
| 1117 |
+
{
|
| 1118 |
+
"name": "ua",
|
| 1119 |
+
"url": "https://ua.vuejs.org/api/built-in-directives.html#v-pre"
|
| 1120 |
+
},
|
| 1121 |
+
{
|
| 1122 |
+
"name": "fr",
|
| 1123 |
+
"url": "https://fr.vuejs.org/api/built-in-directives.html#v-pre"
|
| 1124 |
+
},
|
| 1125 |
+
{
|
| 1126 |
+
"name": "ko",
|
| 1127 |
+
"url": "https://ko.vuejs.org/api/built-in-directives.html#v-pre"
|
| 1128 |
+
},
|
| 1129 |
+
{
|
| 1130 |
+
"name": "pt",
|
| 1131 |
+
"url": "https://pt.vuejs.org/api/built-in-directives.html#v-pre"
|
| 1132 |
+
},
|
| 1133 |
+
{
|
| 1134 |
+
"name": "bn",
|
| 1135 |
+
"url": "https://bn.vuejs.org/api/built-in-directives.html#v-pre"
|
| 1136 |
+
},
|
| 1137 |
+
{
|
| 1138 |
+
"name": "it",
|
| 1139 |
+
"url": "https://it.vuejs.org/api/built-in-directives.html#v-pre"
|
| 1140 |
+
},
|
| 1141 |
+
{
|
| 1142 |
+
"name": "cs",
|
| 1143 |
+
"url": "https://cs.vuejs.org/api/built-in-directives.html#v-pre"
|
| 1144 |
+
},
|
| 1145 |
+
{
|
| 1146 |
+
"name": "ru",
|
| 1147 |
+
"url": "https://ru.vuejs.org/api/built-in-directives.html#v-pre"
|
| 1148 |
+
},
|
| 1149 |
+
{
|
| 1150 |
+
"name": "fa",
|
| 1151 |
+
"url": "https://fa.vuejs.org/api/built-in-directives.html#v-pre"
|
| 1152 |
+
}
|
| 1153 |
+
]
|
| 1154 |
+
},
|
| 1155 |
+
{
|
| 1156 |
+
"name": "v-once",
|
| 1157 |
+
"description": {
|
| 1158 |
+
"kind": "markdown",
|
| 1159 |
+
"value": "\nDesenha o elemento e o componente apenas uma vez, e ignora as futuras atualizações.\n\n- **Não espera expressão**\n\n- **Detalhes**\n\n Nos redesenhos subsequentes, o elemento ou componente e todos os seus filhos serão tratados como conteúdo estático e ignorados. Isto pode ser usado para otimizar o desempenho da atualização.\n\n ```html\n <!-- elemento único -->\n <span v-once>This will never change: {{msg}}</span>\n <!-- o elemento tem filhos -->\n <div v-once>\n <h1>comment</h1>\n <p>{{msg}}</p>\n </div>\n <!-- componente -->\n <MyComponent v-once :comment=\"msg\"></MyComponent>\n <!-- diretiva `v-for` -->\n <ul>\n <li v-for=\"i in list\" v-once>{{i}}</li>\n </ul>\n ```\n\n Desde a 3.2, também podemos memorizar parte do modelo de marcação com condições de invalidação usando a [`v-memo`](#v-memo).\n\n- **Consultar também**\n - [Sintaxe de Vínculo de Dados - Interpolações](https://pt.vuejs.org/guide/essentials/template-syntax.html#text-interpolation)\n - [`v-memo`](#v-memo)\n"
|
| 1160 |
+
},
|
| 1161 |
+
"references": [
|
| 1162 |
+
{
|
| 1163 |
+
"name": "en",
|
| 1164 |
+
"url": "https://vuejs.org/api/built-in-directives.html#v-once"
|
| 1165 |
+
},
|
| 1166 |
+
{
|
| 1167 |
+
"name": "zh-cn",
|
| 1168 |
+
"url": "https://cn.vuejs.org/api/built-in-directives.html#v-once"
|
| 1169 |
+
},
|
| 1170 |
+
{
|
| 1171 |
+
"name": "ja",
|
| 1172 |
+
"url": "https://ja.vuejs.org/api/built-in-directives.html#v-once"
|
| 1173 |
+
},
|
| 1174 |
+
{
|
| 1175 |
+
"name": "ua",
|
| 1176 |
+
"url": "https://ua.vuejs.org/api/built-in-directives.html#v-once"
|
| 1177 |
+
},
|
| 1178 |
+
{
|
| 1179 |
+
"name": "fr",
|
| 1180 |
+
"url": "https://fr.vuejs.org/api/built-in-directives.html#v-once"
|
| 1181 |
+
},
|
| 1182 |
+
{
|
| 1183 |
+
"name": "ko",
|
| 1184 |
+
"url": "https://ko.vuejs.org/api/built-in-directives.html#v-once"
|
| 1185 |
+
},
|
| 1186 |
+
{
|
| 1187 |
+
"name": "pt",
|
| 1188 |
+
"url": "https://pt.vuejs.org/api/built-in-directives.html#v-once"
|
| 1189 |
+
},
|
| 1190 |
+
{
|
| 1191 |
+
"name": "bn",
|
| 1192 |
+
"url": "https://bn.vuejs.org/api/built-in-directives.html#v-once"
|
| 1193 |
+
},
|
| 1194 |
+
{
|
| 1195 |
+
"name": "it",
|
| 1196 |
+
"url": "https://it.vuejs.org/api/built-in-directives.html#v-once"
|
| 1197 |
+
},
|
| 1198 |
+
{
|
| 1199 |
+
"name": "cs",
|
| 1200 |
+
"url": "https://cs.vuejs.org/api/built-in-directives.html#v-once"
|
| 1201 |
+
},
|
| 1202 |
+
{
|
| 1203 |
+
"name": "ru",
|
| 1204 |
+
"url": "https://ru.vuejs.org/api/built-in-directives.html#v-once"
|
| 1205 |
+
},
|
| 1206 |
+
{
|
| 1207 |
+
"name": "fa",
|
| 1208 |
+
"url": "https://fa.vuejs.org/api/built-in-directives.html#v-once"
|
| 1209 |
+
}
|
| 1210 |
+
]
|
| 1211 |
+
},
|
| 1212 |
+
{
|
| 1213 |
+
"name": "v-memo",
|
| 1214 |
+
"description": {
|
| 1215 |
+
"kind": "markdown",
|
| 1216 |
+
"value": "\n- **Espera:** `any[]`\n\n- **Detalhes**\n\n Memoriza uma sub-árvore do modelo de marcação. Pode ser usada em ambos elementos e componentes. A diretiva espera um vetor de valores de dependência de comprimento fixo à comparar para a memorização. Se todos os valores no vetor fossem os mesmos que os da última interpretação, então as atualizações para a sub-árvore inteira serão ignoradas. Por exemplo:\n\n ```html\n <div v-memo=\"[valueA, valueB]\">\n ...\n </div>\n ```\n\n Quando o componente redesenha-se, se ambos `valueA` e `valueB` continuarem os mesmos, todas as atualizações para este `<div>` e seus filhos serão ignoradas. De fato, mesmo a criação nó virtual do DOM virtual também será ignorada uma vez que a cópia memorizada da sub-árvore pode ser usada novamente.\n\n É importante especificar o vetor de memorização corretamente, de outro modo podemos ignorar atualizações que deveriam de fato ser aplicadas. `v-memo` com um vetor de dependência vazio (`v-memo=\"[]\"`) seria funcionalmente equivalente à `v-once`.\n\n **Uso com `v-for`**\n\n `v-memo` é fornecida exclusivamente para micro otimizações em cenários de desempenho crítico e deveriam ser raramente necessários. O caso de uso mais comum onde isto pode ser útil é quando desenhamos grandes listas `v-for` (onde `length > 1000`):\n\n ```html\n <div v-for=\"item in list\" :key=\"item.id\" v-memo=\"[item.id === selected]\">\n <p>ID: {{ item.id }} - selected: {{ item.id === selected }}</p>\n <p>...more child nodes</p>\n </div>\n ```\n\n Quando o estado `selected` do componente mudar, será criada uma grande quantidade de nós virtuais, embora a maioria dos itens permaneça exatamente igual. O uso de `v-memo` neste contexto está essencialmente a dizer \"apenas atualize este item se tiver passado de não selecionado para selecionado, ou o contrário\". Isto permite que todos os itens não afetados reusarem seus anteriores nós virtuais e ignorar a diferenciação inteiramente. Nota que não precisamos incluir `item.id` no vetor de dependência da `v-memo` neste contexto, uma vez que a Vue atualmente a infere a partir da `:key` do item.\n\n :::warning AVISO\n Quando usamos a `v-memo` com a `v-for`, devemos certificar-nos que são usados no mesmo elemento. **`v-memo` não funciona dentro da `v-for`**.\n :::\n\n `v-memo` também pode ser usada nos componentes para manualmente impedir atualizações indesejadas em certos casos extremos onde a verificação da atualização do componente filho não foi otimizado. Mas novamente, é responsabilidade do programador especificar os vetores de dependência correta para evitar ignorar atualizações necessárias.\n\n- **Consultar também**\n - [`v-once`](#v-once)\n"
|
| 1217 |
+
},
|
| 1218 |
+
"references": [
|
| 1219 |
+
{
|
| 1220 |
+
"name": "en",
|
| 1221 |
+
"url": "https://vuejs.org/api/built-in-directives.html#v-memo"
|
| 1222 |
+
},
|
| 1223 |
+
{
|
| 1224 |
+
"name": "zh-cn",
|
| 1225 |
+
"url": "https://cn.vuejs.org/api/built-in-directives.html#v-memo"
|
| 1226 |
+
},
|
| 1227 |
+
{
|
| 1228 |
+
"name": "ja",
|
| 1229 |
+
"url": "https://ja.vuejs.org/api/built-in-directives.html#v-memo"
|
| 1230 |
+
},
|
| 1231 |
+
{
|
| 1232 |
+
"name": "ua",
|
| 1233 |
+
"url": "https://ua.vuejs.org/api/built-in-directives.html#v-memo"
|
| 1234 |
+
},
|
| 1235 |
+
{
|
| 1236 |
+
"name": "fr",
|
| 1237 |
+
"url": "https://fr.vuejs.org/api/built-in-directives.html#v-memo"
|
| 1238 |
+
},
|
| 1239 |
+
{
|
| 1240 |
+
"name": "ko",
|
| 1241 |
+
"url": "https://ko.vuejs.org/api/built-in-directives.html#v-memo"
|
| 1242 |
+
},
|
| 1243 |
+
{
|
| 1244 |
+
"name": "pt",
|
| 1245 |
+
"url": "https://pt.vuejs.org/api/built-in-directives.html#v-memo"
|
| 1246 |
+
},
|
| 1247 |
+
{
|
| 1248 |
+
"name": "bn",
|
| 1249 |
+
"url": "https://bn.vuejs.org/api/built-in-directives.html#v-memo"
|
| 1250 |
+
},
|
| 1251 |
+
{
|
| 1252 |
+
"name": "it",
|
| 1253 |
+
"url": "https://it.vuejs.org/api/built-in-directives.html#v-memo"
|
| 1254 |
+
},
|
| 1255 |
+
{
|
| 1256 |
+
"name": "cs",
|
| 1257 |
+
"url": "https://cs.vuejs.org/api/built-in-directives.html#v-memo"
|
| 1258 |
+
},
|
| 1259 |
+
{
|
| 1260 |
+
"name": "ru",
|
| 1261 |
+
"url": "https://ru.vuejs.org/api/built-in-directives.html#v-memo"
|
| 1262 |
+
},
|
| 1263 |
+
{
|
| 1264 |
+
"name": "fa",
|
| 1265 |
+
"url": "https://fa.vuejs.org/api/built-in-directives.html#v-memo"
|
| 1266 |
+
}
|
| 1267 |
+
]
|
| 1268 |
+
},
|
| 1269 |
+
{
|
| 1270 |
+
"name": "v-cloak",
|
| 1271 |
+
"description": {
|
| 1272 |
+
"kind": "markdown",
|
| 1273 |
+
"value": "\nUsada para esconder o modelo de marcação que ainda não foi compilado até que estiver pronto.\n\n- **Não espera expressão**\n\n- **Detalhes**\n\n **Esta diretiva apenas é necessária nas configurações sem etapa de construção.**\n\n Quando usamos os modelos de marcação no DOM, pode existir um \"piscar de modelos de marcação não compilados\": o utilizador pode ver os marcadores de bigodes puros até o componente montado substituí-los com componente desenhado.\n\n `v-cloak` permanecerá no elemento até que a instância do componente associado for montada. Combinada com as regras de CSS como `[v-cloak] { display: none }`, pode ser usada para esconder os modelos de marcação puros até o componente estiver pronto.\n\n- **Exemplo**\n\n ```css\n [v-cloak] {\n display: none;\n }\n ```\n\n ```html\n <div v-cloak>\n {{ message }}\n </div>\n ```\n\n O `<div>` não será visível até que a compilação estiver concluída.\n"
|
| 1274 |
+
},
|
| 1275 |
+
"references": [
|
| 1276 |
+
{
|
| 1277 |
+
"name": "en",
|
| 1278 |
+
"url": "https://vuejs.org/api/built-in-directives.html#v-cloak"
|
| 1279 |
+
},
|
| 1280 |
+
{
|
| 1281 |
+
"name": "zh-cn",
|
| 1282 |
+
"url": "https://cn.vuejs.org/api/built-in-directives.html#v-cloak"
|
| 1283 |
+
},
|
| 1284 |
+
{
|
| 1285 |
+
"name": "ja",
|
| 1286 |
+
"url": "https://ja.vuejs.org/api/built-in-directives.html#v-cloak"
|
| 1287 |
+
},
|
| 1288 |
+
{
|
| 1289 |
+
"name": "ua",
|
| 1290 |
+
"url": "https://ua.vuejs.org/api/built-in-directives.html#v-cloak"
|
| 1291 |
+
},
|
| 1292 |
+
{
|
| 1293 |
+
"name": "fr",
|
| 1294 |
+
"url": "https://fr.vuejs.org/api/built-in-directives.html#v-cloak"
|
| 1295 |
+
},
|
| 1296 |
+
{
|
| 1297 |
+
"name": "ko",
|
| 1298 |
+
"url": "https://ko.vuejs.org/api/built-in-directives.html#v-cloak"
|
| 1299 |
+
},
|
| 1300 |
+
{
|
| 1301 |
+
"name": "pt",
|
| 1302 |
+
"url": "https://pt.vuejs.org/api/built-in-directives.html#v-cloak"
|
| 1303 |
+
},
|
| 1304 |
+
{
|
| 1305 |
+
"name": "bn",
|
| 1306 |
+
"url": "https://bn.vuejs.org/api/built-in-directives.html#v-cloak"
|
| 1307 |
+
},
|
| 1308 |
+
{
|
| 1309 |
+
"name": "it",
|
| 1310 |
+
"url": "https://it.vuejs.org/api/built-in-directives.html#v-cloak"
|
| 1311 |
+
},
|
| 1312 |
+
{
|
| 1313 |
+
"name": "cs",
|
| 1314 |
+
"url": "https://cs.vuejs.org/api/built-in-directives.html#v-cloak"
|
| 1315 |
+
},
|
| 1316 |
+
{
|
| 1317 |
+
"name": "ru",
|
| 1318 |
+
"url": "https://ru.vuejs.org/api/built-in-directives.html#v-cloak"
|
| 1319 |
+
},
|
| 1320 |
+
{
|
| 1321 |
+
"name": "fa",
|
| 1322 |
+
"url": "https://fa.vuejs.org/api/built-in-directives.html#v-cloak"
|
| 1323 |
+
}
|
| 1324 |
+
]
|
| 1325 |
+
},
|
| 1326 |
+
{
|
| 1327 |
+
"name": "key",
|
| 1328 |
+
"description": {
|
| 1329 |
+
"kind": "markdown",
|
| 1330 |
+
"value": "\nO atributo especial `key` é primariamente usado como uma sugestão para o algoritmo do DOM virtual da Vue identificar os nós virtuais quando diferenciar a nova lista de nós contra a antiga lista.\n\n- **Espera:** `number | string | symbol`\n\n- **Detalhes**\n\n Sem chaves, a Vue usa um algoritmo que minimiza o movimento de elemento e tenta remendar ou reusar elementos do mesmo tipo no lugar o máximo possível. Com chaves, reorganizará os elementos baseado na mudança de ordem das chaves, e os elementos com chaves que não estão mais presentes sempre serão removidos ou destruídos.\n\n Os filhos do mesmo pai comum devem ter **chaves únicas**. As chaves duplicadas causarão erros de interpretação.\n\n O caso de uso mais comum é combinado com `v-for`:\n\n ```html\n <ul>\n <li v-for=\"item in items\" :key=\"item.id\">...</li>\n </ul>\n ```\n\n Também pode ser usado para forçar a substituição dum elemento ou componente ao invés de reusá-lo. Isto pode ser útil quando queremos:\n\n - Acionar corretamente os gatilhos do ciclo de vida dum componente\n - Acionar transições\n\n Por exemplo:\n\n ```html\n <transition>\n <span :key=\"text\">{{ text }}</span>\n </transition>\n ```\n\n Quando `text` mudar, o `<span>` sempre será substituído ao invés de ser remendado, depois uma transição será acionada.\n\n- **Consulte também** [Guia - Interpretação de Lista - Mantendo o Estado com `key`](https://pt.vuejs.org/guide/essentials/list.html#maintaining-state-with-key)\n"
|
| 1331 |
+
},
|
| 1332 |
+
"references": [
|
| 1333 |
+
{
|
| 1334 |
+
"name": "en",
|
| 1335 |
+
"url": "https://vuejs.org/api/built-in-special-attributes.html#key"
|
| 1336 |
+
},
|
| 1337 |
+
{
|
| 1338 |
+
"name": "zh-cn",
|
| 1339 |
+
"url": "https://cn.vuejs.org/api/built-in-special-attributes.html#key"
|
| 1340 |
+
},
|
| 1341 |
+
{
|
| 1342 |
+
"name": "ja",
|
| 1343 |
+
"url": "https://ja.vuejs.org/api/built-in-special-attributes.html#key"
|
| 1344 |
+
},
|
| 1345 |
+
{
|
| 1346 |
+
"name": "ua",
|
| 1347 |
+
"url": "https://ua.vuejs.org/api/built-in-special-attributes.html#key"
|
| 1348 |
+
},
|
| 1349 |
+
{
|
| 1350 |
+
"name": "fr",
|
| 1351 |
+
"url": "https://fr.vuejs.org/api/built-in-special-attributes.html#key"
|
| 1352 |
+
},
|
| 1353 |
+
{
|
| 1354 |
+
"name": "ko",
|
| 1355 |
+
"url": "https://ko.vuejs.org/api/built-in-special-attributes.html#key"
|
| 1356 |
+
},
|
| 1357 |
+
{
|
| 1358 |
+
"name": "pt",
|
| 1359 |
+
"url": "https://pt.vuejs.org/api/built-in-special-attributes.html#key"
|
| 1360 |
+
},
|
| 1361 |
+
{
|
| 1362 |
+
"name": "bn",
|
| 1363 |
+
"url": "https://bn.vuejs.org/api/built-in-special-attributes.html#key"
|
| 1364 |
+
},
|
| 1365 |
+
{
|
| 1366 |
+
"name": "it",
|
| 1367 |
+
"url": "https://it.vuejs.org/api/built-in-special-attributes.html#key"
|
| 1368 |
+
},
|
| 1369 |
+
{
|
| 1370 |
+
"name": "cs",
|
| 1371 |
+
"url": "https://cs.vuejs.org/api/built-in-special-attributes.html#key"
|
| 1372 |
+
},
|
| 1373 |
+
{
|
| 1374 |
+
"name": "ru",
|
| 1375 |
+
"url": "https://ru.vuejs.org/api/built-in-special-attributes.html#key"
|
| 1376 |
+
},
|
| 1377 |
+
{
|
| 1378 |
+
"name": "fa",
|
| 1379 |
+
"url": "https://fa.vuejs.org/api/built-in-special-attributes.html#key"
|
| 1380 |
+
}
|
| 1381 |
+
]
|
| 1382 |
+
},
|
| 1383 |
+
{
|
| 1384 |
+
"name": "ref",
|
| 1385 |
+
"description": {
|
| 1386 |
+
"kind": "markdown",
|
| 1387 |
+
"value": "\nDenota uma [referência do modelo de marcação](https://pt.vuejs.org/guide/essentials/template-refs.html).\n\n- **Espera:** `string | Function`\n\n- **Detalhes**\n\n `ref` é usado para registar uma referência à um elemento ou à um componente filho.\n\n Na API de Opções, a referência será registada sob o objeto `this.$refs` do componente:\n\n ```html\n <!-- armazenado como this.$refs.p -->\n <p ref=\"p\">hello</p>\n ```\n\n Na API de Composição, a referência será armazenada em uma `ref` com o nome correspondente:\n\n ```vue\n <script setup>\n import { ref } from 'vue'\n\n const p = ref()\n </script>\n\n <template>\n <p ref=\"p\">hello</p>\n </template>\n ```\n\n Se usado sobre um elemento de DOM simples, a referência será este elemento; se usada sobre um componente filho, a referência será a instância do componente filho.\n\n Alternativamente, a `ref` pode aceitar um valor de função que fornece controlo total sobre onde armazenar a referência:\n\n ```html\n <ChildComponent :ref=\"(el) => child = el\" />\n ```\n\n Uma nota importante sobre o tempo de registo da referência: uma vez que as próprias referências são criadas como resultado da função de interpretação, devemos esperar até o componente ser montado antes de acessá-las.\n\n `this.$refs` também não é reativa, portanto não devemos tentar usá-la nos modelos de marcação para vínculo de dados.\n\n- **Consulte também**\n - [Guia - Referências do Modelo de Marcação](https://pt.vuejs.org/guide/essentials/template-refs.html)\n - [Guia - Tipos para Referências do Modelo de Marcação](https://pt.vuejs.org/guide/typescript/composition-api.html#typing-template-refs) <sup class=\"vt-badge ts\" data-text=\"typescript\" />\n - [Guia - Tipos para Referências do Modelo de Marcação do Componente](https://pt.vuejs.org/guide/typescript/composition-api.html#typing-component-template-refs) <sup class=\"vt-badge ts\" data-text=\"typescript\" />\n"
|
| 1388 |
+
},
|
| 1389 |
+
"references": [
|
| 1390 |
+
{
|
| 1391 |
+
"name": "en",
|
| 1392 |
+
"url": "https://vuejs.org/api/built-in-special-attributes.html#ref"
|
| 1393 |
+
},
|
| 1394 |
+
{
|
| 1395 |
+
"name": "zh-cn",
|
| 1396 |
+
"url": "https://cn.vuejs.org/api/built-in-special-attributes.html#ref"
|
| 1397 |
+
},
|
| 1398 |
+
{
|
| 1399 |
+
"name": "ja",
|
| 1400 |
+
"url": "https://ja.vuejs.org/api/built-in-special-attributes.html#ref"
|
| 1401 |
+
},
|
| 1402 |
+
{
|
| 1403 |
+
"name": "ua",
|
| 1404 |
+
"url": "https://ua.vuejs.org/api/built-in-special-attributes.html#ref"
|
| 1405 |
+
},
|
| 1406 |
+
{
|
| 1407 |
+
"name": "fr",
|
| 1408 |
+
"url": "https://fr.vuejs.org/api/built-in-special-attributes.html#ref"
|
| 1409 |
+
},
|
| 1410 |
+
{
|
| 1411 |
+
"name": "ko",
|
| 1412 |
+
"url": "https://ko.vuejs.org/api/built-in-special-attributes.html#ref"
|
| 1413 |
+
},
|
| 1414 |
+
{
|
| 1415 |
+
"name": "pt",
|
| 1416 |
+
"url": "https://pt.vuejs.org/api/built-in-special-attributes.html#ref"
|
| 1417 |
+
},
|
| 1418 |
+
{
|
| 1419 |
+
"name": "bn",
|
| 1420 |
+
"url": "https://bn.vuejs.org/api/built-in-special-attributes.html#ref"
|
| 1421 |
+
},
|
| 1422 |
+
{
|
| 1423 |
+
"name": "it",
|
| 1424 |
+
"url": "https://it.vuejs.org/api/built-in-special-attributes.html#ref"
|
| 1425 |
+
},
|
| 1426 |
+
{
|
| 1427 |
+
"name": "cs",
|
| 1428 |
+
"url": "https://cs.vuejs.org/api/built-in-special-attributes.html#ref"
|
| 1429 |
+
},
|
| 1430 |
+
{
|
| 1431 |
+
"name": "ru",
|
| 1432 |
+
"url": "https://ru.vuejs.org/api/built-in-special-attributes.html#ref"
|
| 1433 |
+
},
|
| 1434 |
+
{
|
| 1435 |
+
"name": "fa",
|
| 1436 |
+
"url": "https://fa.vuejs.org/api/built-in-special-attributes.html#ref"
|
| 1437 |
+
}
|
| 1438 |
+
]
|
| 1439 |
+
},
|
| 1440 |
+
{
|
| 1441 |
+
"name": "is",
|
| 1442 |
+
"description": {
|
| 1443 |
+
"kind": "markdown",
|
| 1444 |
+
"value": "\nUsado para vincular os [componentes dinâmicos](https://pt.vuejs.org/guide/essentials/component-basics.html#dynamic-components).\n\n- **Espera:** `string | Component`\n\n- **Uso sobre os elementos nativos** <sup class=\"vt-badge\">3.1+</sup>\n\n Quando o atributo `is` for usado sobre um elemento de HTML nativo, será interpretado como um [elemento embutido personalizado](https://html.spec.whatwg.org/multipage/custom-elements#custom-elements-customized-builtin-example), que é uma funcionalidade da plataforma da Web nativa.\n\n Existe, no entanto, um caso de uso onde podemos precisar que a Vue substitua um elemento nativo por um elemento da Vue, como explicado nas [Advertências de Analise do Modelo de Marcação de DOM](https://pt.vuejs.org/guide/essentials/component-basics.html#dom-template-parsing-caveats). Nós podemos prefixar o valor do atributo `is` com `vue:` assim a Vue interpretará o elemento como um componente de Vue:\n\n ```html\n <table>\n <tr is=\"vue:my-row-component\"></tr>\n </table>\n ```\n\n- **Consulte também**\n\n - [Elementos Especiais Embutidos - `<component>`](https://pt.vuejs.org/api/built-in-special-elements.html#component)\n - [Componentes Dinâmicos](https://pt.vuejs.org/guide/essentials/component-basics.html#dynamic-components)\n"
|
| 1445 |
+
},
|
| 1446 |
+
"references": [
|
| 1447 |
+
{
|
| 1448 |
+
"name": "en",
|
| 1449 |
+
"url": "https://vuejs.org/api/built-in-special-attributes.html#is"
|
| 1450 |
+
},
|
| 1451 |
+
{
|
| 1452 |
+
"name": "zh-cn",
|
| 1453 |
+
"url": "https://cn.vuejs.org/api/built-in-special-attributes.html#is"
|
| 1454 |
+
},
|
| 1455 |
+
{
|
| 1456 |
+
"name": "ja",
|
| 1457 |
+
"url": "https://ja.vuejs.org/api/built-in-special-attributes.html#is"
|
| 1458 |
+
},
|
| 1459 |
+
{
|
| 1460 |
+
"name": "ua",
|
| 1461 |
+
"url": "https://ua.vuejs.org/api/built-in-special-attributes.html#is"
|
| 1462 |
+
},
|
| 1463 |
+
{
|
| 1464 |
+
"name": "fr",
|
| 1465 |
+
"url": "https://fr.vuejs.org/api/built-in-special-attributes.html#is"
|
| 1466 |
+
},
|
| 1467 |
+
{
|
| 1468 |
+
"name": "ko",
|
| 1469 |
+
"url": "https://ko.vuejs.org/api/built-in-special-attributes.html#is"
|
| 1470 |
+
},
|
| 1471 |
+
{
|
| 1472 |
+
"name": "pt",
|
| 1473 |
+
"url": "https://pt.vuejs.org/api/built-in-special-attributes.html#is"
|
| 1474 |
+
},
|
| 1475 |
+
{
|
| 1476 |
+
"name": "bn",
|
| 1477 |
+
"url": "https://bn.vuejs.org/api/built-in-special-attributes.html#is"
|
| 1478 |
+
},
|
| 1479 |
+
{
|
| 1480 |
+
"name": "it",
|
| 1481 |
+
"url": "https://it.vuejs.org/api/built-in-special-attributes.html#is"
|
| 1482 |
+
},
|
| 1483 |
+
{
|
| 1484 |
+
"name": "cs",
|
| 1485 |
+
"url": "https://cs.vuejs.org/api/built-in-special-attributes.html#is"
|
| 1486 |
+
},
|
| 1487 |
+
{
|
| 1488 |
+
"name": "ru",
|
| 1489 |
+
"url": "https://ru.vuejs.org/api/built-in-special-attributes.html#is"
|
| 1490 |
+
},
|
| 1491 |
+
{
|
| 1492 |
+
"name": "fa",
|
| 1493 |
+
"url": "https://fa.vuejs.org/api/built-in-special-attributes.html#is"
|
| 1494 |
+
}
|
| 1495 |
+
]
|
| 1496 |
+
}
|
| 1497 |
+
]
|
| 1498 |
+
}
|
Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/@vue/language-service/data/template/ru.json
CHANGED
|
The diff for this file is too large to render.
See raw diff
|
|
|
Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/@vue/language-service/data/template/zh-cn.json
CHANGED
|
@@ -1,3 +1,1498 @@
|
|
| 1 |
-
|
| 2 |
-
|
| 3 |
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"version": 1.1,
|
| 3 |
+
"tags": [
|
| 4 |
+
{
|
| 5 |
+
"name": "Transition",
|
| 6 |
+
"description": {
|
| 7 |
+
"kind": "markdown",
|
| 8 |
+
"value": "\n为**单个**元素或组件提供动画过渡效果。\n\n- **Props**\n\n ```ts\n interface TransitionProps {\n /**\n * 用于自动生成过渡 CSS class 名。\n * 例如 `name: 'fade'` 将自动扩展为 `.fade-enter`、\n * `.fade-enter-active` 等。\n */\n name?: string\n /**\n * 是否应用 CSS 过渡 class。\n * 默认:true\n */\n css?: boolean\n /**\n * 指定要等待的过渡事件类型\n * 来确定过渡结束的时间。\n * 默认情况下会自动检测\n * 持续时间较长的类型。\n */\n type?: 'transition' | 'animation'\n /**\n * 显式指定过渡的持续时间。\n * 默认情况下是等待过渡效果的根元素的第一个 `transitionend`\n * 或`animationend`事件。\n */\n duration?: number | { enter: number; leave: number }\n /**\n * 控制离开/进入过渡的时序。\n * 默认情况下是同时的。\n */\n mode?: 'in-out' | 'out-in' | 'default'\n /**\n * 是否对初始渲染使用过渡。\n * 默认:false\n */\n appear?: boolean\n\n /**\n * 用于自定义过渡 class 的 prop。\n * 在模板中使用短横线命名,例如:enter-from-class=\"xxx\"\n */\n enterFromClass?: string\n enterActiveClass?: string\n enterToClass?: string\n appearFromClass?: string\n appearActiveClass?: string\n appearToClass?: string\n leaveFromClass?: string\n leaveActiveClass?: string\n leaveToClass?: string\n }\n ```\n\n- **事件**\n\n - `@before-enter`\n - `@before-leave`\n - `@enter`\n - `@leave`\n - `@appear`\n - `@after-enter`\n - `@after-leave`\n - `@after-appear`\n - `@enter-cancelled`\n - `@leave-cancelled` (`v-show` only)\n - `@appear-cancelled`\n\n- **示例**\n\n 简单元素:\n\n ```html\n <Transition>\n <div v-if=\"ok\">toggled content</div>\n </Transition>\n ```\n\n 通过改变 `key` 属性来强制过度执行:\n\n ```html\n <Transition>\n <div :key=\"text\">{{ text }}</div>\n </Transition>\n ```\n\n 动态组件,初始渲染时带有过渡模式 + 动画出现:\n\n ```html\n <Transition name=\"fade\" mode=\"out-in\" appear>\n <component :is=\"view\"></component>\n </Transition>\n ```\n\n 监听过渡事件:\n\n ```html\n <Transition @after-enter=\"onTransitionComplete\">\n <div v-show=\"ok\">toggled content</div>\n </Transition>\n ```\n\n- **参考**[指南 - `<Transition>`](https://cn.vuejs.org/guide/built-ins/transition.html)\n"
|
| 9 |
+
},
|
| 10 |
+
"attributes": [],
|
| 11 |
+
"references": [
|
| 12 |
+
{
|
| 13 |
+
"name": "en",
|
| 14 |
+
"url": "https://vuejs.org/api/built-in-components.html#transition"
|
| 15 |
+
},
|
| 16 |
+
{
|
| 17 |
+
"name": "zh-cn",
|
| 18 |
+
"url": "https://cn.vuejs.org/api/built-in-components.html#transition"
|
| 19 |
+
},
|
| 20 |
+
{
|
| 21 |
+
"name": "ja",
|
| 22 |
+
"url": "https://ja.vuejs.org/api/built-in-components.html#transition"
|
| 23 |
+
},
|
| 24 |
+
{
|
| 25 |
+
"name": "ua",
|
| 26 |
+
"url": "https://ua.vuejs.org/api/built-in-components.html#transition"
|
| 27 |
+
},
|
| 28 |
+
{
|
| 29 |
+
"name": "fr",
|
| 30 |
+
"url": "https://fr.vuejs.org/api/built-in-components.html#transition"
|
| 31 |
+
},
|
| 32 |
+
{
|
| 33 |
+
"name": "ko",
|
| 34 |
+
"url": "https://ko.vuejs.org/api/built-in-components.html#transition"
|
| 35 |
+
},
|
| 36 |
+
{
|
| 37 |
+
"name": "pt",
|
| 38 |
+
"url": "https://pt.vuejs.org/api/built-in-components.html#transition"
|
| 39 |
+
},
|
| 40 |
+
{
|
| 41 |
+
"name": "bn",
|
| 42 |
+
"url": "https://bn.vuejs.org/api/built-in-components.html#transition"
|
| 43 |
+
},
|
| 44 |
+
{
|
| 45 |
+
"name": "it",
|
| 46 |
+
"url": "https://it.vuejs.org/api/built-in-components.html#transition"
|
| 47 |
+
},
|
| 48 |
+
{
|
| 49 |
+
"name": "cs",
|
| 50 |
+
"url": "https://cs.vuejs.org/api/built-in-components.html#transition"
|
| 51 |
+
},
|
| 52 |
+
{
|
| 53 |
+
"name": "ru",
|
| 54 |
+
"url": "https://ru.vuejs.org/api/built-in-components.html#transition"
|
| 55 |
+
},
|
| 56 |
+
{
|
| 57 |
+
"name": "fa",
|
| 58 |
+
"url": "https://fa.vuejs.org/api/built-in-components.html#transition"
|
| 59 |
+
}
|
| 60 |
+
]
|
| 61 |
+
},
|
| 62 |
+
{
|
| 63 |
+
"name": "TransitionGroup",
|
| 64 |
+
"description": {
|
| 65 |
+
"kind": "markdown",
|
| 66 |
+
"value": "\n为列表中的**多个**元素或组件提供过渡效果。\n\n- **Props**\n\n `<TransitionGroup>` 拥有与 `<Transition>` 除了 `mode` 以外所有的 props,并增加了两个额外的 props:\n\n ```ts\n interface TransitionGroupProps extends Omit<TransitionProps, 'mode'> {\n /**\n * 如果未定义,则渲染为片段 (fragment)。\n */\n tag?: string\n /**\n * 用于自定义过渡期间被应用的 CSS class。\n * 在模板中使用 kebab-case,例如 move-class=\"xxx\"\n */\n moveClass?: string\n }\n ```\n\n- **事件**\n\n `<TransitionGroup>` 抛出与 `<Transition>` 相同的事件。\n\n- **详细信息**\n\n 默认情况下,`<TransitionGroup>` 不会渲染一个容器 DOM 元素,但是可以通过 `tag` prop 启用。\n\n 注意,每个 `<transition-group>` 的子节点必须有[**独立的 key**](https://cn.vuejs.org/guide/essentials/list.html#maintaining-state-with-key),动画才能正常工作。\n\n `<TransitionGroup>` 支持通过 CSS transform 控制移动效果。当一个子节点在屏幕上的位置在更新之后发生变化时,它会被添加一个使其位移的 CSS class (基于 `name` attribute 推导,或使用 `move-class` prop 显式配置)。如果使其位移的 class 被添加时 CSS 的 `transform` 属性是“可过渡的”,那么该元素会基于 [FLIP 技巧](https://aerotwist.com/blog/flip-your-animations/)平滑地到达动画终点。\n\n- **示例**\n\n ```html\n <TransitionGroup tag=\"ul\" name=\"slide\">\n <li v-for=\"item in items\" :key=\"item.id\">\n {{ item.text }}\n </li>\n </TransitionGroup>\n ```\n\n- **参考**[指南 - TransitionGroup](https://cn.vuejs.org/guide/built-ins/transition-group.html)\n"
|
| 67 |
+
},
|
| 68 |
+
"attributes": [],
|
| 69 |
+
"references": [
|
| 70 |
+
{
|
| 71 |
+
"name": "en",
|
| 72 |
+
"url": "https://vuejs.org/api/built-in-components.html#transitiongroup"
|
| 73 |
+
},
|
| 74 |
+
{
|
| 75 |
+
"name": "zh-cn",
|
| 76 |
+
"url": "https://cn.vuejs.org/api/built-in-components.html#transitiongroup"
|
| 77 |
+
},
|
| 78 |
+
{
|
| 79 |
+
"name": "ja",
|
| 80 |
+
"url": "https://ja.vuejs.org/api/built-in-components.html#transitiongroup"
|
| 81 |
+
},
|
| 82 |
+
{
|
| 83 |
+
"name": "ua",
|
| 84 |
+
"url": "https://ua.vuejs.org/api/built-in-components.html#transitiongroup"
|
| 85 |
+
},
|
| 86 |
+
{
|
| 87 |
+
"name": "fr",
|
| 88 |
+
"url": "https://fr.vuejs.org/api/built-in-components.html#transitiongroup"
|
| 89 |
+
},
|
| 90 |
+
{
|
| 91 |
+
"name": "ko",
|
| 92 |
+
"url": "https://ko.vuejs.org/api/built-in-components.html#transitiongroup"
|
| 93 |
+
},
|
| 94 |
+
{
|
| 95 |
+
"name": "pt",
|
| 96 |
+
"url": "https://pt.vuejs.org/api/built-in-components.html#transitiongroup"
|
| 97 |
+
},
|
| 98 |
+
{
|
| 99 |
+
"name": "bn",
|
| 100 |
+
"url": "https://bn.vuejs.org/api/built-in-components.html#transitiongroup"
|
| 101 |
+
},
|
| 102 |
+
{
|
| 103 |
+
"name": "it",
|
| 104 |
+
"url": "https://it.vuejs.org/api/built-in-components.html#transitiongroup"
|
| 105 |
+
},
|
| 106 |
+
{
|
| 107 |
+
"name": "cs",
|
| 108 |
+
"url": "https://cs.vuejs.org/api/built-in-components.html#transitiongroup"
|
| 109 |
+
},
|
| 110 |
+
{
|
| 111 |
+
"name": "ru",
|
| 112 |
+
"url": "https://ru.vuejs.org/api/built-in-components.html#transitiongroup"
|
| 113 |
+
},
|
| 114 |
+
{
|
| 115 |
+
"name": "fa",
|
| 116 |
+
"url": "https://fa.vuejs.org/api/built-in-components.html#transitiongroup"
|
| 117 |
+
}
|
| 118 |
+
]
|
| 119 |
+
},
|
| 120 |
+
{
|
| 121 |
+
"name": "KeepAlive",
|
| 122 |
+
"description": {
|
| 123 |
+
"kind": "markdown",
|
| 124 |
+
"value": "\n缓存包裹在其中的动态切换组件。\n\n- **Props**\n\n ```ts\n interface KeepAliveProps {\n /**\n * 如果指定,则只有与 `include` 名称\n * 匹配的组件才会被缓存。\n */\n include?: MatchPattern\n /**\n * 任何名称与 `exclude`\n * 匹配的组件都不会被缓存。\n */\n exclude?: MatchPattern\n /**\n * 最多可以缓存多少组件实例。\n */\n max?: number | string\n }\n\n type MatchPattern = string | RegExp | (string | RegExp)[]\n ```\n\n- **详细信息**\n\n `<KeepAlive>` 包裹动态组件时,会缓存不活跃的组件实例,而不是销毁它们。\n\n 任何时候都只能有一个活跃组件实例作为 `<KeepAlive>` 的直接子节点。\n\n 当一个组件在 `<KeepAlive>` 中被切换时,它的 `activated` 和 `deactivated` 生命周期钩子将被调用,用来替代 `mounted` 和 `unmounted`。这适用于 `<KeepAlive>` 的直接子节点及其所有子孙节点。\n\n- **示例**\n\n 基本用法:\n\n ```html\n <KeepAlive>\n <component :is=\"view\"></component>\n </KeepAlive>\n ```\n\n 与 `v-if` / `v-else` 分支一起使用时,同一时间只能有一个组件被渲染:\n\n ```html\n <KeepAlive>\n <comp-a v-if=\"a > 1\"></comp-a>\n <comp-b v-else></comp-b>\n </KeepAlive>\n ```\n\n 与 `<Transition>` 一起使用:\n\n ```html\n <Transition>\n <KeepAlive>\n <component :is=\"view\"></component>\n </KeepAlive>\n </Transition>\n ```\n\n 使用 `include` / `exclude`:\n\n ```html\n <!-- 用逗号分隔的字符串 -->\n <KeepAlive include=\"a,b\">\n <component :is=\"view\"></component>\n </KeepAlive>\n\n <!-- 正则表达式 (使用 `v-bind`) -->\n <KeepAlive :include=\"/a|b/\">\n <component :is=\"view\"></component>\n </KeepAlive>\n\n <!-- 数组 (使用 `v-bind`) -->\n <KeepAlive :include=\"['a', 'b']\">\n <component :is=\"view\"></component>\n </KeepAlive>\n ```\n\n 使用 `max`:\n\n ```html\n <KeepAlive :max=\"10\">\n <component :is=\"view\"></component>\n </KeepAlive>\n ```\n\n- **参��**[指南 - KeepAlive](https://cn.vuejs.org/guide/built-ins/keep-alive.html)\n"
|
| 125 |
+
},
|
| 126 |
+
"attributes": [],
|
| 127 |
+
"references": [
|
| 128 |
+
{
|
| 129 |
+
"name": "en",
|
| 130 |
+
"url": "https://vuejs.org/api/built-in-components.html#keepalive"
|
| 131 |
+
},
|
| 132 |
+
{
|
| 133 |
+
"name": "zh-cn",
|
| 134 |
+
"url": "https://cn.vuejs.org/api/built-in-components.html#keepalive"
|
| 135 |
+
},
|
| 136 |
+
{
|
| 137 |
+
"name": "ja",
|
| 138 |
+
"url": "https://ja.vuejs.org/api/built-in-components.html#keepalive"
|
| 139 |
+
},
|
| 140 |
+
{
|
| 141 |
+
"name": "ua",
|
| 142 |
+
"url": "https://ua.vuejs.org/api/built-in-components.html#keepalive"
|
| 143 |
+
},
|
| 144 |
+
{
|
| 145 |
+
"name": "fr",
|
| 146 |
+
"url": "https://fr.vuejs.org/api/built-in-components.html#keepalive"
|
| 147 |
+
},
|
| 148 |
+
{
|
| 149 |
+
"name": "ko",
|
| 150 |
+
"url": "https://ko.vuejs.org/api/built-in-components.html#keepalive"
|
| 151 |
+
},
|
| 152 |
+
{
|
| 153 |
+
"name": "pt",
|
| 154 |
+
"url": "https://pt.vuejs.org/api/built-in-components.html#keepalive"
|
| 155 |
+
},
|
| 156 |
+
{
|
| 157 |
+
"name": "bn",
|
| 158 |
+
"url": "https://bn.vuejs.org/api/built-in-components.html#keepalive"
|
| 159 |
+
},
|
| 160 |
+
{
|
| 161 |
+
"name": "it",
|
| 162 |
+
"url": "https://it.vuejs.org/api/built-in-components.html#keepalive"
|
| 163 |
+
},
|
| 164 |
+
{
|
| 165 |
+
"name": "cs",
|
| 166 |
+
"url": "https://cs.vuejs.org/api/built-in-components.html#keepalive"
|
| 167 |
+
},
|
| 168 |
+
{
|
| 169 |
+
"name": "ru",
|
| 170 |
+
"url": "https://ru.vuejs.org/api/built-in-components.html#keepalive"
|
| 171 |
+
},
|
| 172 |
+
{
|
| 173 |
+
"name": "fa",
|
| 174 |
+
"url": "https://fa.vuejs.org/api/built-in-components.html#keepalive"
|
| 175 |
+
}
|
| 176 |
+
]
|
| 177 |
+
},
|
| 178 |
+
{
|
| 179 |
+
"name": "Teleport",
|
| 180 |
+
"description": {
|
| 181 |
+
"kind": "markdown",
|
| 182 |
+
"value": "\n将其插槽内容渲染到 DOM 中的另一个位置。\n\n- **Props**\n\n ```ts\n interface TeleportProps {\n /**\n * 必填项。指定目标容器。\n * 可以是选择器或实际元素。\n */\n to: string | HTMLElement\n /**\n * 当值为 `true` 时,内容将保留在其原始位置\n * 而不是移动到目标容器中。\n * 可以动态更改。\n */\n disabled?: boolean\n }\n ```\n\n- **示例**\n\n 指定目标容器:\n\n ```html\n <Teleport to=\"#some-id\" />\n <Teleport to=\".some-class\" />\n <Teleport to=\"[data-teleport]\" />\n ```\n\n 有条件地禁用:\n\n ```html\n <Teleport to=\"#popup\" :disabled=\"displayVideoInline\">\n <video src=\"./my-movie.mp4\">\n </Teleport>\n ```\n\n- **参考**[指南 - Teleport](https://cn.vuejs.org/guide/built-ins/teleport.html)\n"
|
| 183 |
+
},
|
| 184 |
+
"attributes": [],
|
| 185 |
+
"references": [
|
| 186 |
+
{
|
| 187 |
+
"name": "en",
|
| 188 |
+
"url": "https://vuejs.org/api/built-in-components.html#teleport"
|
| 189 |
+
},
|
| 190 |
+
{
|
| 191 |
+
"name": "zh-cn",
|
| 192 |
+
"url": "https://cn.vuejs.org/api/built-in-components.html#teleport"
|
| 193 |
+
},
|
| 194 |
+
{
|
| 195 |
+
"name": "ja",
|
| 196 |
+
"url": "https://ja.vuejs.org/api/built-in-components.html#teleport"
|
| 197 |
+
},
|
| 198 |
+
{
|
| 199 |
+
"name": "ua",
|
| 200 |
+
"url": "https://ua.vuejs.org/api/built-in-components.html#teleport"
|
| 201 |
+
},
|
| 202 |
+
{
|
| 203 |
+
"name": "fr",
|
| 204 |
+
"url": "https://fr.vuejs.org/api/built-in-components.html#teleport"
|
| 205 |
+
},
|
| 206 |
+
{
|
| 207 |
+
"name": "ko",
|
| 208 |
+
"url": "https://ko.vuejs.org/api/built-in-components.html#teleport"
|
| 209 |
+
},
|
| 210 |
+
{
|
| 211 |
+
"name": "pt",
|
| 212 |
+
"url": "https://pt.vuejs.org/api/built-in-components.html#teleport"
|
| 213 |
+
},
|
| 214 |
+
{
|
| 215 |
+
"name": "bn",
|
| 216 |
+
"url": "https://bn.vuejs.org/api/built-in-components.html#teleport"
|
| 217 |
+
},
|
| 218 |
+
{
|
| 219 |
+
"name": "it",
|
| 220 |
+
"url": "https://it.vuejs.org/api/built-in-components.html#teleport"
|
| 221 |
+
},
|
| 222 |
+
{
|
| 223 |
+
"name": "cs",
|
| 224 |
+
"url": "https://cs.vuejs.org/api/built-in-components.html#teleport"
|
| 225 |
+
},
|
| 226 |
+
{
|
| 227 |
+
"name": "ru",
|
| 228 |
+
"url": "https://ru.vuejs.org/api/built-in-components.html#teleport"
|
| 229 |
+
},
|
| 230 |
+
{
|
| 231 |
+
"name": "fa",
|
| 232 |
+
"url": "https://fa.vuejs.org/api/built-in-components.html#teleport"
|
| 233 |
+
}
|
| 234 |
+
]
|
| 235 |
+
},
|
| 236 |
+
{
|
| 237 |
+
"name": "Suspense",
|
| 238 |
+
"description": {
|
| 239 |
+
"kind": "markdown",
|
| 240 |
+
"value": "\n用于协调对组件树中嵌套的异步依赖的处理。\n\n- **Props**\n\n ```ts\n interface SuspenseProps {\n timeout?: string | number\n suspensible?: boolean\n }\n ```\n\n- **事件**\n\n - `@resolve`\n - `@pending`\n - `@fallback`\n\n- **详细信息**\n\n `<Suspense>` 接受两个插槽:`#default` 和 `#fallback`。它将在内存中渲染默认插槽的同时展示后备插槽内容。\n\n 如果在渲染时遇到异步依赖项 ([异步组件](https://cn.vuejs.org/guide/components/async.html)和具有 [`async setup()`](https://cn.vuejs.org/guide/built-ins/suspense.html#async-setup) 的组件),它将等到所有异步依赖项解析完成时再显示默认插槽。\n\n 通过将 Suspense 设置为 `suspensible`,��有的异步依赖将由父级 Suspense 处理。请参阅[实现细节](https://github.com/vuejs/core/pull/6736)\n\n- **参考**[指南 - Suspense](https://cn.vuejs.org/guide/built-ins/suspense.html)\n"
|
| 241 |
+
},
|
| 242 |
+
"attributes": [],
|
| 243 |
+
"references": [
|
| 244 |
+
{
|
| 245 |
+
"name": "en",
|
| 246 |
+
"url": "https://vuejs.org/api/built-in-components.html#suspense"
|
| 247 |
+
},
|
| 248 |
+
{
|
| 249 |
+
"name": "zh-cn",
|
| 250 |
+
"url": "https://cn.vuejs.org/api/built-in-components.html#suspense"
|
| 251 |
+
},
|
| 252 |
+
{
|
| 253 |
+
"name": "ja",
|
| 254 |
+
"url": "https://ja.vuejs.org/api/built-in-components.html#suspense"
|
| 255 |
+
},
|
| 256 |
+
{
|
| 257 |
+
"name": "ua",
|
| 258 |
+
"url": "https://ua.vuejs.org/api/built-in-components.html#suspense"
|
| 259 |
+
},
|
| 260 |
+
{
|
| 261 |
+
"name": "fr",
|
| 262 |
+
"url": "https://fr.vuejs.org/api/built-in-components.html#suspense"
|
| 263 |
+
},
|
| 264 |
+
{
|
| 265 |
+
"name": "ko",
|
| 266 |
+
"url": "https://ko.vuejs.org/api/built-in-components.html#suspense"
|
| 267 |
+
},
|
| 268 |
+
{
|
| 269 |
+
"name": "pt",
|
| 270 |
+
"url": "https://pt.vuejs.org/api/built-in-components.html#suspense"
|
| 271 |
+
},
|
| 272 |
+
{
|
| 273 |
+
"name": "bn",
|
| 274 |
+
"url": "https://bn.vuejs.org/api/built-in-components.html#suspense"
|
| 275 |
+
},
|
| 276 |
+
{
|
| 277 |
+
"name": "it",
|
| 278 |
+
"url": "https://it.vuejs.org/api/built-in-components.html#suspense"
|
| 279 |
+
},
|
| 280 |
+
{
|
| 281 |
+
"name": "cs",
|
| 282 |
+
"url": "https://cs.vuejs.org/api/built-in-components.html#suspense"
|
| 283 |
+
},
|
| 284 |
+
{
|
| 285 |
+
"name": "ru",
|
| 286 |
+
"url": "https://ru.vuejs.org/api/built-in-components.html#suspense"
|
| 287 |
+
},
|
| 288 |
+
{
|
| 289 |
+
"name": "fa",
|
| 290 |
+
"url": "https://fa.vuejs.org/api/built-in-components.html#suspense"
|
| 291 |
+
}
|
| 292 |
+
]
|
| 293 |
+
},
|
| 294 |
+
{
|
| 295 |
+
"name": "component",
|
| 296 |
+
"description": {
|
| 297 |
+
"kind": "markdown",
|
| 298 |
+
"value": "\n一个用于渲染动态组件或元素的“元组件”。\n\n- **Props**\n\n ```ts\n interface DynamicComponentProps {\n is: string | Component\n }\n ```\n\n- **详细信息**\n\n 要渲染的实际组件由 `is` prop 决定。\n\n - 当 `is` 是字符串,它既可以是 HTML 标签名也可以是组件的注册名。\n\n - 或者,`is` 也可以直接绑定到组件的定义。\n\n- **示例**\n\n 按注册名渲染组件 (选项式 API):\n\n ```vue\n <script>\n import Foo from './Foo.vue'\n import Bar from './Bar.vue'\n\n export default {\n components: { Foo, Bar },\n data() {\n return {\n view: 'Foo'\n }\n }\n }\n </script>\n\n <template>\n <component :is=\"view\" />\n </template>\n ```\n\n 按定义渲染组件 (`<script setup>` 组合式 API):\n\n ```vue\n <script setup>\n import Foo from './Foo.vue'\n import Bar from './Bar.vue'\n </script>\n\n <template>\n <component :is=\"Math.random() > 0.5 ? Foo : Bar\" />\n </template>\n ```\n\n 渲染 HTML 元素:\n\n ```html\n <component :is=\"href ? 'a' : 'span'\"></component>\n ```\n\n [内置组件](./built-in-components)都可以传递给 `is`,但是如果想通过名称传递则必须先对其进行注册。举例来说:\n\n ```vue\n <script>\n import { Transition, TransitionGroup } from 'vue'\n\n export default {\n components: {\n Transition,\n TransitionGroup\n }\n }\n </script>\n\n <template>\n <component :is=\"isGroup ? 'TransitionGroup' : 'Transition'\">\n ...\n </component>\n </template>\n ```\n\n 如果将组件本身传递给 `is` 而不是其名称,则不需要注册,例如在 `<script setup>` 中。\n\n 如果在 `<component>` 标签上使用 `v-model`,模板编译器会将其扩展为 `modelValue` prop 和 `update:modelValue` 事件监听器,就像对任何其他组件一样。但是,这与原生 HTML 元素不兼容,例如 `<input>` 或 `<select>`。因此,在动态创建的原生元素上使用 `v-model` 将不起作用:\n\n ```vue\n <script setup>\n import { ref } from 'vue'\n\n const tag = ref('input')\n const username = ref('')\n </script>\n\n <template>\n <!-- 由于 'input' 是原生 HTML 元素,因此这个 v-model 不起作用 -->\n <component :is=\"tag\" v-model=\"username\" />\n </template>\n ```\n\n 在实践中,这种极端情况并不常见,因为原生表单字段通常包裹在实际应用的组件中。如果确实需要直接使用原生元素,那么你可以手动将 `v-model` 拆分为 attribute 和事件。\n\n- **参考**[动态组件](https://cn.vuejs.org/guide/essentials/component-basics.html#dynamic-components)\n"
|
| 299 |
+
},
|
| 300 |
+
"attributes": [],
|
| 301 |
+
"references": [
|
| 302 |
+
{
|
| 303 |
+
"name": "en",
|
| 304 |
+
"url": "https://vuejs.org/api/built-in-special-elements.html#component"
|
| 305 |
+
},
|
| 306 |
+
{
|
| 307 |
+
"name": "zh-cn",
|
| 308 |
+
"url": "https://cn.vuejs.org/api/built-in-special-elements.html#component"
|
| 309 |
+
},
|
| 310 |
+
{
|
| 311 |
+
"name": "ja",
|
| 312 |
+
"url": "https://ja.vuejs.org/api/built-in-special-elements.html#component"
|
| 313 |
+
},
|
| 314 |
+
{
|
| 315 |
+
"name": "ua",
|
| 316 |
+
"url": "https://ua.vuejs.org/api/built-in-special-elements.html#component"
|
| 317 |
+
},
|
| 318 |
+
{
|
| 319 |
+
"name": "fr",
|
| 320 |
+
"url": "https://fr.vuejs.org/api/built-in-special-elements.html#component"
|
| 321 |
+
},
|
| 322 |
+
{
|
| 323 |
+
"name": "ko",
|
| 324 |
+
"url": "https://ko.vuejs.org/api/built-in-special-elements.html#component"
|
| 325 |
+
},
|
| 326 |
+
{
|
| 327 |
+
"name": "pt",
|
| 328 |
+
"url": "https://pt.vuejs.org/api/built-in-special-elements.html#component"
|
| 329 |
+
},
|
| 330 |
+
{
|
| 331 |
+
"name": "bn",
|
| 332 |
+
"url": "https://bn.vuejs.org/api/built-in-special-elements.html#component"
|
| 333 |
+
},
|
| 334 |
+
{
|
| 335 |
+
"name": "it",
|
| 336 |
+
"url": "https://it.vuejs.org/api/built-in-special-elements.html#component"
|
| 337 |
+
},
|
| 338 |
+
{
|
| 339 |
+
"name": "cs",
|
| 340 |
+
"url": "https://cs.vuejs.org/api/built-in-special-elements.html#component"
|
| 341 |
+
},
|
| 342 |
+
{
|
| 343 |
+
"name": "ru",
|
| 344 |
+
"url": "https://ru.vuejs.org/api/built-in-special-elements.html#component"
|
| 345 |
+
},
|
| 346 |
+
{
|
| 347 |
+
"name": "fa",
|
| 348 |
+
"url": "https://fa.vuejs.org/api/built-in-special-elements.html#component"
|
| 349 |
+
}
|
| 350 |
+
]
|
| 351 |
+
},
|
| 352 |
+
{
|
| 353 |
+
"name": "slot",
|
| 354 |
+
"description": {
|
| 355 |
+
"kind": "markdown",
|
| 356 |
+
"value": "\n表示模板中的插槽内容出口。\n\n- **Props**\n\n ```ts\n interface SlotProps {\n /**\n * 任何传递给 <slot> 的 prop 都可以作为作用域插槽\n * 的参数传递\n */\n [key: string]: any\n /**\n * 保留,用于指定插槽名。\n */\n name?: string\n }\n ```\n\n- **详细信息**\n\n `<slot>` 元素可以使用 `name` attribute 来指定插槽名。当没有指定 `name` 时,将会渲染默认插槽。传递给插槽元素的附加 attributes 将作为插槽 props,传递给父级中定义的作用域插槽。\n\n 元素本身将被其所匹配的插槽内容替换。\n\n Vue 模板里的 `<slot>` 元素会被编译到 JavaScript,因此不要与[原生 `<slot>` 元素](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/slot)进行混淆。\n\n- **参考**[组件 - 插槽](https://cn.vuejs.org/guide/components/slots.html)\n"
|
| 357 |
+
},
|
| 358 |
+
"attributes": [],
|
| 359 |
+
"references": [
|
| 360 |
+
{
|
| 361 |
+
"name": "en",
|
| 362 |
+
"url": "https://vuejs.org/api/built-in-special-elements.html#slot"
|
| 363 |
+
},
|
| 364 |
+
{
|
| 365 |
+
"name": "zh-cn",
|
| 366 |
+
"url": "https://cn.vuejs.org/api/built-in-special-elements.html#slot"
|
| 367 |
+
},
|
| 368 |
+
{
|
| 369 |
+
"name": "ja",
|
| 370 |
+
"url": "https://ja.vuejs.org/api/built-in-special-elements.html#slot"
|
| 371 |
+
},
|
| 372 |
+
{
|
| 373 |
+
"name": "ua",
|
| 374 |
+
"url": "https://ua.vuejs.org/api/built-in-special-elements.html#slot"
|
| 375 |
+
},
|
| 376 |
+
{
|
| 377 |
+
"name": "fr",
|
| 378 |
+
"url": "https://fr.vuejs.org/api/built-in-special-elements.html#slot"
|
| 379 |
+
},
|
| 380 |
+
{
|
| 381 |
+
"name": "ko",
|
| 382 |
+
"url": "https://ko.vuejs.org/api/built-in-special-elements.html#slot"
|
| 383 |
+
},
|
| 384 |
+
{
|
| 385 |
+
"name": "pt",
|
| 386 |
+
"url": "https://pt.vuejs.org/api/built-in-special-elements.html#slot"
|
| 387 |
+
},
|
| 388 |
+
{
|
| 389 |
+
"name": "bn",
|
| 390 |
+
"url": "https://bn.vuejs.org/api/built-in-special-elements.html#slot"
|
| 391 |
+
},
|
| 392 |
+
{
|
| 393 |
+
"name": "it",
|
| 394 |
+
"url": "https://it.vuejs.org/api/built-in-special-elements.html#slot"
|
| 395 |
+
},
|
| 396 |
+
{
|
| 397 |
+
"name": "cs",
|
| 398 |
+
"url": "https://cs.vuejs.org/api/built-in-special-elements.html#slot"
|
| 399 |
+
},
|
| 400 |
+
{
|
| 401 |
+
"name": "ru",
|
| 402 |
+
"url": "https://ru.vuejs.org/api/built-in-special-elements.html#slot"
|
| 403 |
+
},
|
| 404 |
+
{
|
| 405 |
+
"name": "fa",
|
| 406 |
+
"url": "https://fa.vuejs.org/api/built-in-special-elements.html#slot"
|
| 407 |
+
}
|
| 408 |
+
]
|
| 409 |
+
},
|
| 410 |
+
{
|
| 411 |
+
"name": "template",
|
| 412 |
+
"description": {
|
| 413 |
+
"kind": "markdown",
|
| 414 |
+
"value": "\n当我们想要使用内置指令而不在 DOM 中渲染元素时,`<template>` 标签可以作为占位符使用。\n\n- **详细信息**\n\n 对 `<template>` 的特殊处理只有在它与以下任一指令一起使用时才会被触发:\n\n - `v-if`、`v-else-if` 或 `v-else`\n - `v-for`\n - `v-slot`\n\n 如果这些指令都不存在,那么它将被渲染成一个[原生的 `<template>` 元素](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/template)。\n\n 带有 `v-for` 的 `<template>` 也可以有一个 [`key` 属性](https://cn.vuejs.org/api/built-in-special-attributes.html#key)。所有其他的属性和指令都将被丢弃,因为没有相应的元素,它们就没有意义。\n\n 单文件组件使用[顶层的 `<template>` 标签](https://cn.vuejs.org/api/sfc-spec.html#language-blocks)来包裹整个模板。这种用法与上面描述的 `<template>` 使用方式是有区别的。该顶层标签不是模板本身的一部分,不支持指令等模板语法。\n\n- **参考**\n - [指南 - `<template>` 上的 `v-if`](https://cn.vuejs.org/guide/essentials/conditional.html#v-if-on-template)\n - [指南 - `<template>` 上的 `v-for`](https://cn.vuejs.org/guide/essentials/list.html#v-for-on-template)\n - [指南 - 具名插槽](https://cn.vuejs.org/guide/components/slots.html#named-slots)\n"
|
| 415 |
+
},
|
| 416 |
+
"attributes": [],
|
| 417 |
+
"references": [
|
| 418 |
+
{
|
| 419 |
+
"name": "en",
|
| 420 |
+
"url": "https://vuejs.org/api/built-in-special-elements.html#template"
|
| 421 |
+
},
|
| 422 |
+
{
|
| 423 |
+
"name": "zh-cn",
|
| 424 |
+
"url": "https://cn.vuejs.org/api/built-in-special-elements.html#template"
|
| 425 |
+
},
|
| 426 |
+
{
|
| 427 |
+
"name": "ja",
|
| 428 |
+
"url": "https://ja.vuejs.org/api/built-in-special-elements.html#template"
|
| 429 |
+
},
|
| 430 |
+
{
|
| 431 |
+
"name": "ua",
|
| 432 |
+
"url": "https://ua.vuejs.org/api/built-in-special-elements.html#template"
|
| 433 |
+
},
|
| 434 |
+
{
|
| 435 |
+
"name": "fr",
|
| 436 |
+
"url": "https://fr.vuejs.org/api/built-in-special-elements.html#template"
|
| 437 |
+
},
|
| 438 |
+
{
|
| 439 |
+
"name": "ko",
|
| 440 |
+
"url": "https://ko.vuejs.org/api/built-in-special-elements.html#template"
|
| 441 |
+
},
|
| 442 |
+
{
|
| 443 |
+
"name": "pt",
|
| 444 |
+
"url": "https://pt.vuejs.org/api/built-in-special-elements.html#template"
|
| 445 |
+
},
|
| 446 |
+
{
|
| 447 |
+
"name": "bn",
|
| 448 |
+
"url": "https://bn.vuejs.org/api/built-in-special-elements.html#template"
|
| 449 |
+
},
|
| 450 |
+
{
|
| 451 |
+
"name": "it",
|
| 452 |
+
"url": "https://it.vuejs.org/api/built-in-special-elements.html#template"
|
| 453 |
+
},
|
| 454 |
+
{
|
| 455 |
+
"name": "cs",
|
| 456 |
+
"url": "https://cs.vuejs.org/api/built-in-special-elements.html#template"
|
| 457 |
+
},
|
| 458 |
+
{
|
| 459 |
+
"name": "ru",
|
| 460 |
+
"url": "https://ru.vuejs.org/api/built-in-special-elements.html#template"
|
| 461 |
+
},
|
| 462 |
+
{
|
| 463 |
+
"name": "fa",
|
| 464 |
+
"url": "https://fa.vuejs.org/api/built-in-special-elements.html#template"
|
| 465 |
+
}
|
| 466 |
+
]
|
| 467 |
+
}
|
| 468 |
+
],
|
| 469 |
+
"globalAttributes": [
|
| 470 |
+
{
|
| 471 |
+
"name": "v-text",
|
| 472 |
+
"description": {
|
| 473 |
+
"kind": "markdown",
|
| 474 |
+
"value": "\n更新元素的文本内容。\n\n- **期望的绑定值类型:**`string`\n\n- **详细信息**\n\n `v-text` 通过设置元素的 [textContent](https://developer.mozilla.org/en-US/docs/Web/API/Node/textContent) 属性来工作,因此它将覆盖元素中所有现有的内容。如果你需要更新 `textContent` 的部分,应该使用 [mustache interpolations](https://cn.vuejs.org/guide/essentials/template-syntax.html#text-interpolation) 代替。\n\n- **示例**\n\n ```html\n <span v-text=\"msg\"></span>\n <!-- 等同于 -->\n <span>{{msg}}</span>\n ```\n\n- **参考**[模板语法 - 文本插值](https://cn.vuejs.org/guide/essentials/template-syntax.html#text-interpolation)\n"
|
| 475 |
+
},
|
| 476 |
+
"references": [
|
| 477 |
+
{
|
| 478 |
+
"name": "en",
|
| 479 |
+
"url": "https://vuejs.org/api/built-in-directives.html#v-text"
|
| 480 |
+
},
|
| 481 |
+
{
|
| 482 |
+
"name": "zh-cn",
|
| 483 |
+
"url": "https://cn.vuejs.org/api/built-in-directives.html#v-text"
|
| 484 |
+
},
|
| 485 |
+
{
|
| 486 |
+
"name": "ja",
|
| 487 |
+
"url": "https://ja.vuejs.org/api/built-in-directives.html#v-text"
|
| 488 |
+
},
|
| 489 |
+
{
|
| 490 |
+
"name": "ua",
|
| 491 |
+
"url": "https://ua.vuejs.org/api/built-in-directives.html#v-text"
|
| 492 |
+
},
|
| 493 |
+
{
|
| 494 |
+
"name": "fr",
|
| 495 |
+
"url": "https://fr.vuejs.org/api/built-in-directives.html#v-text"
|
| 496 |
+
},
|
| 497 |
+
{
|
| 498 |
+
"name": "ko",
|
| 499 |
+
"url": "https://ko.vuejs.org/api/built-in-directives.html#v-text"
|
| 500 |
+
},
|
| 501 |
+
{
|
| 502 |
+
"name": "pt",
|
| 503 |
+
"url": "https://pt.vuejs.org/api/built-in-directives.html#v-text"
|
| 504 |
+
},
|
| 505 |
+
{
|
| 506 |
+
"name": "bn",
|
| 507 |
+
"url": "https://bn.vuejs.org/api/built-in-directives.html#v-text"
|
| 508 |
+
},
|
| 509 |
+
{
|
| 510 |
+
"name": "it",
|
| 511 |
+
"url": "https://it.vuejs.org/api/built-in-directives.html#v-text"
|
| 512 |
+
},
|
| 513 |
+
{
|
| 514 |
+
"name": "cs",
|
| 515 |
+
"url": "https://cs.vuejs.org/api/built-in-directives.html#v-text"
|
| 516 |
+
},
|
| 517 |
+
{
|
| 518 |
+
"name": "ru",
|
| 519 |
+
"url": "https://ru.vuejs.org/api/built-in-directives.html#v-text"
|
| 520 |
+
},
|
| 521 |
+
{
|
| 522 |
+
"name": "fa",
|
| 523 |
+
"url": "https://fa.vuejs.org/api/built-in-directives.html#v-text"
|
| 524 |
+
}
|
| 525 |
+
]
|
| 526 |
+
},
|
| 527 |
+
{
|
| 528 |
+
"name": "v-html",
|
| 529 |
+
"description": {
|
| 530 |
+
"kind": "markdown",
|
| 531 |
+
"value": "\n更新元素的 [innerHTML](https://developer.mozilla.org/en-US/docs/Web/API/Element/innerHTML)。\n\n- **期望的绑定值类型:**`string`\n\n- **详细信息**\n\n `v-html` 的内容直接作为普通 HTML 插入—— Vue 模板语法是不会被解析的。如果你发现自己正打算用 `v-html` 来编写模板,不如重新想想怎么使用组件来代替。\n\n ::: warning 安全说明\n 在你的站点上动态渲染任意的 HTML 是非常危险的,因为它很容易导致 [XSS 攻击](https://en.wikipedia.org/wiki/Cross-site_scripting)。请只对可信内容使用 HTML 插值,**绝不要**将用户提供的内容作为插值\n :::\n\n 在[单文件组件](https://cn.vuejs.org/guide/scaling-up/sfc.html),`scoped` 样式将不会作用于 `v-html` 里的内容,因��� HTML 内容不会被 Vue 的模板编译器解析。如果你想让 `v-html` 的内容也支持 scoped CSS,你可以使用 [CSS modules](./sfc-css-features#css-modules) 或使用一个额外的全局 `<style>` 元素,手动设置类似 BEM 的作用域策略。\n\n- **示例**\n\n ```html\n <div v-html=\"html\"></div>\n ```\n\n- **参考**[模板语法 - 原始 HTML](https://cn.vuejs.org/guide/essentials/template-syntax.html#raw-html)\n"
|
| 532 |
+
},
|
| 533 |
+
"references": [
|
| 534 |
+
{
|
| 535 |
+
"name": "en",
|
| 536 |
+
"url": "https://vuejs.org/api/built-in-directives.html#v-html"
|
| 537 |
+
},
|
| 538 |
+
{
|
| 539 |
+
"name": "zh-cn",
|
| 540 |
+
"url": "https://cn.vuejs.org/api/built-in-directives.html#v-html"
|
| 541 |
+
},
|
| 542 |
+
{
|
| 543 |
+
"name": "ja",
|
| 544 |
+
"url": "https://ja.vuejs.org/api/built-in-directives.html#v-html"
|
| 545 |
+
},
|
| 546 |
+
{
|
| 547 |
+
"name": "ua",
|
| 548 |
+
"url": "https://ua.vuejs.org/api/built-in-directives.html#v-html"
|
| 549 |
+
},
|
| 550 |
+
{
|
| 551 |
+
"name": "fr",
|
| 552 |
+
"url": "https://fr.vuejs.org/api/built-in-directives.html#v-html"
|
| 553 |
+
},
|
| 554 |
+
{
|
| 555 |
+
"name": "ko",
|
| 556 |
+
"url": "https://ko.vuejs.org/api/built-in-directives.html#v-html"
|
| 557 |
+
},
|
| 558 |
+
{
|
| 559 |
+
"name": "pt",
|
| 560 |
+
"url": "https://pt.vuejs.org/api/built-in-directives.html#v-html"
|
| 561 |
+
},
|
| 562 |
+
{
|
| 563 |
+
"name": "bn",
|
| 564 |
+
"url": "https://bn.vuejs.org/api/built-in-directives.html#v-html"
|
| 565 |
+
},
|
| 566 |
+
{
|
| 567 |
+
"name": "it",
|
| 568 |
+
"url": "https://it.vuejs.org/api/built-in-directives.html#v-html"
|
| 569 |
+
},
|
| 570 |
+
{
|
| 571 |
+
"name": "cs",
|
| 572 |
+
"url": "https://cs.vuejs.org/api/built-in-directives.html#v-html"
|
| 573 |
+
},
|
| 574 |
+
{
|
| 575 |
+
"name": "ru",
|
| 576 |
+
"url": "https://ru.vuejs.org/api/built-in-directives.html#v-html"
|
| 577 |
+
},
|
| 578 |
+
{
|
| 579 |
+
"name": "fa",
|
| 580 |
+
"url": "https://fa.vuejs.org/api/built-in-directives.html#v-html"
|
| 581 |
+
}
|
| 582 |
+
]
|
| 583 |
+
},
|
| 584 |
+
{
|
| 585 |
+
"name": "v-show",
|
| 586 |
+
"description": {
|
| 587 |
+
"kind": "markdown",
|
| 588 |
+
"value": "\n基于表达式值的真假性,来改变元素的可见性。\n\n- **期望的绑定值类型:**`any`\n\n- **详细信息**\n\n `v-show` 通过设置内联样式的 `display` CSS 属性来工作,当元素可见时将使用初始 `display` 值。当条件改变时,也会触发过渡效果。\n\n- **参考**[条件渲染 - v-show](https://cn.vuejs.org/guide/essentials/conditional.html#v-show)\n"
|
| 589 |
+
},
|
| 590 |
+
"references": [
|
| 591 |
+
{
|
| 592 |
+
"name": "en",
|
| 593 |
+
"url": "https://vuejs.org/api/built-in-directives.html#v-show"
|
| 594 |
+
},
|
| 595 |
+
{
|
| 596 |
+
"name": "zh-cn",
|
| 597 |
+
"url": "https://cn.vuejs.org/api/built-in-directives.html#v-show"
|
| 598 |
+
},
|
| 599 |
+
{
|
| 600 |
+
"name": "ja",
|
| 601 |
+
"url": "https://ja.vuejs.org/api/built-in-directives.html#v-show"
|
| 602 |
+
},
|
| 603 |
+
{
|
| 604 |
+
"name": "ua",
|
| 605 |
+
"url": "https://ua.vuejs.org/api/built-in-directives.html#v-show"
|
| 606 |
+
},
|
| 607 |
+
{
|
| 608 |
+
"name": "fr",
|
| 609 |
+
"url": "https://fr.vuejs.org/api/built-in-directives.html#v-show"
|
| 610 |
+
},
|
| 611 |
+
{
|
| 612 |
+
"name": "ko",
|
| 613 |
+
"url": "https://ko.vuejs.org/api/built-in-directives.html#v-show"
|
| 614 |
+
},
|
| 615 |
+
{
|
| 616 |
+
"name": "pt",
|
| 617 |
+
"url": "https://pt.vuejs.org/api/built-in-directives.html#v-show"
|
| 618 |
+
},
|
| 619 |
+
{
|
| 620 |
+
"name": "bn",
|
| 621 |
+
"url": "https://bn.vuejs.org/api/built-in-directives.html#v-show"
|
| 622 |
+
},
|
| 623 |
+
{
|
| 624 |
+
"name": "it",
|
| 625 |
+
"url": "https://it.vuejs.org/api/built-in-directives.html#v-show"
|
| 626 |
+
},
|
| 627 |
+
{
|
| 628 |
+
"name": "cs",
|
| 629 |
+
"url": "https://cs.vuejs.org/api/built-in-directives.html#v-show"
|
| 630 |
+
},
|
| 631 |
+
{
|
| 632 |
+
"name": "ru",
|
| 633 |
+
"url": "https://ru.vuejs.org/api/built-in-directives.html#v-show"
|
| 634 |
+
},
|
| 635 |
+
{
|
| 636 |
+
"name": "fa",
|
| 637 |
+
"url": "https://fa.vuejs.org/api/built-in-directives.html#v-show"
|
| 638 |
+
}
|
| 639 |
+
]
|
| 640 |
+
},
|
| 641 |
+
{
|
| 642 |
+
"name": "v-if",
|
| 643 |
+
"description": {
|
| 644 |
+
"kind": "markdown",
|
| 645 |
+
"value": "\n基于表达式值的真假性,来条件性地渲染元素或者模板片段。\n\n- **期望的绑定值类型:**`any`\n\n- **详细信息**\n\n 当 `v-if` 元素被触发,元素及其所包含的指令/组件都会销毁和重构。如果初始条件是假,那么其内部的内容根本都不会被渲染。\n\n 可用于 `<template>` 表示仅包含文本或多个元素的条件块。\n\n 当条件改变时会触发过渡效果。\n\n 当同时使用时,`v-if` 比 `v-for` 优先级更高。我们并不推荐在一元素上同时使用这两个指令 — 查看[列表渲染指南](https://cn.vuejs.org/guide/essentials/list.html#v-for-with-v-if)详情。\n\n- **参考**[条件渲染 - v-if](https://cn.vuejs.org/guide/essentials/conditional.html#v-if)\n"
|
| 646 |
+
},
|
| 647 |
+
"references": [
|
| 648 |
+
{
|
| 649 |
+
"name": "en",
|
| 650 |
+
"url": "https://vuejs.org/api/built-in-directives.html#v-if"
|
| 651 |
+
},
|
| 652 |
+
{
|
| 653 |
+
"name": "zh-cn",
|
| 654 |
+
"url": "https://cn.vuejs.org/api/built-in-directives.html#v-if"
|
| 655 |
+
},
|
| 656 |
+
{
|
| 657 |
+
"name": "ja",
|
| 658 |
+
"url": "https://ja.vuejs.org/api/built-in-directives.html#v-if"
|
| 659 |
+
},
|
| 660 |
+
{
|
| 661 |
+
"name": "ua",
|
| 662 |
+
"url": "https://ua.vuejs.org/api/built-in-directives.html#v-if"
|
| 663 |
+
},
|
| 664 |
+
{
|
| 665 |
+
"name": "fr",
|
| 666 |
+
"url": "https://fr.vuejs.org/api/built-in-directives.html#v-if"
|
| 667 |
+
},
|
| 668 |
+
{
|
| 669 |
+
"name": "ko",
|
| 670 |
+
"url": "https://ko.vuejs.org/api/built-in-directives.html#v-if"
|
| 671 |
+
},
|
| 672 |
+
{
|
| 673 |
+
"name": "pt",
|
| 674 |
+
"url": "https://pt.vuejs.org/api/built-in-directives.html#v-if"
|
| 675 |
+
},
|
| 676 |
+
{
|
| 677 |
+
"name": "bn",
|
| 678 |
+
"url": "https://bn.vuejs.org/api/built-in-directives.html#v-if"
|
| 679 |
+
},
|
| 680 |
+
{
|
| 681 |
+
"name": "it",
|
| 682 |
+
"url": "https://it.vuejs.org/api/built-in-directives.html#v-if"
|
| 683 |
+
},
|
| 684 |
+
{
|
| 685 |
+
"name": "cs",
|
| 686 |
+
"url": "https://cs.vuejs.org/api/built-in-directives.html#v-if"
|
| 687 |
+
},
|
| 688 |
+
{
|
| 689 |
+
"name": "ru",
|
| 690 |
+
"url": "https://ru.vuejs.org/api/built-in-directives.html#v-if"
|
| 691 |
+
},
|
| 692 |
+
{
|
| 693 |
+
"name": "fa",
|
| 694 |
+
"url": "https://fa.vuejs.org/api/built-in-directives.html#v-if"
|
| 695 |
+
}
|
| 696 |
+
]
|
| 697 |
+
},
|
| 698 |
+
{
|
| 699 |
+
"name": "v-else",
|
| 700 |
+
"valueSet": "v",
|
| 701 |
+
"description": {
|
| 702 |
+
"kind": "markdown",
|
| 703 |
+
"value": "\n表示 `v-if` 或 `v-if` / `v-else-if` 链式调用的“else 块”。\n\n- **无需传入表达式**\n\n- **详细信息**\n\n - 限定:上一个兄弟元素必须有 `v-if` 或 `v-else-if`。\n\n - 可用于 `<template>` 表示仅包含文本或多个元素的条件块。\n\n- **示例**\n\n ```html\n <div v-if=\"Math.random() > 0.5\">\n Now you see me\n </div>\n <div v-else>\n Now you don't\n </div>\n ```\n\n- **参考**[条件渲染 - v-else](https://cn.vuejs.org/guide/essentials/conditional.html#v-else)\n"
|
| 704 |
+
},
|
| 705 |
+
"references": [
|
| 706 |
+
{
|
| 707 |
+
"name": "en",
|
| 708 |
+
"url": "https://vuejs.org/api/built-in-directives.html#v-else"
|
| 709 |
+
},
|
| 710 |
+
{
|
| 711 |
+
"name": "zh-cn",
|
| 712 |
+
"url": "https://cn.vuejs.org/api/built-in-directives.html#v-else"
|
| 713 |
+
},
|
| 714 |
+
{
|
| 715 |
+
"name": "ja",
|
| 716 |
+
"url": "https://ja.vuejs.org/api/built-in-directives.html#v-else"
|
| 717 |
+
},
|
| 718 |
+
{
|
| 719 |
+
"name": "ua",
|
| 720 |
+
"url": "https://ua.vuejs.org/api/built-in-directives.html#v-else"
|
| 721 |
+
},
|
| 722 |
+
{
|
| 723 |
+
"name": "fr",
|
| 724 |
+
"url": "https://fr.vuejs.org/api/built-in-directives.html#v-else"
|
| 725 |
+
},
|
| 726 |
+
{
|
| 727 |
+
"name": "ko",
|
| 728 |
+
"url": "https://ko.vuejs.org/api/built-in-directives.html#v-else"
|
| 729 |
+
},
|
| 730 |
+
{
|
| 731 |
+
"name": "pt",
|
| 732 |
+
"url": "https://pt.vuejs.org/api/built-in-directives.html#v-else"
|
| 733 |
+
},
|
| 734 |
+
{
|
| 735 |
+
"name": "bn",
|
| 736 |
+
"url": "https://bn.vuejs.org/api/built-in-directives.html#v-else"
|
| 737 |
+
},
|
| 738 |
+
{
|
| 739 |
+
"name": "it",
|
| 740 |
+
"url": "https://it.vuejs.org/api/built-in-directives.html#v-else"
|
| 741 |
+
},
|
| 742 |
+
{
|
| 743 |
+
"name": "cs",
|
| 744 |
+
"url": "https://cs.vuejs.org/api/built-in-directives.html#v-else"
|
| 745 |
+
},
|
| 746 |
+
{
|
| 747 |
+
"name": "ru",
|
| 748 |
+
"url": "https://ru.vuejs.org/api/built-in-directives.html#v-else"
|
| 749 |
+
},
|
| 750 |
+
{
|
| 751 |
+
"name": "fa",
|
| 752 |
+
"url": "https://fa.vuejs.org/api/built-in-directives.html#v-else"
|
| 753 |
+
}
|
| 754 |
+
]
|
| 755 |
+
},
|
| 756 |
+
{
|
| 757 |
+
"name": "v-else-if",
|
| 758 |
+
"description": {
|
| 759 |
+
"kind": "markdown",
|
| 760 |
+
"value": "\n表示 `v-if` 的“else if 块”。可以进行链式调用。\n\n- **期望的绑定值类型:**`any`\n\n- **详细信息**\n\n - 限定:上一个兄弟元素必须有 `v-if` 或 `v-else-if`。\n\n - 可用于 `<template>` 表示仅包含文本或多个元素的条件块。\n\n- **示例**\n\n ```html\n <div v-if=\"type === 'A'\">\n A\n </div>\n <div v-else-if=\"type === 'B'\">\n B\n </div>\n <div v-else-if=\"type === 'C'\">\n C\n </div>\n <div v-else>\n Not A/B/C\n </div>\n ```\n\n- **参考**[条件渲染 - v-else-if](https://cn.vuejs.org/guide/essentials/conditional.html#v-else-if)\n"
|
| 761 |
+
},
|
| 762 |
+
"references": [
|
| 763 |
+
{
|
| 764 |
+
"name": "en",
|
| 765 |
+
"url": "https://vuejs.org/api/built-in-directives.html#v-else-if"
|
| 766 |
+
},
|
| 767 |
+
{
|
| 768 |
+
"name": "zh-cn",
|
| 769 |
+
"url": "https://cn.vuejs.org/api/built-in-directives.html#v-else-if"
|
| 770 |
+
},
|
| 771 |
+
{
|
| 772 |
+
"name": "ja",
|
| 773 |
+
"url": "https://ja.vuejs.org/api/built-in-directives.html#v-else-if"
|
| 774 |
+
},
|
| 775 |
+
{
|
| 776 |
+
"name": "ua",
|
| 777 |
+
"url": "https://ua.vuejs.org/api/built-in-directives.html#v-else-if"
|
| 778 |
+
},
|
| 779 |
+
{
|
| 780 |
+
"name": "fr",
|
| 781 |
+
"url": "https://fr.vuejs.org/api/built-in-directives.html#v-else-if"
|
| 782 |
+
},
|
| 783 |
+
{
|
| 784 |
+
"name": "ko",
|
| 785 |
+
"url": "https://ko.vuejs.org/api/built-in-directives.html#v-else-if"
|
| 786 |
+
},
|
| 787 |
+
{
|
| 788 |
+
"name": "pt",
|
| 789 |
+
"url": "https://pt.vuejs.org/api/built-in-directives.html#v-else-if"
|
| 790 |
+
},
|
| 791 |
+
{
|
| 792 |
+
"name": "bn",
|
| 793 |
+
"url": "https://bn.vuejs.org/api/built-in-directives.html#v-else-if"
|
| 794 |
+
},
|
| 795 |
+
{
|
| 796 |
+
"name": "it",
|
| 797 |
+
"url": "https://it.vuejs.org/api/built-in-directives.html#v-else-if"
|
| 798 |
+
},
|
| 799 |
+
{
|
| 800 |
+
"name": "cs",
|
| 801 |
+
"url": "https://cs.vuejs.org/api/built-in-directives.html#v-else-if"
|
| 802 |
+
},
|
| 803 |
+
{
|
| 804 |
+
"name": "ru",
|
| 805 |
+
"url": "https://ru.vuejs.org/api/built-in-directives.html#v-else-if"
|
| 806 |
+
},
|
| 807 |
+
{
|
| 808 |
+
"name": "fa",
|
| 809 |
+
"url": "https://fa.vuejs.org/api/built-in-directives.html#v-else-if"
|
| 810 |
+
}
|
| 811 |
+
]
|
| 812 |
+
},
|
| 813 |
+
{
|
| 814 |
+
"name": "v-for",
|
| 815 |
+
"description": {
|
| 816 |
+
"kind": "markdown",
|
| 817 |
+
"value": "\n基于原始数据多次渲染元素或模板块。\n\n- **期望的绑定值类型:**`Array | Object | number | string | Iterable`\n\n- **详细信息**\n\n 指令值必须使用特殊语法 `alias in expression` 为正在迭代的元素提供一个别名:\n\n ```html\n <div v-for=\"item in items\">\n {{ item.text }}\n </div>\n ```\n\n 或者,你也可以为索引指定别名 (如果用在对象,则是键值):\n\n ```html\n <div v-for=\"(item, index) in items\"></div>\n <div v-for=\"(value, key) in object\"></div>\n <div v-for=\"(value, name, index) in object\"></div>\n ```\n\n `v-for` 的默认方式是尝试就地更新元素而不移动它们。要强制其重新排序元素,你需要用特殊 attribute `key` 来提供一个排序提示:\n\n ```html\n <div v-for=\"item in items\" :key=\"item.id\">\n {{ item.text }}\n </div>\n ```\n\n `v-for` 也可以用于 [Iterable Protocol](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols#The_iterable_protocol) 的实现,包括原生 `Map` 和 `Set`。\n\n- **参考**\n - [列表渲染](https://cn.vuejs.org/guide/essentials/list.html)\n"
|
| 818 |
+
},
|
| 819 |
+
"references": [
|
| 820 |
+
{
|
| 821 |
+
"name": "en",
|
| 822 |
+
"url": "https://vuejs.org/api/built-in-directives.html#v-for"
|
| 823 |
+
},
|
| 824 |
+
{
|
| 825 |
+
"name": "zh-cn",
|
| 826 |
+
"url": "https://cn.vuejs.org/api/built-in-directives.html#v-for"
|
| 827 |
+
},
|
| 828 |
+
{
|
| 829 |
+
"name": "ja",
|
| 830 |
+
"url": "https://ja.vuejs.org/api/built-in-directives.html#v-for"
|
| 831 |
+
},
|
| 832 |
+
{
|
| 833 |
+
"name": "ua",
|
| 834 |
+
"url": "https://ua.vuejs.org/api/built-in-directives.html#v-for"
|
| 835 |
+
},
|
| 836 |
+
{
|
| 837 |
+
"name": "fr",
|
| 838 |
+
"url": "https://fr.vuejs.org/api/built-in-directives.html#v-for"
|
| 839 |
+
},
|
| 840 |
+
{
|
| 841 |
+
"name": "ko",
|
| 842 |
+
"url": "https://ko.vuejs.org/api/built-in-directives.html#v-for"
|
| 843 |
+
},
|
| 844 |
+
{
|
| 845 |
+
"name": "pt",
|
| 846 |
+
"url": "https://pt.vuejs.org/api/built-in-directives.html#v-for"
|
| 847 |
+
},
|
| 848 |
+
{
|
| 849 |
+
"name": "bn",
|
| 850 |
+
"url": "https://bn.vuejs.org/api/built-in-directives.html#v-for"
|
| 851 |
+
},
|
| 852 |
+
{
|
| 853 |
+
"name": "it",
|
| 854 |
+
"url": "https://it.vuejs.org/api/built-in-directives.html#v-for"
|
| 855 |
+
},
|
| 856 |
+
{
|
| 857 |
+
"name": "cs",
|
| 858 |
+
"url": "https://cs.vuejs.org/api/built-in-directives.html#v-for"
|
| 859 |
+
},
|
| 860 |
+
{
|
| 861 |
+
"name": "ru",
|
| 862 |
+
"url": "https://ru.vuejs.org/api/built-in-directives.html#v-for"
|
| 863 |
+
},
|
| 864 |
+
{
|
| 865 |
+
"name": "fa",
|
| 866 |
+
"url": "https://fa.vuejs.org/api/built-in-directives.html#v-for"
|
| 867 |
+
}
|
| 868 |
+
]
|
| 869 |
+
},
|
| 870 |
+
{
|
| 871 |
+
"name": "v-on",
|
| 872 |
+
"description": {
|
| 873 |
+
"kind": "markdown",
|
| 874 |
+
"value": "\n给元素绑定事件监听器。\n\n- **缩写:**`@`\n\n- **期望的绑定值类型:**`Function | Inline Statement | Object (不带参数)`\n\n- **参数:**`event` (使用对象语法则为可选项)\n\n- **修饰符**\n\n - `.stop` - 调用 `event.stopPropagation()`。\n - `.prevent` - 调用 `event.preventDefault()`。\n - `.capture` - 在捕获模式添加事件监听器。\n - `.self` - 只有事件从元素本身发出才触发处理函数。\n - `.{keyAlias}` - 只在某些按键下触发处理函数。\n - `.once` - 最多触发一次处理函数。\n - `.left` - 只在鼠标左键事件触发处理函数。\n - `.right` - 只在鼠标右键事件触发处理函数。\n - `.middle` - 只在鼠标中键事件触发处理函数。\n - `.passive` - 通过 `{ passive: true }` 附加一个 DOM 事件。\n\n- **详细信息**\n\n 事件类型由参数来指定。表达式可以是一个方法名,一个内联声明,如果有修饰符则可省略。\n\n 当用于普通元素,只监听[**原生 DOM 事件**](https://developer.mozilla.org/en-US/docs/Web/Events)。当用于自定义元素组件,则监听子组件触发的**自定义事件**。\n\n 当监听原生 DOM 事件时,方法接收原生事件作为唯一参数。如果使用内联声明,声明可以访问一个特殊的 `$event` 变量:`v-on:click=\"handle('ok', $event)\"`。\n\n `v-on` 还支持绑定不带参数的事件/监听器对的对象。请注意,当使用对象语法时,不支持任何修饰符。\n\n- **示例**\n\n ```html\n <!-- 方法处理函数 -->\n <button v-on:click=\"doThis\"></button>\n\n <!-- 动态事件 -->\n <button v-on:[event]=\"doThis\"></button>\n\n <!-- 内联声明 -->\n <button v-on:click=\"doThat('hello', $event)\"></button>\n\n <!-- 缩写 -->\n <button @click=\"doThis\"></button>\n\n <!-- 使用缩写的动态事件 -->\n <button @[event]=\"doThis\"></button>\n\n <!-- 停止传播 -->\n <button @click.stop=\"doThis\"></button>\n\n <!-- 阻止默认事件 -->\n <button @click.prevent=\"doThis\"></button>\n\n <!-- 不带表达式地阻止默认事件 -->\n <form @submit.prevent></form>\n\n <!-- 链式调用修饰符 -->\n <button @click.stop.prevent=\"doThis\"></button>\n\n <!-- 按键用于 keyAlias 修饰符-->\n <input @keyup.enter=\"onEnter\" />\n\n <!-- 点击事件将最多触发一次 -->\n <button v-on:click.once=\"doThis\"></button>\n\n <!-- 对象语法 -->\n <button v-on=\"{ mousedown: doThis, mouseup: doThat }\"></button>\n ```\n\n 监听子组件的自定义事件 (当子组件的“my-event”事件被触发,处理函数将被调用):\n\n ```html\n <MyComponent @my-event=\"handleThis\" />\n\n <!-- 内联声明 -->\n <MyComponent @my-event=\"handleThis(123, $event)\" />\n ```\n\n- **参考**\n - [事件处理](https://cn.vuejs.org/guide/essentials/event-handling.html)\n - [组件 - 自定义事件](https://cn.vuejs.org/guide/essentials/component-basics.html#listening-to-events)\n"
|
| 875 |
+
},
|
| 876 |
+
"references": [
|
| 877 |
+
{
|
| 878 |
+
"name": "en",
|
| 879 |
+
"url": "https://vuejs.org/api/built-in-directives.html#v-on"
|
| 880 |
+
},
|
| 881 |
+
{
|
| 882 |
+
"name": "zh-cn",
|
| 883 |
+
"url": "https://cn.vuejs.org/api/built-in-directives.html#v-on"
|
| 884 |
+
},
|
| 885 |
+
{
|
| 886 |
+
"name": "ja",
|
| 887 |
+
"url": "https://ja.vuejs.org/api/built-in-directives.html#v-on"
|
| 888 |
+
},
|
| 889 |
+
{
|
| 890 |
+
"name": "ua",
|
| 891 |
+
"url": "https://ua.vuejs.org/api/built-in-directives.html#v-on"
|
| 892 |
+
},
|
| 893 |
+
{
|
| 894 |
+
"name": "fr",
|
| 895 |
+
"url": "https://fr.vuejs.org/api/built-in-directives.html#v-on"
|
| 896 |
+
},
|
| 897 |
+
{
|
| 898 |
+
"name": "ko",
|
| 899 |
+
"url": "https://ko.vuejs.org/api/built-in-directives.html#v-on"
|
| 900 |
+
},
|
| 901 |
+
{
|
| 902 |
+
"name": "pt",
|
| 903 |
+
"url": "https://pt.vuejs.org/api/built-in-directives.html#v-on"
|
| 904 |
+
},
|
| 905 |
+
{
|
| 906 |
+
"name": "bn",
|
| 907 |
+
"url": "https://bn.vuejs.org/api/built-in-directives.html#v-on"
|
| 908 |
+
},
|
| 909 |
+
{
|
| 910 |
+
"name": "it",
|
| 911 |
+
"url": "https://it.vuejs.org/api/built-in-directives.html#v-on"
|
| 912 |
+
},
|
| 913 |
+
{
|
| 914 |
+
"name": "cs",
|
| 915 |
+
"url": "https://cs.vuejs.org/api/built-in-directives.html#v-on"
|
| 916 |
+
},
|
| 917 |
+
{
|
| 918 |
+
"name": "ru",
|
| 919 |
+
"url": "https://ru.vuejs.org/api/built-in-directives.html#v-on"
|
| 920 |
+
},
|
| 921 |
+
{
|
| 922 |
+
"name": "fa",
|
| 923 |
+
"url": "https://fa.vuejs.org/api/built-in-directives.html#v-on"
|
| 924 |
+
}
|
| 925 |
+
]
|
| 926 |
+
},
|
| 927 |
+
{
|
| 928 |
+
"name": "v-bind",
|
| 929 |
+
"description": {
|
| 930 |
+
"kind": "markdown",
|
| 931 |
+
"value": "\n动态的绑定一个或多个 attribute,也可以是组件的 prop。\n\n- **缩写:**\n - `:` 或者 `.` (当使用 `.prop` 修饰符)\n - 值可以省略 (当 attribute 和绑定的值同名时) <sup class=\"vt-badge\">3.4+</sup>\n\n- **期望:**`any (带参数) | Object (不带参数)`\n\n- **参数:**`attrOrProp (可选的)`\n\n- **修饰符**\n\n - `.camel` - 将短横线命名的 attribute 转变为驼峰式命名。\n - `.prop` - 强制绑定为 DOM property。<sup class=\"vt-badge\">3.2+</sup>\n - `.attr` - 强制绑定为 DOM attribute。<sup class=\"vt-badge\">3.2+</sup>\n\n- **用途**\n\n 当用于绑定 `class` 或 `style` attribute,`v-bind` 支持额外的值类型如数组或对象。详见下方的指南链接。\n\n 在处理绑定时,Vue 默认会利用 `in` 操作符来检查该元素上是否定义了和绑定的 key 同名的 DOM property。如果存在同名的 property,则 Vue 会将它作为 DOM property 赋值,而不是作为 attribute 设置。这个行为在大多数情况都符合期望的绑定值类型,但是你也可以显式用 `.prop` 和 `.attr` 修饰符来强制绑定方式。有时这是必要的,特别是在和[自定义元素](https://cn.vuejs.org/guide/extras/web-components.html#passing-dom-properties)打交道时。\n\n 当用于组件 props 绑定时,所绑定的 props 必须在子组件中已被正确声明。\n\n 当不带参数使用时,可以用于绑定一个包含了多个 attribute 名称-绑定值对的对象。\n\n- **示例**\n\n ```html\n <!-- 绑定 attribute -->\n <img v-bind:src=\"imageSrc\" />\n\n <!-- 动态 attribute 名 -->\n <button v-bind:[key]=\"value\"></button>\n\n <!-- 缩写 -->\n <img :src=\"imageSrc\" />\n\n <!-- 缩写形式的动态 attribute 名 (3.4+),扩展为 :src=\"src\" -->\n <img :src />\n\n <!-- 动态 attribute 名的缩写 -->\n <button :[key]=\"value\"></button>\n\n <!-- 内联字符串拼接 -->\n <img :src=\"'/path/to/images/' + fileName\" />\n\n <!-- class 绑定 -->\n <div :class=\"{ red: isRed }\"></div>\n <div :class=\"[classA, classB]\"></div>\n <div :class=\"[classA, { classB: isB, classC: isC }]\"></div>\n\n <!-- style 绑定 -->\n <div :style=\"{ fontSize: size + 'px' }\"></div>\n <div :style=\"[styleObjectA, styleObjectB]\"></div>\n\n <!-- 绑定对象形式的 attribute -->\n <div v-bind=\"{ id: someProp, 'other-attr': otherProp }\"></div>\n\n <!-- prop 绑定。“prop” 必须在子组件中已声明。 -->\n <MyComponent :prop=\"someThing\" />\n\n <!-- 传递子父组件共有的 prop -->\n <MyComponent v-bind=\"$props\" />\n\n <!-- XLink -->\n <svg><a :xlink:special=\"foo\"></a></svg>\n ```\n\n `.prop` 修饰符也有专门的缩写,`.`:\n\n ```html\n <div :someProperty.prop=\"someObject\"></div>\n\n <!-- 等同于 -->\n <div .someProperty=\"someObject\"></div>\n ```\n\n 当在 DOM 内模板使用 `.camel` 修饰符,可以驼峰化 `v-bind` attribute 的名称,例如 SVG `viewBox` attribute:\n\n ```html\n <svg :view-box.camel=\"viewBox\"></svg>\n ```\n\n 如果使用字符串模板或使用构建步骤预编译模板,则不需要 `.camel`。\n\n- **参考**\n - [Class 与 Style 绑定](https://cn.vuejs.org/guide/essentials/class-and-style.html)\n - [组件 - Prop 传递细节](https://cn.vuejs.org/guide/components/props.html#prop-passing-details)\n"
|
| 932 |
+
},
|
| 933 |
+
"references": [
|
| 934 |
+
{
|
| 935 |
+
"name": "en",
|
| 936 |
+
"url": "https://vuejs.org/api/built-in-directives.html#v-bind"
|
| 937 |
+
},
|
| 938 |
+
{
|
| 939 |
+
"name": "zh-cn",
|
| 940 |
+
"url": "https://cn.vuejs.org/api/built-in-directives.html#v-bind"
|
| 941 |
+
},
|
| 942 |
+
{
|
| 943 |
+
"name": "ja",
|
| 944 |
+
"url": "https://ja.vuejs.org/api/built-in-directives.html#v-bind"
|
| 945 |
+
},
|
| 946 |
+
{
|
| 947 |
+
"name": "ua",
|
| 948 |
+
"url": "https://ua.vuejs.org/api/built-in-directives.html#v-bind"
|
| 949 |
+
},
|
| 950 |
+
{
|
| 951 |
+
"name": "fr",
|
| 952 |
+
"url": "https://fr.vuejs.org/api/built-in-directives.html#v-bind"
|
| 953 |
+
},
|
| 954 |
+
{
|
| 955 |
+
"name": "ko",
|
| 956 |
+
"url": "https://ko.vuejs.org/api/built-in-directives.html#v-bind"
|
| 957 |
+
},
|
| 958 |
+
{
|
| 959 |
+
"name": "pt",
|
| 960 |
+
"url": "https://pt.vuejs.org/api/built-in-directives.html#v-bind"
|
| 961 |
+
},
|
| 962 |
+
{
|
| 963 |
+
"name": "bn",
|
| 964 |
+
"url": "https://bn.vuejs.org/api/built-in-directives.html#v-bind"
|
| 965 |
+
},
|
| 966 |
+
{
|
| 967 |
+
"name": "it",
|
| 968 |
+
"url": "https://it.vuejs.org/api/built-in-directives.html#v-bind"
|
| 969 |
+
},
|
| 970 |
+
{
|
| 971 |
+
"name": "cs",
|
| 972 |
+
"url": "https://cs.vuejs.org/api/built-in-directives.html#v-bind"
|
| 973 |
+
},
|
| 974 |
+
{
|
| 975 |
+
"name": "ru",
|
| 976 |
+
"url": "https://ru.vuejs.org/api/built-in-directives.html#v-bind"
|
| 977 |
+
},
|
| 978 |
+
{
|
| 979 |
+
"name": "fa",
|
| 980 |
+
"url": "https://fa.vuejs.org/api/built-in-directives.html#v-bind"
|
| 981 |
+
}
|
| 982 |
+
]
|
| 983 |
+
},
|
| 984 |
+
{
|
| 985 |
+
"name": "v-model",
|
| 986 |
+
"description": {
|
| 987 |
+
"kind": "markdown",
|
| 988 |
+
"value": "\n在表单输入元素或组件上创建双向绑定。\n\n- **期望的绑定值类型**:根据表单输入元素或组件输出的值而变化\n\n- **仅限:**\n\n - `<input>`\n - `<select>`\n - `<textarea>`\n - components\n\n- **修饰符**\n\n - [`.lazy`](https://cn.vuejs.org/guide/essentials/forms.html#lazy) - 监听 `change` 事件而不是 `input`\n - [`.number`](https://cn.vuejs.org/guide/essentials/forms.html#number) - 将输入的合法字符串转为数字\n - [`.trim`](https://cn.vuejs.org/guide/essentials/forms.html#trim) - 移除输入内容两端空格\n\n- **参考**\n\n - [表单输入绑定](https://cn.vuejs.org/guide/essentials/forms.html)\n - [组件事件 - 配合 `v-model` 使用](https://cn.vuejs.org/guide/components/v-model.html)\n"
|
| 989 |
+
},
|
| 990 |
+
"references": [
|
| 991 |
+
{
|
| 992 |
+
"name": "en",
|
| 993 |
+
"url": "https://vuejs.org/api/built-in-directives.html#v-model"
|
| 994 |
+
},
|
| 995 |
+
{
|
| 996 |
+
"name": "zh-cn",
|
| 997 |
+
"url": "https://cn.vuejs.org/api/built-in-directives.html#v-model"
|
| 998 |
+
},
|
| 999 |
+
{
|
| 1000 |
+
"name": "ja",
|
| 1001 |
+
"url": "https://ja.vuejs.org/api/built-in-directives.html#v-model"
|
| 1002 |
+
},
|
| 1003 |
+
{
|
| 1004 |
+
"name": "ua",
|
| 1005 |
+
"url": "https://ua.vuejs.org/api/built-in-directives.html#v-model"
|
| 1006 |
+
},
|
| 1007 |
+
{
|
| 1008 |
+
"name": "fr",
|
| 1009 |
+
"url": "https://fr.vuejs.org/api/built-in-directives.html#v-model"
|
| 1010 |
+
},
|
| 1011 |
+
{
|
| 1012 |
+
"name": "ko",
|
| 1013 |
+
"url": "https://ko.vuejs.org/api/built-in-directives.html#v-model"
|
| 1014 |
+
},
|
| 1015 |
+
{
|
| 1016 |
+
"name": "pt",
|
| 1017 |
+
"url": "https://pt.vuejs.org/api/built-in-directives.html#v-model"
|
| 1018 |
+
},
|
| 1019 |
+
{
|
| 1020 |
+
"name": "bn",
|
| 1021 |
+
"url": "https://bn.vuejs.org/api/built-in-directives.html#v-model"
|
| 1022 |
+
},
|
| 1023 |
+
{
|
| 1024 |
+
"name": "it",
|
| 1025 |
+
"url": "https://it.vuejs.org/api/built-in-directives.html#v-model"
|
| 1026 |
+
},
|
| 1027 |
+
{
|
| 1028 |
+
"name": "cs",
|
| 1029 |
+
"url": "https://cs.vuejs.org/api/built-in-directives.html#v-model"
|
| 1030 |
+
},
|
| 1031 |
+
{
|
| 1032 |
+
"name": "ru",
|
| 1033 |
+
"url": "https://ru.vuejs.org/api/built-in-directives.html#v-model"
|
| 1034 |
+
},
|
| 1035 |
+
{
|
| 1036 |
+
"name": "fa",
|
| 1037 |
+
"url": "https://fa.vuejs.org/api/built-in-directives.html#v-model"
|
| 1038 |
+
}
|
| 1039 |
+
]
|
| 1040 |
+
},
|
| 1041 |
+
{
|
| 1042 |
+
"name": "v-slot",
|
| 1043 |
+
"description": {
|
| 1044 |
+
"kind": "markdown",
|
| 1045 |
+
"value": "\n用于声明具名插槽或是期望接收 props 的作用域插槽。\n\n- **缩写:**`#`\n\n- **期望的绑定值类型**:能够合法在函数参数位置使用的 JavaScript 表达式。支持解构语法。绑定值是可选的——只有在给作用域插槽传递 props 才需要。\n\n- **参数**:插槽名 (可选,默认是 `default`)\n\n- **仅限:**\n\n - `<template>`\n - [components](https://cn.vuejs.org/guide/components/slots.html#scoped-slots) (用于带有 prop 的单个默认插槽)\n\n- **示例**\n\n ```html\n <!-- 具名插槽 -->\n <BaseLayout>\n <template v-slot:header>\n Header content\n </template>\n\n <template v-slot:default>\n Default slot content\n </template>\n\n <template v-slot:footer>\n Footer content\n </template>\n </BaseLayout>\n\n <!-- 接收 prop 的具名插槽 -->\n <InfiniteScroll>\n <template v-slot:item=\"slotProps\">\n <div class=\"item\">\n {{ slotProps.item.text }}\n </div>\n </template>\n </InfiniteScroll>\n\n <!-- 接收 prop 的默认插槽,并解构 -->\n <Mouse v-slot=\"{ x, y }\">\n Mouse position: {{ x }}, {{ y }}\n </Mouse>\n ```\n\n- **参考**\n - [组件 - 插槽](https://cn.vuejs.org/guide/components/slots.html)\n"
|
| 1046 |
+
},
|
| 1047 |
+
"references": [
|
| 1048 |
+
{
|
| 1049 |
+
"name": "en",
|
| 1050 |
+
"url": "https://vuejs.org/api/built-in-directives.html#v-slot"
|
| 1051 |
+
},
|
| 1052 |
+
{
|
| 1053 |
+
"name": "zh-cn",
|
| 1054 |
+
"url": "https://cn.vuejs.org/api/built-in-directives.html#v-slot"
|
| 1055 |
+
},
|
| 1056 |
+
{
|
| 1057 |
+
"name": "ja",
|
| 1058 |
+
"url": "https://ja.vuejs.org/api/built-in-directives.html#v-slot"
|
| 1059 |
+
},
|
| 1060 |
+
{
|
| 1061 |
+
"name": "ua",
|
| 1062 |
+
"url": "https://ua.vuejs.org/api/built-in-directives.html#v-slot"
|
| 1063 |
+
},
|
| 1064 |
+
{
|
| 1065 |
+
"name": "fr",
|
| 1066 |
+
"url": "https://fr.vuejs.org/api/built-in-directives.html#v-slot"
|
| 1067 |
+
},
|
| 1068 |
+
{
|
| 1069 |
+
"name": "ko",
|
| 1070 |
+
"url": "https://ko.vuejs.org/api/built-in-directives.html#v-slot"
|
| 1071 |
+
},
|
| 1072 |
+
{
|
| 1073 |
+
"name": "pt",
|
| 1074 |
+
"url": "https://pt.vuejs.org/api/built-in-directives.html#v-slot"
|
| 1075 |
+
},
|
| 1076 |
+
{
|
| 1077 |
+
"name": "bn",
|
| 1078 |
+
"url": "https://bn.vuejs.org/api/built-in-directives.html#v-slot"
|
| 1079 |
+
},
|
| 1080 |
+
{
|
| 1081 |
+
"name": "it",
|
| 1082 |
+
"url": "https://it.vuejs.org/api/built-in-directives.html#v-slot"
|
| 1083 |
+
},
|
| 1084 |
+
{
|
| 1085 |
+
"name": "cs",
|
| 1086 |
+
"url": "https://cs.vuejs.org/api/built-in-directives.html#v-slot"
|
| 1087 |
+
},
|
| 1088 |
+
{
|
| 1089 |
+
"name": "ru",
|
| 1090 |
+
"url": "https://ru.vuejs.org/api/built-in-directives.html#v-slot"
|
| 1091 |
+
},
|
| 1092 |
+
{
|
| 1093 |
+
"name": "fa",
|
| 1094 |
+
"url": "https://fa.vuejs.org/api/built-in-directives.html#v-slot"
|
| 1095 |
+
}
|
| 1096 |
+
]
|
| 1097 |
+
},
|
| 1098 |
+
{
|
| 1099 |
+
"name": "v-pre",
|
| 1100 |
+
"description": {
|
| 1101 |
+
"kind": "markdown",
|
| 1102 |
+
"value": "\n跳过该元素及其所有子元素的编译。\n\n- **无需传入**\n\n- **详细信息**\n\n 元素内具有 `v-pre`,所有 Vue 模板语法都会被保留并按原样渲染。最常见的用例就是显示原始双大括号标签及内容。\n\n- **示例**\n\n ```html\n <span v-pre>{{ this will not be compiled }}</span>\n ```\n"
|
| 1103 |
+
},
|
| 1104 |
+
"references": [
|
| 1105 |
+
{
|
| 1106 |
+
"name": "en",
|
| 1107 |
+
"url": "https://vuejs.org/api/built-in-directives.html#v-pre"
|
| 1108 |
+
},
|
| 1109 |
+
{
|
| 1110 |
+
"name": "zh-cn",
|
| 1111 |
+
"url": "https://cn.vuejs.org/api/built-in-directives.html#v-pre"
|
| 1112 |
+
},
|
| 1113 |
+
{
|
| 1114 |
+
"name": "ja",
|
| 1115 |
+
"url": "https://ja.vuejs.org/api/built-in-directives.html#v-pre"
|
| 1116 |
+
},
|
| 1117 |
+
{
|
| 1118 |
+
"name": "ua",
|
| 1119 |
+
"url": "https://ua.vuejs.org/api/built-in-directives.html#v-pre"
|
| 1120 |
+
},
|
| 1121 |
+
{
|
| 1122 |
+
"name": "fr",
|
| 1123 |
+
"url": "https://fr.vuejs.org/api/built-in-directives.html#v-pre"
|
| 1124 |
+
},
|
| 1125 |
+
{
|
| 1126 |
+
"name": "ko",
|
| 1127 |
+
"url": "https://ko.vuejs.org/api/built-in-directives.html#v-pre"
|
| 1128 |
+
},
|
| 1129 |
+
{
|
| 1130 |
+
"name": "pt",
|
| 1131 |
+
"url": "https://pt.vuejs.org/api/built-in-directives.html#v-pre"
|
| 1132 |
+
},
|
| 1133 |
+
{
|
| 1134 |
+
"name": "bn",
|
| 1135 |
+
"url": "https://bn.vuejs.org/api/built-in-directives.html#v-pre"
|
| 1136 |
+
},
|
| 1137 |
+
{
|
| 1138 |
+
"name": "it",
|
| 1139 |
+
"url": "https://it.vuejs.org/api/built-in-directives.html#v-pre"
|
| 1140 |
+
},
|
| 1141 |
+
{
|
| 1142 |
+
"name": "cs",
|
| 1143 |
+
"url": "https://cs.vuejs.org/api/built-in-directives.html#v-pre"
|
| 1144 |
+
},
|
| 1145 |
+
{
|
| 1146 |
+
"name": "ru",
|
| 1147 |
+
"url": "https://ru.vuejs.org/api/built-in-directives.html#v-pre"
|
| 1148 |
+
},
|
| 1149 |
+
{
|
| 1150 |
+
"name": "fa",
|
| 1151 |
+
"url": "https://fa.vuejs.org/api/built-in-directives.html#v-pre"
|
| 1152 |
+
}
|
| 1153 |
+
]
|
| 1154 |
+
},
|
| 1155 |
+
{
|
| 1156 |
+
"name": "v-once",
|
| 1157 |
+
"description": {
|
| 1158 |
+
"kind": "markdown",
|
| 1159 |
+
"value": "\n仅渲染元素和组件一次,并跳过之后的更新。\n\n- **无需传入**\n\n- **详细信息**\n\n 在随后的重新渲染,元素/组件及其所有子项将被当作静态内容并跳过渲染。这可以用来优化更新时的性能。\n\n ```html\n <!-- 单个元素 -->\n <span v-once>This will never change: {{msg}}</span>\n <!-- 带有子元素的元素 -->\n <div v-once>\n <h1>Comment</h1>\n <p>{{msg}}</p>\n </div>\n <!-- 组件 -->\n <MyComponent v-once :comment=\"msg\" />\n <!-- `v-for` 指令 -->\n <ul>\n <li v-for=\"i in list\" v-once>{{i}}</li>\n </ul>\n ```\n\n 从 3.2 起,你也可以搭配 [`v-memo`](#v-memo) 的无效条件来缓存部分模板。\n\n- **参考**\n - [数据绑定语法 - 插值](https://cn.vuejs.org/guide/essentials/template-syntax.html#text-interpolation)\n - [v-memo](#v-memo)\n"
|
| 1160 |
+
},
|
| 1161 |
+
"references": [
|
| 1162 |
+
{
|
| 1163 |
+
"name": "en",
|
| 1164 |
+
"url": "https://vuejs.org/api/built-in-directives.html#v-once"
|
| 1165 |
+
},
|
| 1166 |
+
{
|
| 1167 |
+
"name": "zh-cn",
|
| 1168 |
+
"url": "https://cn.vuejs.org/api/built-in-directives.html#v-once"
|
| 1169 |
+
},
|
| 1170 |
+
{
|
| 1171 |
+
"name": "ja",
|
| 1172 |
+
"url": "https://ja.vuejs.org/api/built-in-directives.html#v-once"
|
| 1173 |
+
},
|
| 1174 |
+
{
|
| 1175 |
+
"name": "ua",
|
| 1176 |
+
"url": "https://ua.vuejs.org/api/built-in-directives.html#v-once"
|
| 1177 |
+
},
|
| 1178 |
+
{
|
| 1179 |
+
"name": "fr",
|
| 1180 |
+
"url": "https://fr.vuejs.org/api/built-in-directives.html#v-once"
|
| 1181 |
+
},
|
| 1182 |
+
{
|
| 1183 |
+
"name": "ko",
|
| 1184 |
+
"url": "https://ko.vuejs.org/api/built-in-directives.html#v-once"
|
| 1185 |
+
},
|
| 1186 |
+
{
|
| 1187 |
+
"name": "pt",
|
| 1188 |
+
"url": "https://pt.vuejs.org/api/built-in-directives.html#v-once"
|
| 1189 |
+
},
|
| 1190 |
+
{
|
| 1191 |
+
"name": "bn",
|
| 1192 |
+
"url": "https://bn.vuejs.org/api/built-in-directives.html#v-once"
|
| 1193 |
+
},
|
| 1194 |
+
{
|
| 1195 |
+
"name": "it",
|
| 1196 |
+
"url": "https://it.vuejs.org/api/built-in-directives.html#v-once"
|
| 1197 |
+
},
|
| 1198 |
+
{
|
| 1199 |
+
"name": "cs",
|
| 1200 |
+
"url": "https://cs.vuejs.org/api/built-in-directives.html#v-once"
|
| 1201 |
+
},
|
| 1202 |
+
{
|
| 1203 |
+
"name": "ru",
|
| 1204 |
+
"url": "https://ru.vuejs.org/api/built-in-directives.html#v-once"
|
| 1205 |
+
},
|
| 1206 |
+
{
|
| 1207 |
+
"name": "fa",
|
| 1208 |
+
"url": "https://fa.vuejs.org/api/built-in-directives.html#v-once"
|
| 1209 |
+
}
|
| 1210 |
+
]
|
| 1211 |
+
},
|
| 1212 |
+
{
|
| 1213 |
+
"name": "v-memo",
|
| 1214 |
+
"description": {
|
| 1215 |
+
"kind": "markdown",
|
| 1216 |
+
"value": "\n- **期望的绑定值类型:**`any[]`\n\n- **详细信息**\n\n 缓存一个模板的子树。在元素和组件上都可以使用。为了实现缓存,该指令需要传入一个固定长度的依赖值数组进行比较。如果数组里的每个值都与最后一次的渲染相同,那么整个子树的更新将被跳过。举例来说:\n\n ```html\n <div v-memo=\"[valueA, valueB]\">\n ...\n </div>\n ```\n\n 当组件重新渲染,如果 `valueA` 和 `valueB` 都保持不变,这个 `<div>` 及其子项的所有更新都将被跳过。实际上,甚至虚拟 DOM 的 vnode 创建也将被跳过,因为缓存的子树副本可以被重新使用。\n\n 正确指定缓存数组很重要,否则应该生效的更新可能被跳过。`v-memo` 传入空依赖数组 (`v-memo=\"[]\"`) 将与 `v-once` 效果相同。\n\n **与 `v-for` 一起使用**\n\n `v-memo` 仅用于性能至上场景中的微小优化,应该很少需要。最常见的情况可能是有助于渲染海量 `v-for` 列表 (长度超过 1000 的情况):\n\n ```html\n <div v-for=\"item in list\" :key=\"item.id\" v-memo=\"[item.id === selected]\">\n <p>ID: {{ item.id }} - selected: {{ item.id === selected }}</p>\n <p>...more child nodes</p>\n </div>\n ```\n\n 当组件的 `selected` 状态改变,默认会重新创建大量的 vnode,尽管绝大部分都跟之前是一模一样的。`v-memo` 用在这里本质上是在说“只有当该项的被选中状态改变时才需要更新”。这使得每个选中状态没有变的项能完全重用之前的 vnode 并跳过差异比较。注意这里 memo 依赖数组中并不需要包含 `item.id`,因为 Vue 也会根据 item 的 `:key` 进行判断。\n\n :::warning 警告\n 当搭配 `v-for` 使用 `v-memo`,确保两者都绑定在同一个元素上。**`v-memo` 不能用在 `v-for` 内部。**\n :::\n\n `v-memo` 也能被用于在一些默认优化失败的边际情况下,手动避免子组件出现不需要的更新。但是一样的,开发者需要负责指定正确的依赖数组以免跳过必要的更新。\n\n- **参考**\n - [v-once](#v-once)\n"
|
| 1217 |
+
},
|
| 1218 |
+
"references": [
|
| 1219 |
+
{
|
| 1220 |
+
"name": "en",
|
| 1221 |
+
"url": "https://vuejs.org/api/built-in-directives.html#v-memo"
|
| 1222 |
+
},
|
| 1223 |
+
{
|
| 1224 |
+
"name": "zh-cn",
|
| 1225 |
+
"url": "https://cn.vuejs.org/api/built-in-directives.html#v-memo"
|
| 1226 |
+
},
|
| 1227 |
+
{
|
| 1228 |
+
"name": "ja",
|
| 1229 |
+
"url": "https://ja.vuejs.org/api/built-in-directives.html#v-memo"
|
| 1230 |
+
},
|
| 1231 |
+
{
|
| 1232 |
+
"name": "ua",
|
| 1233 |
+
"url": "https://ua.vuejs.org/api/built-in-directives.html#v-memo"
|
| 1234 |
+
},
|
| 1235 |
+
{
|
| 1236 |
+
"name": "fr",
|
| 1237 |
+
"url": "https://fr.vuejs.org/api/built-in-directives.html#v-memo"
|
| 1238 |
+
},
|
| 1239 |
+
{
|
| 1240 |
+
"name": "ko",
|
| 1241 |
+
"url": "https://ko.vuejs.org/api/built-in-directives.html#v-memo"
|
| 1242 |
+
},
|
| 1243 |
+
{
|
| 1244 |
+
"name": "pt",
|
| 1245 |
+
"url": "https://pt.vuejs.org/api/built-in-directives.html#v-memo"
|
| 1246 |
+
},
|
| 1247 |
+
{
|
| 1248 |
+
"name": "bn",
|
| 1249 |
+
"url": "https://bn.vuejs.org/api/built-in-directives.html#v-memo"
|
| 1250 |
+
},
|
| 1251 |
+
{
|
| 1252 |
+
"name": "it",
|
| 1253 |
+
"url": "https://it.vuejs.org/api/built-in-directives.html#v-memo"
|
| 1254 |
+
},
|
| 1255 |
+
{
|
| 1256 |
+
"name": "cs",
|
| 1257 |
+
"url": "https://cs.vuejs.org/api/built-in-directives.html#v-memo"
|
| 1258 |
+
},
|
| 1259 |
+
{
|
| 1260 |
+
"name": "ru",
|
| 1261 |
+
"url": "https://ru.vuejs.org/api/built-in-directives.html#v-memo"
|
| 1262 |
+
},
|
| 1263 |
+
{
|
| 1264 |
+
"name": "fa",
|
| 1265 |
+
"url": "https://fa.vuejs.org/api/built-in-directives.html#v-memo"
|
| 1266 |
+
}
|
| 1267 |
+
]
|
| 1268 |
+
},
|
| 1269 |
+
{
|
| 1270 |
+
"name": "v-cloak",
|
| 1271 |
+
"description": {
|
| 1272 |
+
"kind": "markdown",
|
| 1273 |
+
"value": "\n用于隐藏尚未完成编译的 DOM 模板。\n\n- **无需传入**\n\n- **详细信息**\n\n **该指令只在没有构建步骤的环境下需要使用。**\n\n 当使用直接在 DOM 中书写的模板时,可能会出现一种叫做“未编译模板闪现”的情况:用户可能先看到的是还没编译完成的双大括号标签,直到挂载的组件将它们替换为实际渲染的内容。\n\n `v-cloak` 会保留在所绑定的元素上,直到相关组件实例被挂载后才移除。配合像 `[v-cloak] { display: none }` 这样的 CSS 规则,它可以在组件编译完毕前隐藏原始模板。\n\n- **示例**\n\n ```css\n [v-cloak] {\n display: none;\n }\n ```\n\n ```html\n <div v-cloak>\n {{ message }}\n </div>\n ```\n\n 直到编译完成前,`<div>` 将不可见。\n"
|
| 1274 |
+
},
|
| 1275 |
+
"references": [
|
| 1276 |
+
{
|
| 1277 |
+
"name": "en",
|
| 1278 |
+
"url": "https://vuejs.org/api/built-in-directives.html#v-cloak"
|
| 1279 |
+
},
|
| 1280 |
+
{
|
| 1281 |
+
"name": "zh-cn",
|
| 1282 |
+
"url": "https://cn.vuejs.org/api/built-in-directives.html#v-cloak"
|
| 1283 |
+
},
|
| 1284 |
+
{
|
| 1285 |
+
"name": "ja",
|
| 1286 |
+
"url": "https://ja.vuejs.org/api/built-in-directives.html#v-cloak"
|
| 1287 |
+
},
|
| 1288 |
+
{
|
| 1289 |
+
"name": "ua",
|
| 1290 |
+
"url": "https://ua.vuejs.org/api/built-in-directives.html#v-cloak"
|
| 1291 |
+
},
|
| 1292 |
+
{
|
| 1293 |
+
"name": "fr",
|
| 1294 |
+
"url": "https://fr.vuejs.org/api/built-in-directives.html#v-cloak"
|
| 1295 |
+
},
|
| 1296 |
+
{
|
| 1297 |
+
"name": "ko",
|
| 1298 |
+
"url": "https://ko.vuejs.org/api/built-in-directives.html#v-cloak"
|
| 1299 |
+
},
|
| 1300 |
+
{
|
| 1301 |
+
"name": "pt",
|
| 1302 |
+
"url": "https://pt.vuejs.org/api/built-in-directives.html#v-cloak"
|
| 1303 |
+
},
|
| 1304 |
+
{
|
| 1305 |
+
"name": "bn",
|
| 1306 |
+
"url": "https://bn.vuejs.org/api/built-in-directives.html#v-cloak"
|
| 1307 |
+
},
|
| 1308 |
+
{
|
| 1309 |
+
"name": "it",
|
| 1310 |
+
"url": "https://it.vuejs.org/api/built-in-directives.html#v-cloak"
|
| 1311 |
+
},
|
| 1312 |
+
{
|
| 1313 |
+
"name": "cs",
|
| 1314 |
+
"url": "https://cs.vuejs.org/api/built-in-directives.html#v-cloak"
|
| 1315 |
+
},
|
| 1316 |
+
{
|
| 1317 |
+
"name": "ru",
|
| 1318 |
+
"url": "https://ru.vuejs.org/api/built-in-directives.html#v-cloak"
|
| 1319 |
+
},
|
| 1320 |
+
{
|
| 1321 |
+
"name": "fa",
|
| 1322 |
+
"url": "https://fa.vuejs.org/api/built-in-directives.html#v-cloak"
|
| 1323 |
+
}
|
| 1324 |
+
]
|
| 1325 |
+
},
|
| 1326 |
+
{
|
| 1327 |
+
"name": "key",
|
| 1328 |
+
"description": {
|
| 1329 |
+
"kind": "markdown",
|
| 1330 |
+
"value": "\n`key` 这个特殊的 attribute 主要作为 Vue 的虚拟 DOM 算法提示,在比较新旧节点列表时用于识别 vnode。\n\n- **预期**:`number | string | symbol`\n\n- **详细信息**\n\n 在没有 key 的情况下,Vue 将使用一种最小化元素移动的算法,并尽可能地就地更新/复用相同类型的元素。如果传了 key,则将根据 key 的变化顺序来重新排列元素,并且将始终移除/销毁 key 已经不存在的元素。\n\n 同一个父元素下的子元素必须具有**唯一的 key**。重复的 key 将会导致渲染异常。\n\n 最常见的用例是与 `v-for` 结合:\n\n ```html\n <ul>\n <li v-for=\"item in items\" :key=\"item.id\">...</li>\n </ul>\n ```\n\n 也可以用于强制替换一个元素/组件而不是复用它。当你想这么做时它可能会很有用:\n\n - 在适当的时候触发组件的生命周期钩子\n - 触发过渡\n\n 举例来说:\n\n ```html\n <transition>\n <span :key=\"text\">{{ text }}</span>\n </transition>\n ```\n\n 当 `text` 变化时,`<span>` 总是会被替换而不是更新,因此 transition 将会被触发。\n\n- **���考**[指南 - 列表渲染 - 通过 `key` 管理状态](https://cn.vuejs.org/guide/essentials/list.html#maintaining-state-with-key)\n"
|
| 1331 |
+
},
|
| 1332 |
+
"references": [
|
| 1333 |
+
{
|
| 1334 |
+
"name": "en",
|
| 1335 |
+
"url": "https://vuejs.org/api/built-in-special-attributes.html#key"
|
| 1336 |
+
},
|
| 1337 |
+
{
|
| 1338 |
+
"name": "zh-cn",
|
| 1339 |
+
"url": "https://cn.vuejs.org/api/built-in-special-attributes.html#key"
|
| 1340 |
+
},
|
| 1341 |
+
{
|
| 1342 |
+
"name": "ja",
|
| 1343 |
+
"url": "https://ja.vuejs.org/api/built-in-special-attributes.html#key"
|
| 1344 |
+
},
|
| 1345 |
+
{
|
| 1346 |
+
"name": "ua",
|
| 1347 |
+
"url": "https://ua.vuejs.org/api/built-in-special-attributes.html#key"
|
| 1348 |
+
},
|
| 1349 |
+
{
|
| 1350 |
+
"name": "fr",
|
| 1351 |
+
"url": "https://fr.vuejs.org/api/built-in-special-attributes.html#key"
|
| 1352 |
+
},
|
| 1353 |
+
{
|
| 1354 |
+
"name": "ko",
|
| 1355 |
+
"url": "https://ko.vuejs.org/api/built-in-special-attributes.html#key"
|
| 1356 |
+
},
|
| 1357 |
+
{
|
| 1358 |
+
"name": "pt",
|
| 1359 |
+
"url": "https://pt.vuejs.org/api/built-in-special-attributes.html#key"
|
| 1360 |
+
},
|
| 1361 |
+
{
|
| 1362 |
+
"name": "bn",
|
| 1363 |
+
"url": "https://bn.vuejs.org/api/built-in-special-attributes.html#key"
|
| 1364 |
+
},
|
| 1365 |
+
{
|
| 1366 |
+
"name": "it",
|
| 1367 |
+
"url": "https://it.vuejs.org/api/built-in-special-attributes.html#key"
|
| 1368 |
+
},
|
| 1369 |
+
{
|
| 1370 |
+
"name": "cs",
|
| 1371 |
+
"url": "https://cs.vuejs.org/api/built-in-special-attributes.html#key"
|
| 1372 |
+
},
|
| 1373 |
+
{
|
| 1374 |
+
"name": "ru",
|
| 1375 |
+
"url": "https://ru.vuejs.org/api/built-in-special-attributes.html#key"
|
| 1376 |
+
},
|
| 1377 |
+
{
|
| 1378 |
+
"name": "fa",
|
| 1379 |
+
"url": "https://fa.vuejs.org/api/built-in-special-attributes.html#key"
|
| 1380 |
+
}
|
| 1381 |
+
]
|
| 1382 |
+
},
|
| 1383 |
+
{
|
| 1384 |
+
"name": "ref",
|
| 1385 |
+
"description": {
|
| 1386 |
+
"kind": "markdown",
|
| 1387 |
+
"value": "\n用于注册[模板引用](https://cn.vuejs.org/guide/essentials/template-refs.html)。\n\n- **预期**:`string | Function`\n\n- **详细信息**\n\n `ref` 用于注册元素或子组件的引用。\n\n 使用选项式 API,引用将被注册在组件的 `this.$refs` 对象里:\n\n ```html\n <!-- 存储为 this.$refs.p -->\n <p ref=\"p\">hello</p>\n ```\n\n 使用组合式 API,引用将存储在与名字匹配的 ref 里:\n\n ```vue\n <script setup>\n import { ref } from 'vue'\n\n const p = ref()\n </script>\n\n <template>\n <p ref=\"p\">hello</p>\n </template>\n ```\n\n 如果用于普通 DOM 元素,引用将是元素本身;如果用于子组件,引用将是子组件的实例。\n\n 或者 `ref` 可以接收一个函数值,用于对存储引用位置的完全控制:\n\n ```html\n <ChildComponent :ref=\"(el) => child = el\" />\n ```\n\n 关于 ref 注册时机的重要说明:因为 ref 本身是作为渲染函数的结果来创建的,必须等待组件挂载后才能对它进行访问。\n\n `this.$refs` 也是非响应式的,因此你不应该尝试在模板中使用它来进行数据绑定。\n\n- **参考**\n - [指南 - 模板引用](https://cn.vuejs.org/guide/essentials/template-refs.html)\n - [指南 - 为模板引用标注类型](https://cn.vuejs.org/guide/typescript/composition-api.html#typing-template-refs) <sup class=\"vt-badge ts\" />\n - [指南 - 为组件模板引用标注类型](https://cn.vuejs.org/guide/typescript/composition-api.html#typing-component-template-refs) <sup class=\"vt-badge ts\" />\n"
|
| 1388 |
+
},
|
| 1389 |
+
"references": [
|
| 1390 |
+
{
|
| 1391 |
+
"name": "en",
|
| 1392 |
+
"url": "https://vuejs.org/api/built-in-special-attributes.html#ref"
|
| 1393 |
+
},
|
| 1394 |
+
{
|
| 1395 |
+
"name": "zh-cn",
|
| 1396 |
+
"url": "https://cn.vuejs.org/api/built-in-special-attributes.html#ref"
|
| 1397 |
+
},
|
| 1398 |
+
{
|
| 1399 |
+
"name": "ja",
|
| 1400 |
+
"url": "https://ja.vuejs.org/api/built-in-special-attributes.html#ref"
|
| 1401 |
+
},
|
| 1402 |
+
{
|
| 1403 |
+
"name": "ua",
|
| 1404 |
+
"url": "https://ua.vuejs.org/api/built-in-special-attributes.html#ref"
|
| 1405 |
+
},
|
| 1406 |
+
{
|
| 1407 |
+
"name": "fr",
|
| 1408 |
+
"url": "https://fr.vuejs.org/api/built-in-special-attributes.html#ref"
|
| 1409 |
+
},
|
| 1410 |
+
{
|
| 1411 |
+
"name": "ko",
|
| 1412 |
+
"url": "https://ko.vuejs.org/api/built-in-special-attributes.html#ref"
|
| 1413 |
+
},
|
| 1414 |
+
{
|
| 1415 |
+
"name": "pt",
|
| 1416 |
+
"url": "https://pt.vuejs.org/api/built-in-special-attributes.html#ref"
|
| 1417 |
+
},
|
| 1418 |
+
{
|
| 1419 |
+
"name": "bn",
|
| 1420 |
+
"url": "https://bn.vuejs.org/api/built-in-special-attributes.html#ref"
|
| 1421 |
+
},
|
| 1422 |
+
{
|
| 1423 |
+
"name": "it",
|
| 1424 |
+
"url": "https://it.vuejs.org/api/built-in-special-attributes.html#ref"
|
| 1425 |
+
},
|
| 1426 |
+
{
|
| 1427 |
+
"name": "cs",
|
| 1428 |
+
"url": "https://cs.vuejs.org/api/built-in-special-attributes.html#ref"
|
| 1429 |
+
},
|
| 1430 |
+
{
|
| 1431 |
+
"name": "ru",
|
| 1432 |
+
"url": "https://ru.vuejs.org/api/built-in-special-attributes.html#ref"
|
| 1433 |
+
},
|
| 1434 |
+
{
|
| 1435 |
+
"name": "fa",
|
| 1436 |
+
"url": "https://fa.vuejs.org/api/built-in-special-attributes.html#ref"
|
| 1437 |
+
}
|
| 1438 |
+
]
|
| 1439 |
+
},
|
| 1440 |
+
{
|
| 1441 |
+
"name": "is",
|
| 1442 |
+
"description": {
|
| 1443 |
+
"kind": "markdown",
|
| 1444 |
+
"value": "\n用于绑定[动态组件](https://cn.vuejs.org/guide/essentials/component-basics.html#dynamic-components)。\n\n- **预期**:`string | Component`\n\n- **用于原生元素** <sup class=\"vt-badge\">3.1+</sup>\n\n 当 `is` attribute 用于原生 HTML 元素时,它将被当作 [Customized built-in element](https://html.spec.whatwg.org/multipage/custom-elements.html#custom-elements-customized-builtin-example),其为原生 web 平台的特性。\n\n 但是,在这种用例中,你可能需要 Vue 用其组件来替换原生元素,如 [DOM 内模板解析注意事项](https://cn.vuejs.org/guide/essentials/component-basics.html#in-dom-template-parsing-caveats)所述。你可以在 `is` attribute 的值中加上 `vue:` 前缀,这样 Vue 就会把该元素渲染为 Vue 组件:\n\n ```html\n <table>\n <tr is=\"vue:my-row-component\"></tr>\n </table>\n ```\n\n- **参考**\n\n - [内置特殊元素 - `<component>`](https://cn.vuejs.org/api/built-in-special-elements.html#component)\n - [动态组件](https://cn.vuejs.org/guide/essentials/component-basics.html#dynamic-components)\n"
|
| 1445 |
+
},
|
| 1446 |
+
"references": [
|
| 1447 |
+
{
|
| 1448 |
+
"name": "en",
|
| 1449 |
+
"url": "https://vuejs.org/api/built-in-special-attributes.html#is"
|
| 1450 |
+
},
|
| 1451 |
+
{
|
| 1452 |
+
"name": "zh-cn",
|
| 1453 |
+
"url": "https://cn.vuejs.org/api/built-in-special-attributes.html#is"
|
| 1454 |
+
},
|
| 1455 |
+
{
|
| 1456 |
+
"name": "ja",
|
| 1457 |
+
"url": "https://ja.vuejs.org/api/built-in-special-attributes.html#is"
|
| 1458 |
+
},
|
| 1459 |
+
{
|
| 1460 |
+
"name": "ua",
|
| 1461 |
+
"url": "https://ua.vuejs.org/api/built-in-special-attributes.html#is"
|
| 1462 |
+
},
|
| 1463 |
+
{
|
| 1464 |
+
"name": "fr",
|
| 1465 |
+
"url": "https://fr.vuejs.org/api/built-in-special-attributes.html#is"
|
| 1466 |
+
},
|
| 1467 |
+
{
|
| 1468 |
+
"name": "ko",
|
| 1469 |
+
"url": "https://ko.vuejs.org/api/built-in-special-attributes.html#is"
|
| 1470 |
+
},
|
| 1471 |
+
{
|
| 1472 |
+
"name": "pt",
|
| 1473 |
+
"url": "https://pt.vuejs.org/api/built-in-special-attributes.html#is"
|
| 1474 |
+
},
|
| 1475 |
+
{
|
| 1476 |
+
"name": "bn",
|
| 1477 |
+
"url": "https://bn.vuejs.org/api/built-in-special-attributes.html#is"
|
| 1478 |
+
},
|
| 1479 |
+
{
|
| 1480 |
+
"name": "it",
|
| 1481 |
+
"url": "https://it.vuejs.org/api/built-in-special-attributes.html#is"
|
| 1482 |
+
},
|
| 1483 |
+
{
|
| 1484 |
+
"name": "cs",
|
| 1485 |
+
"url": "https://cs.vuejs.org/api/built-in-special-attributes.html#is"
|
| 1486 |
+
},
|
| 1487 |
+
{
|
| 1488 |
+
"name": "ru",
|
| 1489 |
+
"url": "https://ru.vuejs.org/api/built-in-special-attributes.html#is"
|
| 1490 |
+
},
|
| 1491 |
+
{
|
| 1492 |
+
"name": "fa",
|
| 1493 |
+
"url": "https://fa.vuejs.org/api/built-in-special-attributes.html#is"
|
| 1494 |
+
}
|
| 1495 |
+
]
|
| 1496 |
+
}
|
| 1497 |
+
]
|
| 1498 |
+
}
|
Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/@vue/language-service/index.d.ts
CHANGED
|
@@ -1,3 +1,8 @@
|
|
| 1 |
-
|
| 2 |
-
|
| 3 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
export * from '@volar/language-service';
|
| 2 |
+
export * from '@vue/language-core';
|
| 3 |
+
export * from './lib/ideFeatures/nameCasing';
|
| 4 |
+
export * from './lib/types';
|
| 5 |
+
import type { LanguageServicePlugin, ServiceContext, ServiceEnvironment } from '@volar/language-service';
|
| 6 |
+
import type { VueCompilerOptions } from './lib/types';
|
| 7 |
+
export declare function getVueLanguageServicePlugins(ts: typeof import('typescript'), getVueOptions: (env: ServiceEnvironment) => VueCompilerOptions, getTsPluginClient?: (context: ServiceContext) => typeof import("@vue/typescript-plugin/lib/client") | undefined, hybridMode?: boolean): LanguageServicePlugin[];
|
| 8 |
+
export declare function createDefaultGetTsPluginClient(ts: typeof import('typescript'), getVueOptions: (env: ServiceEnvironment) => VueCompilerOptions): (context: ServiceContext) => typeof import('@vue/typescript-plugin/lib/client') | undefined;
|
Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/@vue/language-service/index.js
CHANGED
|
@@ -1,3 +1,134 @@
|
|
| 1 |
-
|
| 2 |
-
|
| 3 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"use strict";
|
| 2 |
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
| 3 |
+
if (k2 === undefined) k2 = k;
|
| 4 |
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
| 5 |
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
| 6 |
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
| 7 |
+
}
|
| 8 |
+
Object.defineProperty(o, k2, desc);
|
| 9 |
+
}) : (function(o, m, k, k2) {
|
| 10 |
+
if (k2 === undefined) k2 = k;
|
| 11 |
+
o[k2] = m[k];
|
| 12 |
+
}));
|
| 13 |
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
| 14 |
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
| 15 |
+
};
|
| 16 |
+
Object.defineProperty(exports, "__esModule", { value: true });
|
| 17 |
+
exports.createDefaultGetTsPluginClient = exports.getVueLanguageServicePlugins = void 0;
|
| 18 |
+
__exportStar(require("@volar/language-service"), exports);
|
| 19 |
+
__exportStar(require("@vue/language-core"), exports);
|
| 20 |
+
__exportStar(require("./lib/ideFeatures/nameCasing"), exports);
|
| 21 |
+
__exportStar(require("./lib/types"), exports);
|
| 22 |
+
const volar_service_emmet_1 = require("volar-service-emmet");
|
| 23 |
+
const volar_service_json_1 = require("volar-service-json");
|
| 24 |
+
const volar_service_pug_beautify_1 = require("volar-service-pug-beautify");
|
| 25 |
+
const volar_service_typescript_1 = require("volar-service-typescript");
|
| 26 |
+
const volar_service_typescript_twoslash_queries_1 = require("volar-service-typescript-twoslash-queries");
|
| 27 |
+
const docCommentTemplate_1 = require("volar-service-typescript/lib/plugins/docCommentTemplate");
|
| 28 |
+
const syntactic_1 = require("volar-service-typescript/lib/plugins/syntactic");
|
| 29 |
+
const css_1 = require("./lib/plugins/css");
|
| 30 |
+
const vue_autoinsert_dotvalue_1 = require("./lib/plugins/vue-autoinsert-dotvalue");
|
| 31 |
+
const vue_autoinsert_parentheses_1 = require("./lib/plugins/vue-autoinsert-parentheses");
|
| 32 |
+
const vue_autoinsert_space_1 = require("./lib/plugins/vue-autoinsert-space");
|
| 33 |
+
const vue_directive_comments_1 = require("./lib/plugins/vue-directive-comments");
|
| 34 |
+
const vue_document_drop_1 = require("./lib/plugins/vue-document-drop");
|
| 35 |
+
const vue_document_links_1 = require("./lib/plugins/vue-document-links");
|
| 36 |
+
const vue_extract_file_1 = require("./lib/plugins/vue-extract-file");
|
| 37 |
+
const vue_sfc_1 = require("./lib/plugins/vue-sfc");
|
| 38 |
+
const vue_template_1 = require("./lib/plugins/vue-template");
|
| 39 |
+
const vue_toggle_v_bind_codeaction_1 = require("./lib/plugins/vue-toggle-v-bind-codeaction");
|
| 40 |
+
const vue_twoslash_queries_1 = require("./lib/plugins/vue-twoslash-queries");
|
| 41 |
+
const vue_visualize_hidden_callback_param_1 = require("./lib/plugins/vue-visualize-hidden-callback-param");
|
| 42 |
+
const common_1 = require("@vue/typescript-plugin/lib/common");
|
| 43 |
+
const collectExtractProps_1 = require("@vue/typescript-plugin/lib/requests/collectExtractProps");
|
| 44 |
+
const componentInfos_1 = require("@vue/typescript-plugin/lib/requests/componentInfos");
|
| 45 |
+
const getImportPathForFile_1 = require("@vue/typescript-plugin/lib/requests/getImportPathForFile");
|
| 46 |
+
const getPropertiesAtLocation_1 = require("@vue/typescript-plugin/lib/requests/getPropertiesAtLocation");
|
| 47 |
+
const getQuickInfoAtPosition_1 = require("@vue/typescript-plugin/lib/requests/getQuickInfoAtPosition");
|
| 48 |
+
function getVueLanguageServicePlugins(ts, getVueOptions, getTsPluginClient = createDefaultGetTsPluginClient(ts, getVueOptions), hybridMode = false) {
|
| 49 |
+
const plugins = [];
|
| 50 |
+
if (!hybridMode) {
|
| 51 |
+
plugins.push(...(0, volar_service_typescript_1.create)(ts));
|
| 52 |
+
for (let i = 0; i < plugins.length; i++) {
|
| 53 |
+
const plugin = plugins[i];
|
| 54 |
+
if (plugin.name === 'typescript-semantic') {
|
| 55 |
+
plugins[i] = {
|
| 56 |
+
...plugin,
|
| 57 |
+
create(context) {
|
| 58 |
+
const created = plugin.create(context);
|
| 59 |
+
if (!context.language.typescript) {
|
| 60 |
+
return created;
|
| 61 |
+
}
|
| 62 |
+
const languageService = created.provide['typescript/languageService']();
|
| 63 |
+
const vueOptions = getVueOptions(context.env);
|
| 64 |
+
(0, common_1.decorateLanguageServiceForVue)(context.language, languageService, vueOptions, ts, false, fileName => context.env.typescript.fileNameToUri(fileName));
|
| 65 |
+
return created;
|
| 66 |
+
},
|
| 67 |
+
};
|
| 68 |
+
break;
|
| 69 |
+
}
|
| 70 |
+
}
|
| 71 |
+
}
|
| 72 |
+
else {
|
| 73 |
+
plugins.push((0, syntactic_1.create)(ts), (0, docCommentTemplate_1.create)(ts));
|
| 74 |
+
}
|
| 75 |
+
plugins.push((0, volar_service_typescript_twoslash_queries_1.create)(ts), (0, css_1.create)(), (0, volar_service_pug_beautify_1.create)(), (0, volar_service_json_1.create)(), (0, vue_template_1.create)('html', ts, getVueOptions, getTsPluginClient), (0, vue_template_1.create)('pug', ts, getVueOptions, getTsPluginClient), (0, vue_sfc_1.create)(), (0, vue_twoslash_queries_1.create)(ts, getTsPluginClient), (0, vue_document_links_1.create)(), (0, vue_document_drop_1.create)(ts, getVueOptions, getTsPluginClient), (0, vue_autoinsert_dotvalue_1.create)(ts, getTsPluginClient), (0, vue_autoinsert_parentheses_1.create)(ts), (0, vue_autoinsert_space_1.create)(), (0, vue_visualize_hidden_callback_param_1.create)(), (0, vue_directive_comments_1.create)(), (0, vue_extract_file_1.create)(ts, getTsPluginClient), (0, vue_toggle_v_bind_codeaction_1.create)(ts), (0, volar_service_emmet_1.create)({
|
| 76 |
+
mappedLanguages: {
|
| 77 |
+
'vue': 'html',
|
| 78 |
+
'postcss': 'scss',
|
| 79 |
+
},
|
| 80 |
+
}));
|
| 81 |
+
return plugins;
|
| 82 |
+
}
|
| 83 |
+
exports.getVueLanguageServicePlugins = getVueLanguageServicePlugins;
|
| 84 |
+
function createDefaultGetTsPluginClient(ts, getVueOptions) {
|
| 85 |
+
return context => {
|
| 86 |
+
if (!context.language.typescript) {
|
| 87 |
+
return;
|
| 88 |
+
}
|
| 89 |
+
const languageService = context.inject('typescript/languageService');
|
| 90 |
+
if (!languageService) {
|
| 91 |
+
return;
|
| 92 |
+
}
|
| 93 |
+
const requestContext = {
|
| 94 |
+
typescript: ts,
|
| 95 |
+
language: context.language,
|
| 96 |
+
languageService,
|
| 97 |
+
languageServiceHost: context.language.typescript.languageServiceHost,
|
| 98 |
+
vueOptions: getVueOptions(context.env),
|
| 99 |
+
isTsPlugin: false,
|
| 100 |
+
getFileId: context.env.typescript.fileNameToUri,
|
| 101 |
+
};
|
| 102 |
+
return {
|
| 103 |
+
async collectExtractProps(...args) {
|
| 104 |
+
return await collectExtractProps_1.collectExtractProps.apply(requestContext, args);
|
| 105 |
+
},
|
| 106 |
+
async getPropertiesAtLocation(...args) {
|
| 107 |
+
return await getPropertiesAtLocation_1.getPropertiesAtLocation.apply(requestContext, args);
|
| 108 |
+
},
|
| 109 |
+
async getImportPathForFile(...args) {
|
| 110 |
+
return await getImportPathForFile_1.getImportPathForFile.apply(requestContext, args);
|
| 111 |
+
},
|
| 112 |
+
async getComponentEvents(...args) {
|
| 113 |
+
return await componentInfos_1.getComponentEvents.apply(requestContext, args);
|
| 114 |
+
},
|
| 115 |
+
async getComponentNames(...args) {
|
| 116 |
+
return await componentInfos_1.getComponentNames.apply(requestContext, args);
|
| 117 |
+
},
|
| 118 |
+
async getComponentProps(...args) {
|
| 119 |
+
return await componentInfos_1.getComponentProps.apply(requestContext, args);
|
| 120 |
+
},
|
| 121 |
+
async getElementAttrs(...args) {
|
| 122 |
+
return await componentInfos_1.getElementAttrs.apply(requestContext, args);
|
| 123 |
+
},
|
| 124 |
+
async getTemplateContextProps(...args) {
|
| 125 |
+
return await componentInfos_1.getTemplateContextProps.apply(requestContext, args);
|
| 126 |
+
},
|
| 127 |
+
async getQuickInfoAtPosition(...args) {
|
| 128 |
+
return await getQuickInfoAtPosition_1.getQuickInfoAtPosition.apply(requestContext, args);
|
| 129 |
+
},
|
| 130 |
+
};
|
| 131 |
+
};
|
| 132 |
+
}
|
| 133 |
+
exports.createDefaultGetTsPluginClient = createDefaultGetTsPluginClient;
|
| 134 |
+
//# sourceMappingURL=index.js.map
|
Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/@vue/language-service/lib/ideFeatures/nameCasing.d.ts
CHANGED
|
@@ -1,3 +1,13 @@
|
|
| 1 |
-
|
| 2 |
-
|
| 3 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import type { ServiceContext } from '@volar/language-service';
|
| 2 |
+
import type * as vscode from 'vscode-languageserver-protocol';
|
| 3 |
+
import { AttrNameCasing, TagNameCasing } from '../types';
|
| 4 |
+
export declare function convertTagName(context: ServiceContext, uri: string, casing: TagNameCasing, tsPluginClient: typeof import('@vue/typescript-plugin/lib/client') | undefined): Promise<vscode.TextEdit[] | undefined>;
|
| 5 |
+
export declare function convertAttrName(context: ServiceContext, uri: string, casing: AttrNameCasing, tsPluginClient?: typeof import('@vue/typescript-plugin/lib/client')): Promise<vscode.TextEdit[] | undefined>;
|
| 6 |
+
export declare function getNameCasing(context: ServiceContext, uri: string): Promise<{
|
| 7 |
+
tag: TagNameCasing;
|
| 8 |
+
attr: AttrNameCasing;
|
| 9 |
+
}>;
|
| 10 |
+
export declare function detect(context: ServiceContext, uri: string): Promise<{
|
| 11 |
+
tag: TagNameCasing[];
|
| 12 |
+
attr: AttrNameCasing[];
|
| 13 |
+
}>;
|
Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/@vue/language-service/lib/ideFeatures/nameCasing.js
CHANGED
|
@@ -1,3 +1,205 @@
|
|
| 1 |
-
|
| 2 |
-
|
| 3 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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object.defineProperty(exports, "__esModule", { value: true });
|
| 3 |
+
exports.detect = exports.getNameCasing = exports.convertAttrName = exports.convertTagName = void 0;
|
| 4 |
+
const vue = require("@vue/language-core");
|
| 5 |
+
const language_core_1 = require("@vue/language-core");
|
| 6 |
+
const computeds_1 = require("computeds");
|
| 7 |
+
const types_1 = require("../types");
|
| 8 |
+
async function convertTagName(context, uri, casing, tsPluginClient) {
|
| 9 |
+
const sourceFile = context.language.scripts.get(uri);
|
| 10 |
+
if (!sourceFile) {
|
| 11 |
+
return;
|
| 12 |
+
}
|
| 13 |
+
const rootCode = sourceFile?.generated?.root;
|
| 14 |
+
if (!(rootCode instanceof language_core_1.VueVirtualCode)) {
|
| 15 |
+
return;
|
| 16 |
+
}
|
| 17 |
+
const desc = rootCode.sfc;
|
| 18 |
+
if (!desc.template) {
|
| 19 |
+
return;
|
| 20 |
+
}
|
| 21 |
+
const template = desc.template;
|
| 22 |
+
const document = context.documents.get(sourceFile.id, sourceFile.languageId, sourceFile.snapshot);
|
| 23 |
+
const edits = [];
|
| 24 |
+
const components = await tsPluginClient?.getComponentNames(rootCode.fileName) ?? [];
|
| 25 |
+
const tags = getTemplateTagsAndAttrs(rootCode);
|
| 26 |
+
for (const [tagName, { offsets }] of tags) {
|
| 27 |
+
const componentName = components.find(component => component === tagName || (0, language_core_1.hyphenateTag)(component) === tagName);
|
| 28 |
+
if (componentName) {
|
| 29 |
+
for (const offset of offsets) {
|
| 30 |
+
const start = document.positionAt(template.startTagEnd + offset);
|
| 31 |
+
const end = document.positionAt(template.startTagEnd + offset + tagName.length);
|
| 32 |
+
const range = { start, end };
|
| 33 |
+
if (casing === types_1.TagNameCasing.Kebab && tagName !== (0, language_core_1.hyphenateTag)(componentName)) {
|
| 34 |
+
edits.push({ range, newText: (0, language_core_1.hyphenateTag)(componentName) });
|
| 35 |
+
}
|
| 36 |
+
if (casing === types_1.TagNameCasing.Pascal && tagName !== componentName) {
|
| 37 |
+
edits.push({ range, newText: componentName });
|
| 38 |
+
}
|
| 39 |
+
}
|
| 40 |
+
}
|
| 41 |
+
}
|
| 42 |
+
return edits;
|
| 43 |
+
}
|
| 44 |
+
exports.convertTagName = convertTagName;
|
| 45 |
+
async function convertAttrName(context, uri, casing, tsPluginClient) {
|
| 46 |
+
const sourceFile = context.language.scripts.get(uri);
|
| 47 |
+
if (!sourceFile) {
|
| 48 |
+
return;
|
| 49 |
+
}
|
| 50 |
+
const rootCode = sourceFile?.generated?.root;
|
| 51 |
+
if (!(rootCode instanceof language_core_1.VueVirtualCode)) {
|
| 52 |
+
return;
|
| 53 |
+
}
|
| 54 |
+
const desc = rootCode.sfc;
|
| 55 |
+
if (!desc.template) {
|
| 56 |
+
return;
|
| 57 |
+
}
|
| 58 |
+
const template = desc.template;
|
| 59 |
+
const document = context.documents.get(uri, sourceFile.languageId, sourceFile.snapshot);
|
| 60 |
+
const edits = [];
|
| 61 |
+
const components = await tsPluginClient?.getComponentNames(rootCode.fileName) ?? [];
|
| 62 |
+
const tags = getTemplateTagsAndAttrs(rootCode);
|
| 63 |
+
for (const [tagName, { attrs }] of tags) {
|
| 64 |
+
const componentName = components.find(component => component === tagName || (0, language_core_1.hyphenateTag)(component) === tagName);
|
| 65 |
+
if (componentName) {
|
| 66 |
+
const props = await tsPluginClient?.getComponentProps(rootCode.fileName, componentName) ?? [];
|
| 67 |
+
for (const [attrName, { offsets }] of attrs) {
|
| 68 |
+
const propName = props.find(prop => prop === attrName || (0, language_core_1.hyphenateAttr)(prop) === attrName);
|
| 69 |
+
if (propName) {
|
| 70 |
+
for (const offset of offsets) {
|
| 71 |
+
const start = document.positionAt(template.startTagEnd + offset);
|
| 72 |
+
const end = document.positionAt(template.startTagEnd + offset + attrName.length);
|
| 73 |
+
const range = { start, end };
|
| 74 |
+
if (casing === types_1.AttrNameCasing.Kebab && attrName !== (0, language_core_1.hyphenateAttr)(propName)) {
|
| 75 |
+
edits.push({ range, newText: (0, language_core_1.hyphenateAttr)(propName) });
|
| 76 |
+
}
|
| 77 |
+
if (casing === types_1.AttrNameCasing.Camel && attrName !== propName) {
|
| 78 |
+
edits.push({ range, newText: propName });
|
| 79 |
+
}
|
| 80 |
+
}
|
| 81 |
+
}
|
| 82 |
+
}
|
| 83 |
+
}
|
| 84 |
+
}
|
| 85 |
+
return edits;
|
| 86 |
+
}
|
| 87 |
+
exports.convertAttrName = convertAttrName;
|
| 88 |
+
async function getNameCasing(context, uri) {
|
| 89 |
+
const detected = await detect(context, uri);
|
| 90 |
+
const [attr, tag] = await Promise.all([
|
| 91 |
+
context.env.getConfiguration?.('vue.complete.casing.props', uri),
|
| 92 |
+
context.env.getConfiguration?.('vue.complete.casing.tags', uri),
|
| 93 |
+
]);
|
| 94 |
+
const tagNameCasing = detected.tag.length === 1 && (tag === 'autoPascal' || tag === 'autoKebab') ? detected.tag[0] : (tag === 'autoKebab' || tag === 'kebab') ? types_1.TagNameCasing.Kebab : types_1.TagNameCasing.Pascal;
|
| 95 |
+
const attrNameCasing = detected.attr.length === 1 && (attr === 'autoCamel' || attr === 'autoKebab') ? detected.attr[0] : (attr === 'autoCamel' || attr === 'camel') ? types_1.AttrNameCasing.Camel : types_1.AttrNameCasing.Kebab;
|
| 96 |
+
return {
|
| 97 |
+
tag: tagNameCasing,
|
| 98 |
+
attr: attrNameCasing,
|
| 99 |
+
};
|
| 100 |
+
}
|
| 101 |
+
exports.getNameCasing = getNameCasing;
|
| 102 |
+
async function detect(context, uri) {
|
| 103 |
+
const rootFile = context.language.scripts.get(uri)?.generated?.root;
|
| 104 |
+
if (!(rootFile instanceof language_core_1.VueVirtualCode)) {
|
| 105 |
+
return {
|
| 106 |
+
tag: [],
|
| 107 |
+
attr: [],
|
| 108 |
+
};
|
| 109 |
+
}
|
| 110 |
+
return {
|
| 111 |
+
tag: await getTagNameCase(rootFile),
|
| 112 |
+
attr: getAttrNameCase(rootFile),
|
| 113 |
+
};
|
| 114 |
+
function getAttrNameCase(file) {
|
| 115 |
+
const tags = getTemplateTagsAndAttrs(file);
|
| 116 |
+
const result = [];
|
| 117 |
+
for (const [_, { attrs }] of tags) {
|
| 118 |
+
for (const [tagName] of attrs) {
|
| 119 |
+
// attrName
|
| 120 |
+
if (tagName !== (0, language_core_1.hyphenateTag)(tagName)) {
|
| 121 |
+
result.push(types_1.AttrNameCasing.Camel);
|
| 122 |
+
break;
|
| 123 |
+
}
|
| 124 |
+
}
|
| 125 |
+
for (const [tagName] of attrs) {
|
| 126 |
+
// attr-name
|
| 127 |
+
if (tagName.indexOf('-') >= 0) {
|
| 128 |
+
result.push(types_1.AttrNameCasing.Kebab);
|
| 129 |
+
break;
|
| 130 |
+
}
|
| 131 |
+
}
|
| 132 |
+
}
|
| 133 |
+
return result;
|
| 134 |
+
}
|
| 135 |
+
async function getTagNameCase(file) {
|
| 136 |
+
const result = new Set();
|
| 137 |
+
if (file.sfc.template?.ast) {
|
| 138 |
+
for (const element of vue.forEachElementNode(file.sfc.template.ast)) {
|
| 139 |
+
if (element.tagType === 1) {
|
| 140 |
+
if (element.tag !== (0, language_core_1.hyphenateTag)(element.tag)) {
|
| 141 |
+
// TagName
|
| 142 |
+
result.add(types_1.TagNameCasing.Pascal);
|
| 143 |
+
}
|
| 144 |
+
else {
|
| 145 |
+
// Tagname -> tagname
|
| 146 |
+
// TagName -> tag-name
|
| 147 |
+
result.add(types_1.TagNameCasing.Kebab);
|
| 148 |
+
}
|
| 149 |
+
}
|
| 150 |
+
}
|
| 151 |
+
}
|
| 152 |
+
return [...result];
|
| 153 |
+
}
|
| 154 |
+
}
|
| 155 |
+
exports.detect = detect;
|
| 156 |
+
const map = new WeakMap();
|
| 157 |
+
function getTemplateTagsAndAttrs(sourceFile) {
|
| 158 |
+
if (!map.has(sourceFile)) {
|
| 159 |
+
const getter = (0, computeds_1.computed)(() => {
|
| 160 |
+
if (!(sourceFile instanceof vue.VueVirtualCode)) {
|
| 161 |
+
return;
|
| 162 |
+
}
|
| 163 |
+
const ast = sourceFile.sfc.template?.ast;
|
| 164 |
+
const tags = new Map();
|
| 165 |
+
if (ast) {
|
| 166 |
+
for (const node of vue.forEachElementNode(ast)) {
|
| 167 |
+
if (!tags.has(node.tag)) {
|
| 168 |
+
tags.set(node.tag, { offsets: [], attrs: new Map() });
|
| 169 |
+
}
|
| 170 |
+
const tag = tags.get(node.tag);
|
| 171 |
+
const startTagHtmlOffset = node.loc.start.offset + node.loc.source.indexOf(node.tag);
|
| 172 |
+
const endTagHtmlOffset = node.loc.start.offset + node.loc.source.lastIndexOf(node.tag);
|
| 173 |
+
tag.offsets.push(startTagHtmlOffset);
|
| 174 |
+
if (!node.isSelfClosing) {
|
| 175 |
+
tag.offsets.push(endTagHtmlOffset);
|
| 176 |
+
}
|
| 177 |
+
for (const prop of node.props) {
|
| 178 |
+
let name;
|
| 179 |
+
let offset;
|
| 180 |
+
if (prop.type === 7
|
| 181 |
+
&& prop.arg?.type === 4
|
| 182 |
+
&& prop.arg.isStatic) {
|
| 183 |
+
name = prop.arg.content;
|
| 184 |
+
offset = prop.arg.loc.start.offset;
|
| 185 |
+
}
|
| 186 |
+
else if (prop.type === 6) {
|
| 187 |
+
name = prop.name;
|
| 188 |
+
offset = prop.loc.start.offset;
|
| 189 |
+
}
|
| 190 |
+
if (name !== undefined && offset !== undefined) {
|
| 191 |
+
if (!tag.attrs.has(name)) {
|
| 192 |
+
tag.attrs.set(name, { offsets: [] });
|
| 193 |
+
}
|
| 194 |
+
tag.attrs.get(name).offsets.push(offset);
|
| 195 |
+
}
|
| 196 |
+
}
|
| 197 |
+
}
|
| 198 |
+
}
|
| 199 |
+
return tags;
|
| 200 |
+
});
|
| 201 |
+
map.set(sourceFile, getter);
|
| 202 |
+
}
|
| 203 |
+
return map.get(sourceFile)() ?? new Map();
|
| 204 |
+
}
|
| 205 |
+
//# sourceMappingURL=nameCasing.js.map
|
Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/@vue/language-service/lib/plugins/css.d.ts
CHANGED
|
@@ -1,3 +1,2 @@
|
|
| 1 |
-
|
| 2 |
-
|
| 3 |
-
size 127
|
|
|
|
| 1 |
+
import type { LanguageServicePlugin } from '@volar/language-service';
|
| 2 |
+
export declare function create(): LanguageServicePlugin;
|
|
|
Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/@vue/language-service/lib/plugins/css.js
CHANGED
|
@@ -1,3 +1,27 @@
|
|
| 1 |
-
|
| 2 |
-
|
| 3 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"use strict";
|
| 2 |
+
Object.defineProperty(exports, "__esModule", { value: true });
|
| 3 |
+
exports.create = void 0;
|
| 4 |
+
const volar_service_css_1 = require("volar-service-css");
|
| 5 |
+
function create() {
|
| 6 |
+
const base = (0, volar_service_css_1.create)({ scssDocumentSelector: ['scss', 'postcss'] });
|
| 7 |
+
return {
|
| 8 |
+
...base,
|
| 9 |
+
create(context) {
|
| 10 |
+
const baseInstance = base.create(context);
|
| 11 |
+
return {
|
| 12 |
+
...baseInstance,
|
| 13 |
+
async provideDiagnostics(document, token) {
|
| 14 |
+
let diagnostics = await baseInstance.provideDiagnostics?.(document, token) ?? [];
|
| 15 |
+
if (document.languageId === 'postcss') {
|
| 16 |
+
diagnostics = diagnostics.filter(diag => diag.code !== 'css-semicolonexpected');
|
| 17 |
+
diagnostics = diagnostics.filter(diag => diag.code !== 'css-ruleorselectorexpected');
|
| 18 |
+
diagnostics = diagnostics.filter(diag => diag.code !== 'unknownAtRules');
|
| 19 |
+
}
|
| 20 |
+
return diagnostics;
|
| 21 |
+
},
|
| 22 |
+
};
|
| 23 |
+
},
|
| 24 |
+
};
|
| 25 |
+
}
|
| 26 |
+
exports.create = create;
|
| 27 |
+
//# sourceMappingURL=css.js.map
|
Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/@vue/language-service/lib/plugins/data.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
| 1 |
-
|
| 2 |
-
|
| 3 |
-
|
|
|
|
|
|
| 1 |
+
import type * as html from 'vscode-html-languageservice';
|
| 2 |
+
export declare function loadTemplateData(lang: string): html.HTMLDataV1;
|
| 3 |
+
export declare function loadLanguageBlocks(lang: string): html.HTMLDataV1;
|
| 4 |
+
export declare function loadModelModifiersData(lang: string): html.HTMLDataV1;
|
Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/@vue/language-service/lib/plugins/data.js
CHANGED
|
@@ -1,3 +1,112 @@
|
|
| 1 |
-
|
| 2 |
-
|
| 3 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"use strict";
|
| 2 |
+
Object.defineProperty(exports, "__esModule", { value: true });
|
| 3 |
+
exports.loadModelModifiersData = exports.loadLanguageBlocks = exports.loadTemplateData = void 0;
|
| 4 |
+
function loadTemplateData(lang) {
|
| 5 |
+
lang = lang.toLowerCase();
|
| 6 |
+
let data;
|
| 7 |
+
if (lang === 'ja') {
|
| 8 |
+
data = require('../../data/template/ja.json');
|
| 9 |
+
}
|
| 10 |
+
else if (lang === 'fr') {
|
| 11 |
+
data = require('../../data/template/fr.json');
|
| 12 |
+
}
|
| 13 |
+
else if (lang === 'ko') {
|
| 14 |
+
data = require('../../data/template/ko.json');
|
| 15 |
+
}
|
| 16 |
+
else if (lang === 'pt-br') {
|
| 17 |
+
data = require('../../data/template/pt.json');
|
| 18 |
+
}
|
| 19 |
+
else if (lang === 'zh-cn') {
|
| 20 |
+
data = require('../../data/template/zh-cn.json');
|
| 21 |
+
}
|
| 22 |
+
else if (lang === 'it') {
|
| 23 |
+
data = require('../../data/template/it.json');
|
| 24 |
+
}
|
| 25 |
+
else if (lang === 'cs') {
|
| 26 |
+
data = require('../../data/template/cs.json');
|
| 27 |
+
}
|
| 28 |
+
else if (lang === 'ru') {
|
| 29 |
+
data = require('../../data/template/ru.json');
|
| 30 |
+
}
|
| 31 |
+
else {
|
| 32 |
+
data = require('../../data/template/en.json');
|
| 33 |
+
}
|
| 34 |
+
for (const attr of [...data.globalAttributes ?? []]) {
|
| 35 |
+
if (!attr.name.startsWith('v-')) {
|
| 36 |
+
data.globalAttributes?.push({ ...attr, name: `:${attr.name}` });
|
| 37 |
+
}
|
| 38 |
+
}
|
| 39 |
+
const vOn = data.globalAttributes?.find(d => d.name === 'v-on');
|
| 40 |
+
const vSlot = data.globalAttributes?.find(d => d.name === 'v-slot');
|
| 41 |
+
const vBind = data.globalAttributes?.find(d => d.name === 'v-bind');
|
| 42 |
+
if (vOn) {
|
| 43 |
+
data.globalAttributes?.push({ ...vOn, name: '@' });
|
| 44 |
+
}
|
| 45 |
+
if (vSlot) {
|
| 46 |
+
data.globalAttributes?.push({ ...vSlot, name: '#' });
|
| 47 |
+
}
|
| 48 |
+
if (vBind) {
|
| 49 |
+
data.globalAttributes?.push({ ...vBind, name: ':' });
|
| 50 |
+
}
|
| 51 |
+
return data;
|
| 52 |
+
}
|
| 53 |
+
exports.loadTemplateData = loadTemplateData;
|
| 54 |
+
function loadLanguageBlocks(lang) {
|
| 55 |
+
lang = lang.toLowerCase();
|
| 56 |
+
if (lang === 'ja') {
|
| 57 |
+
return require('../../data/language-blocks/ja.json');
|
| 58 |
+
}
|
| 59 |
+
else if (lang === 'fr') {
|
| 60 |
+
return require('../../data/language-blocks/fr.json');
|
| 61 |
+
}
|
| 62 |
+
else if (lang === 'ko') {
|
| 63 |
+
return require('../../data/language-blocks/ko.json');
|
| 64 |
+
}
|
| 65 |
+
else if (lang === 'pt-br') {
|
| 66 |
+
return require('../../data/language-blocks/pt.json');
|
| 67 |
+
}
|
| 68 |
+
else if (lang === 'zh-cn') {
|
| 69 |
+
return require('../../data/language-blocks/zh-cn.json');
|
| 70 |
+
}
|
| 71 |
+
else if (lang === 'it') {
|
| 72 |
+
return require('../../data/language-blocks/it.json');
|
| 73 |
+
}
|
| 74 |
+
else if (lang === 'cs') {
|
| 75 |
+
return require('../../data/language-blocks/cs.json');
|
| 76 |
+
}
|
| 77 |
+
else if (lang === 'ru') {
|
| 78 |
+
return require('../../data/language-blocks/ru.json');
|
| 79 |
+
}
|
| 80 |
+
return require('../../data/language-blocks/en.json');
|
| 81 |
+
}
|
| 82 |
+
exports.loadLanguageBlocks = loadLanguageBlocks;
|
| 83 |
+
function loadModelModifiersData(lang) {
|
| 84 |
+
lang = lang.toLowerCase();
|
| 85 |
+
if (lang === 'ja') {
|
| 86 |
+
return require('../../data/model-modifiers/ja.json');
|
| 87 |
+
}
|
| 88 |
+
else if (lang === 'fr') {
|
| 89 |
+
return require('../../data/model-modifiers/fr.json');
|
| 90 |
+
}
|
| 91 |
+
else if (lang === 'ko') {
|
| 92 |
+
return require('../../data/model-modifiers/ko.json');
|
| 93 |
+
}
|
| 94 |
+
else if (lang === 'pt-br') {
|
| 95 |
+
return require('../../data/model-modifiers/pt.json');
|
| 96 |
+
}
|
| 97 |
+
else if (lang === 'zh-cn') {
|
| 98 |
+
return require('../../data/model-modifiers/zh-cn.json');
|
| 99 |
+
}
|
| 100 |
+
else if (lang === 'it') {
|
| 101 |
+
return require('../../data/model-modifiers/it.json');
|
| 102 |
+
}
|
| 103 |
+
else if (lang === 'cs') {
|
| 104 |
+
return require('../../data/model-modifiers/cs.json');
|
| 105 |
+
}
|
| 106 |
+
else if (lang === 'ru') {
|
| 107 |
+
return require('../../data/model-modifiers/ru.json');
|
| 108 |
+
}
|
| 109 |
+
return require('../../data/model-modifiers/en.json');
|
| 110 |
+
}
|
| 111 |
+
exports.loadModelModifiersData = loadModelModifiersData;
|
| 112 |
+
//# sourceMappingURL=data.js.map
|
Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/@vue/language-service/lib/plugins/vue-autoinsert-dotvalue.d.ts
CHANGED
|
@@ -1,3 +1,10 @@
|
|
| 1 |
-
|
| 2 |
-
|
| 3 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import type { ServiceContext, LanguageServicePlugin } from '@volar/language-service';
|
| 2 |
+
import type * as ts from 'typescript';
|
| 3 |
+
import type { TextDocument } from 'vscode-languageserver-textdocument';
|
| 4 |
+
export declare function create(ts: typeof import('typescript'), getTsPluginClient?: (context: ServiceContext) => typeof import('@vue/typescript-plugin/lib/client') | undefined): LanguageServicePlugin;
|
| 5 |
+
export declare function isCharacterTyping(document: TextDocument, change: {
|
| 6 |
+
text: string;
|
| 7 |
+
rangeOffset: number;
|
| 8 |
+
rangeLength: number;
|
| 9 |
+
}): boolean;
|
| 10 |
+
export declare function isBlacklistNode(ts: typeof import('typescript'), node: ts.Node, pos: number, allowAccessDotValue: boolean): boolean;
|
Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/@vue/language-service/lib/plugins/vue-autoinsert-dotvalue.js
CHANGED
|
@@ -1,3 +1,182 @@
|
|
| 1 |
-
|
| 2 |
-
|
| 3 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"use strict";
|
| 2 |
+
Object.defineProperty(exports, "__esModule", { value: true });
|
| 3 |
+
exports.isBlacklistNode = exports.isCharacterTyping = exports.create = void 0;
|
| 4 |
+
const language_core_1 = require("@vue/language-core");
|
| 5 |
+
const asts = new WeakMap();
|
| 6 |
+
function getAst(ts, fileName, snapshot, scriptKind) {
|
| 7 |
+
let ast = asts.get(snapshot);
|
| 8 |
+
if (!ast) {
|
| 9 |
+
ast = ts.createSourceFile(fileName, snapshot.getText(0, snapshot.getLength()), ts.ScriptTarget.Latest, undefined, scriptKind);
|
| 10 |
+
asts.set(snapshot, ast);
|
| 11 |
+
}
|
| 12 |
+
return ast;
|
| 13 |
+
}
|
| 14 |
+
function create(ts, getTsPluginClient) {
|
| 15 |
+
return {
|
| 16 |
+
name: 'vue-autoinsert-dotvalue',
|
| 17 |
+
create(context) {
|
| 18 |
+
const tsPluginClient = getTsPluginClient?.(context);
|
| 19 |
+
let currentReq = 0;
|
| 20 |
+
return {
|
| 21 |
+
async provideAutoInsertionEdit(document, selection, change) {
|
| 22 |
+
// selection must at end of change
|
| 23 |
+
if (document.offsetAt(selection) !== change.rangeOffset + change.text.length) {
|
| 24 |
+
return;
|
| 25 |
+
}
|
| 26 |
+
if (!isTsDocument(document)) {
|
| 27 |
+
return;
|
| 28 |
+
}
|
| 29 |
+
if (!isCharacterTyping(document, change)) {
|
| 30 |
+
return;
|
| 31 |
+
}
|
| 32 |
+
const req = ++currentReq;
|
| 33 |
+
// Wait for tsserver to sync
|
| 34 |
+
await sleep(250);
|
| 35 |
+
if (req !== currentReq) {
|
| 36 |
+
return;
|
| 37 |
+
}
|
| 38 |
+
const enabled = await context.env.getConfiguration?.('vue.autoInsert.dotValue') ?? true;
|
| 39 |
+
if (!enabled) {
|
| 40 |
+
return;
|
| 41 |
+
}
|
| 42 |
+
const decoded = context.decodeEmbeddedDocumentUri(document.uri);
|
| 43 |
+
const sourceScript = decoded && context.language.scripts.get(decoded[0]);
|
| 44 |
+
const virtualCode = decoded && sourceScript?.generated?.embeddedCodes.get(decoded[1]);
|
| 45 |
+
if (!sourceScript) {
|
| 46 |
+
return;
|
| 47 |
+
}
|
| 48 |
+
let ast;
|
| 49 |
+
let sourceCodeOffset = document.offsetAt(selection);
|
| 50 |
+
const fileName = context.env.typescript.uriToFileName(sourceScript.id);
|
| 51 |
+
if (sourceScript.generated) {
|
| 52 |
+
const serviceScript = sourceScript.generated.languagePlugin.typescript?.getServiceScript(sourceScript.generated.root);
|
| 53 |
+
if (!serviceScript || serviceScript?.code !== virtualCode) {
|
| 54 |
+
return;
|
| 55 |
+
}
|
| 56 |
+
ast = getAst(ts, fileName, virtualCode.snapshot, serviceScript.scriptKind);
|
| 57 |
+
let mapped = false;
|
| 58 |
+
for (const [_1, [_2, map]] of context.language.maps.forEach(virtualCode)) {
|
| 59 |
+
const sourceOffset = map.getSourceOffset(document.offsetAt(selection));
|
| 60 |
+
if (sourceOffset !== undefined) {
|
| 61 |
+
sourceCodeOffset = sourceOffset[0];
|
| 62 |
+
mapped = true;
|
| 63 |
+
break;
|
| 64 |
+
}
|
| 65 |
+
}
|
| 66 |
+
if (!mapped) {
|
| 67 |
+
return;
|
| 68 |
+
}
|
| 69 |
+
}
|
| 70 |
+
else {
|
| 71 |
+
ast = getAst(ts, fileName, sourceScript.snapshot);
|
| 72 |
+
}
|
| 73 |
+
if (isBlacklistNode(ts, ast, document.offsetAt(selection), false)) {
|
| 74 |
+
return;
|
| 75 |
+
}
|
| 76 |
+
const props = await tsPluginClient?.getPropertiesAtLocation(fileName, sourceCodeOffset) ?? [];
|
| 77 |
+
if (props.some(prop => prop === 'value')) {
|
| 78 |
+
return '${1:.value}';
|
| 79 |
+
}
|
| 80 |
+
},
|
| 81 |
+
};
|
| 82 |
+
},
|
| 83 |
+
};
|
| 84 |
+
}
|
| 85 |
+
exports.create = create;
|
| 86 |
+
function sleep(ms) {
|
| 87 |
+
return new Promise(resolve => setTimeout(resolve, ms));
|
| 88 |
+
}
|
| 89 |
+
function isTsDocument(document) {
|
| 90 |
+
return document.languageId === 'javascript' ||
|
| 91 |
+
document.languageId === 'typescript' ||
|
| 92 |
+
document.languageId === 'javascriptreact' ||
|
| 93 |
+
document.languageId === 'typescriptreact';
|
| 94 |
+
}
|
| 95 |
+
const charReg = /\w/;
|
| 96 |
+
function isCharacterTyping(document, change) {
|
| 97 |
+
const lastCharacter = change.text[change.text.length - 1];
|
| 98 |
+
const nextCharacter = document.getText().substring(change.rangeOffset + change.text.length, change.rangeOffset + change.text.length + 1);
|
| 99 |
+
if (lastCharacter === undefined) { // delete text
|
| 100 |
+
return false;
|
| 101 |
+
}
|
| 102 |
+
if (change.text.indexOf('\n') >= 0) { // multi-line change
|
| 103 |
+
return false;
|
| 104 |
+
}
|
| 105 |
+
return charReg.test(lastCharacter) && !charReg.test(nextCharacter);
|
| 106 |
+
}
|
| 107 |
+
exports.isCharacterTyping = isCharacterTyping;
|
| 108 |
+
function isBlacklistNode(ts, node, pos, allowAccessDotValue) {
|
| 109 |
+
if (ts.isVariableDeclaration(node) && pos >= node.name.getFullStart() && pos <= node.name.getEnd()) {
|
| 110 |
+
return true;
|
| 111 |
+
}
|
| 112 |
+
else if (ts.isFunctionDeclaration(node) && node.name && pos >= node.name.getFullStart() && pos <= node.name.getEnd()) {
|
| 113 |
+
return true;
|
| 114 |
+
}
|
| 115 |
+
else if (ts.isParameter(node) && pos >= node.name.getFullStart() && pos <= node.name.getEnd()) {
|
| 116 |
+
return true;
|
| 117 |
+
}
|
| 118 |
+
else if (ts.isPropertyAssignment(node) && pos >= node.name.getFullStart() && pos <= node.name.getEnd()) {
|
| 119 |
+
return true;
|
| 120 |
+
}
|
| 121 |
+
else if (ts.isShorthandPropertyAssignment(node)) {
|
| 122 |
+
return true;
|
| 123 |
+
}
|
| 124 |
+
else if (ts.isImportDeclaration(node)) {
|
| 125 |
+
return true;
|
| 126 |
+
}
|
| 127 |
+
else if (ts.isLiteralTypeNode(node)) {
|
| 128 |
+
return true;
|
| 129 |
+
}
|
| 130 |
+
else if (ts.isTypeReferenceNode(node)) {
|
| 131 |
+
return true;
|
| 132 |
+
}
|
| 133 |
+
else if (!allowAccessDotValue && ts.isPropertyAccessExpression(node) && node.expression.end === pos && node.name.text === 'value') {
|
| 134 |
+
return true;
|
| 135 |
+
}
|
| 136 |
+
else if (ts.isCallExpression(node)
|
| 137 |
+
&& ts.isIdentifier(node.expression)
|
| 138 |
+
&& isWatchOrUseFunction(node.expression.text)
|
| 139 |
+
&& isTopLevelArgOrArrayTopLevelItemItem(node)) {
|
| 140 |
+
return true;
|
| 141 |
+
}
|
| 142 |
+
else {
|
| 143 |
+
let _isBlacklistNode = false;
|
| 144 |
+
node.forEachChild(node => {
|
| 145 |
+
if (_isBlacklistNode) {
|
| 146 |
+
return;
|
| 147 |
+
}
|
| 148 |
+
if (pos >= node.getFullStart() && pos <= node.getEnd()) {
|
| 149 |
+
if (isBlacklistNode(ts, node, pos, allowAccessDotValue)) {
|
| 150 |
+
_isBlacklistNode = true;
|
| 151 |
+
}
|
| 152 |
+
}
|
| 153 |
+
});
|
| 154 |
+
return _isBlacklistNode;
|
| 155 |
+
}
|
| 156 |
+
function isWatchOrUseFunction(fnName) {
|
| 157 |
+
return fnName === 'watch'
|
| 158 |
+
|| fnName === 'unref'
|
| 159 |
+
|| fnName === 'triggerRef'
|
| 160 |
+
|| fnName === 'isRef'
|
| 161 |
+
|| (0, language_core_1.hyphenateAttr)(fnName).startsWith('use-');
|
| 162 |
+
}
|
| 163 |
+
function isTopLevelArgOrArrayTopLevelItemItem(node) {
|
| 164 |
+
for (const arg of node.arguments) {
|
| 165 |
+
if (pos >= arg.getFullStart() && pos <= arg.getEnd()) {
|
| 166 |
+
if (ts.isIdentifier(arg)) {
|
| 167 |
+
return true;
|
| 168 |
+
}
|
| 169 |
+
if (ts.isArrayLiteralExpression(arg)) {
|
| 170 |
+
for (const el of arg.elements) {
|
| 171 |
+
if (pos >= el.getFullStart() && pos <= el.getEnd()) {
|
| 172 |
+
return ts.isIdentifier(el);
|
| 173 |
+
}
|
| 174 |
+
}
|
| 175 |
+
}
|
| 176 |
+
return false;
|
| 177 |
+
}
|
| 178 |
+
}
|
| 179 |
+
}
|
| 180 |
+
}
|
| 181 |
+
exports.isBlacklistNode = isBlacklistNode;
|
| 182 |
+
//# sourceMappingURL=vue-autoinsert-dotvalue.js.map
|
Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/@vue/language-service/lib/plugins/vue-autoinsert-parentheses.d.ts
CHANGED
|
@@ -1,3 +1,2 @@
|
|
| 1 |
-
|
| 2 |
-
|
| 3 |
-
size 158
|
|
|
|
| 1 |
+
import type { LanguageServicePlugin } from '@volar/language-service';
|
| 2 |
+
export declare function create(ts: typeof import('typescript')): LanguageServicePlugin;
|
|
|
Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/@vue/language-service/lib/plugins/vue-autoinsert-parentheses.js
CHANGED
|
@@ -1,3 +1,69 @@
|
|
| 1 |
-
|
| 2 |
-
|
| 3 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"use strict";
|
| 2 |
+
Object.defineProperty(exports, "__esModule", { value: true });
|
| 3 |
+
exports.create = void 0;
|
| 4 |
+
const vue_autoinsert_dotvalue_1 = require("./vue-autoinsert-dotvalue");
|
| 5 |
+
function create(ts) {
|
| 6 |
+
return {
|
| 7 |
+
name: 'vue-autoinsert-parentheses',
|
| 8 |
+
create(context) {
|
| 9 |
+
return {
|
| 10 |
+
async provideAutoInsertionEdit(document, selection, change) {
|
| 11 |
+
// selection must at end of change
|
| 12 |
+
if (document.offsetAt(selection) !== change.rangeOffset + change.text.length) {
|
| 13 |
+
return;
|
| 14 |
+
}
|
| 15 |
+
const enabled = await context.env.getConfiguration?.('vue.autoInsert.parentheses') ?? false;
|
| 16 |
+
if (!enabled) {
|
| 17 |
+
return;
|
| 18 |
+
}
|
| 19 |
+
if (!(0, vue_autoinsert_dotvalue_1.isCharacterTyping)(document, change)) {
|
| 20 |
+
return;
|
| 21 |
+
}
|
| 22 |
+
const decoded = context.decodeEmbeddedDocumentUri(document.uri);
|
| 23 |
+
const sourceScript = decoded && context.language.scripts.get(decoded[0]);
|
| 24 |
+
const virtualCode = decoded && sourceScript?.generated?.embeddedCodes.get(decoded[1]);
|
| 25 |
+
if (!virtualCode?.id.startsWith('template_inline_ts_')) {
|
| 26 |
+
return;
|
| 27 |
+
}
|
| 28 |
+
const offset = document.offsetAt(selection);
|
| 29 |
+
for (const mappedRange of virtualCode.mappings) {
|
| 30 |
+
const generatedCodeEnd = mappedRange.generatedOffsets[mappedRange.generatedOffsets.length - 1]
|
| 31 |
+
+ mappedRange.lengths[mappedRange.lengths.length - 1];
|
| 32 |
+
if (generatedCodeEnd === offset) {
|
| 33 |
+
const text = document.getText().substring(mappedRange.generatedOffsets[0], generatedCodeEnd);
|
| 34 |
+
const ast = ts.createSourceFile('', text, ts.ScriptTarget.Latest);
|
| 35 |
+
if (ast.statements.length === 1) {
|
| 36 |
+
const statement = ast.statements[0];
|
| 37 |
+
if (ts.isExpressionStatement(statement)
|
| 38 |
+
&& ((ts.isAsExpression(statement.expression)
|
| 39 |
+
&& ts.isTypeReferenceNode(statement.expression.type)
|
| 40 |
+
&& ts.isIdentifier(statement.expression.type.typeName)
|
| 41 |
+
&& statement.expression.type.typeName.text)
|
| 42 |
+
|| (ts.isBinaryExpression(statement.expression)
|
| 43 |
+
&& statement.expression.right.getText(ast)
|
| 44 |
+
&& statement.expression.operatorToken.kind === ts.SyntaxKind.InstanceOfKeyword)
|
| 45 |
+
|| (ts.isTypeOfExpression(statement.expression)
|
| 46 |
+
&& statement.expression.expression.getText(ast)))) {
|
| 47 |
+
// https://code.visualstudio.com/docs/editor/userdefinedsnippets#_grammar
|
| 48 |
+
const escapedText = text
|
| 49 |
+
.replaceAll('\\', '\\\\')
|
| 50 |
+
.replaceAll('$', '\\$')
|
| 51 |
+
.replaceAll('}', '\\}');
|
| 52 |
+
return {
|
| 53 |
+
range: {
|
| 54 |
+
start: document.positionAt(mappedRange.generatedOffsets[0]),
|
| 55 |
+
end: document.positionAt(generatedCodeEnd),
|
| 56 |
+
},
|
| 57 |
+
newText: '(' + escapedText + '$0' + ')',
|
| 58 |
+
};
|
| 59 |
+
}
|
| 60 |
+
}
|
| 61 |
+
}
|
| 62 |
+
}
|
| 63 |
+
},
|
| 64 |
+
};
|
| 65 |
+
},
|
| 66 |
+
};
|
| 67 |
+
}
|
| 68 |
+
exports.create = create;
|
| 69 |
+
//# sourceMappingURL=vue-autoinsert-parentheses.js.map
|
Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/@vue/language-service/lib/plugins/vue-autoinsert-space.d.ts
CHANGED
|
@@ -1,3 +1,2 @@
|
|
| 1 |
-
|
| 2 |
-
|
| 3 |
-
size 127
|
|
|
|
| 1 |
+
import type { LanguageServicePlugin } from '@volar/language-service';
|
| 2 |
+
export declare function create(): LanguageServicePlugin;
|
|
|
Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/@vue/language-service/lib/plugins/vue-autoinsert-space.js
CHANGED
|
@@ -1,3 +1,27 @@
|
|
| 1 |
-
|
| 2 |
-
|
| 3 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"use strict";
|
| 2 |
+
Object.defineProperty(exports, "__esModule", { value: true });
|
| 3 |
+
exports.create = void 0;
|
| 4 |
+
function create() {
|
| 5 |
+
return {
|
| 6 |
+
name: 'vue-autoinsert-space',
|
| 7 |
+
create(context) {
|
| 8 |
+
return {
|
| 9 |
+
async provideAutoInsertionEdit(document, selection, change) {
|
| 10 |
+
if (document.languageId === 'html' || document.languageId === 'jade') {
|
| 11 |
+
const enabled = await context.env.getConfiguration?.('vue.autoInsert.bracketSpacing') ?? true;
|
| 12 |
+
if (!enabled) {
|
| 13 |
+
return;
|
| 14 |
+
}
|
| 15 |
+
if (change.text === '{}'
|
| 16 |
+
&& document.getText().substring(change.rangeOffset - 1, change.rangeOffset + 3) === '{{}}'
|
| 17 |
+
&& document.offsetAt(selection) === change.rangeOffset + 1) {
|
| 18 |
+
return ` $0 `;
|
| 19 |
+
}
|
| 20 |
+
}
|
| 21 |
+
},
|
| 22 |
+
};
|
| 23 |
+
},
|
| 24 |
+
};
|
| 25 |
+
}
|
| 26 |
+
exports.create = create;
|
| 27 |
+
//# sourceMappingURL=vue-autoinsert-space.js.map
|
Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/@vue/language-service/lib/plugins/vue-directive-comments.d.ts
CHANGED
|
@@ -1,3 +1,2 @@
|
|
| 1 |
-
|
| 2 |
-
|
| 3 |
-
size 127
|
|
|
|
| 1 |
+
import type { LanguageServicePlugin } from '@volar/language-service';
|
| 2 |
+
export declare function create(): LanguageServicePlugin;
|
|
|
Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/@vue/language-service/lib/plugins/vue-directive-comments.js
CHANGED
|
@@ -1,3 +1,62 @@
|
|
| 1 |
-
|
| 2 |
-
|
| 3 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"use strict";
|
| 2 |
+
Object.defineProperty(exports, "__esModule", { value: true });
|
| 3 |
+
exports.create = void 0;
|
| 4 |
+
const cmds = [
|
| 5 |
+
'vue-ignore',
|
| 6 |
+
'vue-skip',
|
| 7 |
+
'vue-expect-error',
|
| 8 |
+
];
|
| 9 |
+
const directiveCommentReg = /<!--\s*@/;
|
| 10 |
+
function create() {
|
| 11 |
+
return {
|
| 12 |
+
name: 'vue-directive-comments',
|
| 13 |
+
triggerCharacters: ['@'],
|
| 14 |
+
create() {
|
| 15 |
+
return {
|
| 16 |
+
provideCompletionItems(document, position) {
|
| 17 |
+
if (document.languageId !== 'html') {
|
| 18 |
+
return;
|
| 19 |
+
}
|
| 20 |
+
const line = document.getText({ start: { line: position.line, character: 0 }, end: position });
|
| 21 |
+
const cmdStart = line.match(directiveCommentReg);
|
| 22 |
+
if (!cmdStart) {
|
| 23 |
+
return;
|
| 24 |
+
}
|
| 25 |
+
const startIndex = cmdStart.index + cmdStart[0].length;
|
| 26 |
+
const remainText = line.substring(startIndex);
|
| 27 |
+
const result = [];
|
| 28 |
+
for (const cmd of cmds) {
|
| 29 |
+
let match = true;
|
| 30 |
+
for (let i = 0; i < remainText.length; i++) {
|
| 31 |
+
if (remainText[i] !== cmd[i]) {
|
| 32 |
+
match = false;
|
| 33 |
+
break;
|
| 34 |
+
}
|
| 35 |
+
}
|
| 36 |
+
if (match) {
|
| 37 |
+
result.push({
|
| 38 |
+
label: '@' + cmd,
|
| 39 |
+
textEdit: {
|
| 40 |
+
range: {
|
| 41 |
+
start: {
|
| 42 |
+
line: position.line,
|
| 43 |
+
character: startIndex - 1,
|
| 44 |
+
},
|
| 45 |
+
end: position,
|
| 46 |
+
},
|
| 47 |
+
newText: '@' + cmd,
|
| 48 |
+
},
|
| 49 |
+
});
|
| 50 |
+
}
|
| 51 |
+
}
|
| 52 |
+
return {
|
| 53 |
+
isIncomplete: false,
|
| 54 |
+
items: result,
|
| 55 |
+
};
|
| 56 |
+
},
|
| 57 |
+
};
|
| 58 |
+
},
|
| 59 |
+
};
|
| 60 |
+
}
|
| 61 |
+
exports.create = create;
|
| 62 |
+
//# sourceMappingURL=vue-directive-comments.js.map
|
Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/@vue/language-service/lib/plugins/vue-document-drop.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
-
|
| 2 |
-
|
| 3 |
-
|
|
|
|
| 1 |
+
import { VueCompilerOptions } from '@vue/language-core';
|
| 2 |
+
import { LanguageServicePlugin, ServiceContext, ServiceEnvironment } from '../types';
|
| 3 |
+
export declare function create(ts: typeof import('typescript'), getVueOptions: (env: ServiceEnvironment) => VueCompilerOptions, getTsPluginClient?: (context: ServiceContext) => typeof import('@vue/typescript-plugin/lib/client') | undefined): LanguageServicePlugin;
|
Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/@vue/language-service/lib/plugins/vue-document-drop.js
CHANGED
|
@@ -1,3 +1,104 @@
|
|
| 1 |
-
|
| 2 |
-
|
| 3 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"use strict";
|
| 2 |
+
Object.defineProperty(exports, "__esModule", { value: true });
|
| 3 |
+
exports.create = void 0;
|
| 4 |
+
const language_core_1 = require("@vue/language-core");
|
| 5 |
+
const shared_1 = require("@vue/shared");
|
| 6 |
+
const path = require("path-browserify");
|
| 7 |
+
const vue_extract_file_1 = require("../plugins/vue-extract-file");
|
| 8 |
+
const types_1 = require("../types");
|
| 9 |
+
const getUserPreferences_1 = require("volar-service-typescript/lib/configs/getUserPreferences");
|
| 10 |
+
function create(ts, getVueOptions, getTsPluginClient) {
|
| 11 |
+
return {
|
| 12 |
+
name: 'vue-document-drop',
|
| 13 |
+
create(context) {
|
| 14 |
+
let casing = types_1.TagNameCasing.Pascal; // TODO
|
| 15 |
+
const tsPluginClient = getTsPluginClient?.(context);
|
| 16 |
+
const vueCompilerOptions = getVueOptions(context.env);
|
| 17 |
+
return {
|
| 18 |
+
async provideDocumentDropEdits(document, _position, dataTransfer) {
|
| 19 |
+
if (document.languageId !== 'html') {
|
| 20 |
+
return;
|
| 21 |
+
}
|
| 22 |
+
const decoded = context.decodeEmbeddedDocumentUri(document.uri);
|
| 23 |
+
const sourceScript = decoded && context.language.scripts.get(decoded[0]);
|
| 24 |
+
const virtualCode = decoded && sourceScript?.generated?.embeddedCodes.get(decoded[1]);
|
| 25 |
+
const vueVirtualCode = sourceScript?.generated?.root;
|
| 26 |
+
if (!sourceScript || !virtualCode || !(vueVirtualCode instanceof language_core_1.VueVirtualCode)) {
|
| 27 |
+
return;
|
| 28 |
+
}
|
| 29 |
+
let importUri;
|
| 30 |
+
for (const [mimeType, item] of dataTransfer) {
|
| 31 |
+
if (mimeType === 'text/uri-list') {
|
| 32 |
+
importUri = item.value;
|
| 33 |
+
}
|
| 34 |
+
}
|
| 35 |
+
if (!importUri || !vueCompilerOptions.extensions.some(ext => importUri.endsWith(ext))) {
|
| 36 |
+
return;
|
| 37 |
+
}
|
| 38 |
+
let baseName = importUri.substring(importUri.lastIndexOf('/') + 1);
|
| 39 |
+
baseName = baseName.substring(0, baseName.lastIndexOf('.'));
|
| 40 |
+
const newName = (0, shared_1.capitalize)((0, shared_1.camelize)(baseName));
|
| 41 |
+
const { sfc } = vueVirtualCode;
|
| 42 |
+
const script = sfc.scriptSetup ?? sfc.script;
|
| 43 |
+
if (!script) {
|
| 44 |
+
return;
|
| 45 |
+
}
|
| 46 |
+
const additionalEdit = {};
|
| 47 |
+
const code = [...(0, language_core_1.forEachEmbeddedCode)(vueVirtualCode)].find(code => code.id === (sfc.scriptSetup ? 'scriptSetupFormat' : 'scriptFormat'));
|
| 48 |
+
const lastImportNode = (0, vue_extract_file_1.getLastImportNode)(ts, script.ast);
|
| 49 |
+
const incomingFileName = context.env.typescript.uriToFileName(importUri);
|
| 50 |
+
let importPath;
|
| 51 |
+
const serviceScript = sourceScript.generated?.languagePlugin.typescript?.getServiceScript(vueVirtualCode);
|
| 52 |
+
if (tsPluginClient && serviceScript) {
|
| 53 |
+
const tsDocumentUri = context.encodeEmbeddedDocumentUri(sourceScript.id, serviceScript.code.id);
|
| 54 |
+
const tsDocument = context.documents.get(tsDocumentUri, serviceScript.code.languageId, serviceScript.code.snapshot);
|
| 55 |
+
const preferences = await (0, getUserPreferences_1.getUserPreferences)(context, tsDocument);
|
| 56 |
+
const importPathRequest = await tsPluginClient.getImportPathForFile(vueVirtualCode.fileName, incomingFileName, preferences);
|
| 57 |
+
if (importPathRequest) {
|
| 58 |
+
importPath = importPathRequest;
|
| 59 |
+
}
|
| 60 |
+
}
|
| 61 |
+
if (!importPath) {
|
| 62 |
+
importPath = path.relative(path.dirname(vueVirtualCode.fileName), incomingFileName)
|
| 63 |
+
|| importUri.substring(importUri.lastIndexOf('/') + 1);
|
| 64 |
+
if (!importPath.startsWith('./') && !importPath.startsWith('../')) {
|
| 65 |
+
importPath = './' + importPath;
|
| 66 |
+
}
|
| 67 |
+
}
|
| 68 |
+
additionalEdit.changes ??= {};
|
| 69 |
+
additionalEdit.changes[context.encodeEmbeddedDocumentUri(sourceScript.id, code.id)] = [];
|
| 70 |
+
additionalEdit.changes[context.encodeEmbeddedDocumentUri(sourceScript.id, code.id)].push({
|
| 71 |
+
range: lastImportNode ? {
|
| 72 |
+
start: script.ast.getLineAndCharacterOfPosition(lastImportNode.end),
|
| 73 |
+
end: script.ast.getLineAndCharacterOfPosition(lastImportNode.end),
|
| 74 |
+
} : {
|
| 75 |
+
start: script.ast.getLineAndCharacterOfPosition(0),
|
| 76 |
+
end: script.ast.getLineAndCharacterOfPosition(0),
|
| 77 |
+
},
|
| 78 |
+
newText: `\nimport ${newName} from '${importPath}'`
|
| 79 |
+
+ (lastImportNode ? '' : '\n'),
|
| 80 |
+
});
|
| 81 |
+
if (sfc.script) {
|
| 82 |
+
const edit = (0, vue_extract_file_1.createAddComponentToOptionEdit)(ts, sfc.script.ast, newName);
|
| 83 |
+
if (edit) {
|
| 84 |
+
additionalEdit.changes[context.encodeEmbeddedDocumentUri(sourceScript.id, code.id)].push({
|
| 85 |
+
range: {
|
| 86 |
+
start: document.positionAt(edit.range.start),
|
| 87 |
+
end: document.positionAt(edit.range.end),
|
| 88 |
+
},
|
| 89 |
+
newText: edit.newText,
|
| 90 |
+
});
|
| 91 |
+
}
|
| 92 |
+
}
|
| 93 |
+
return {
|
| 94 |
+
insertText: `<${casing === types_1.TagNameCasing.Kebab ? (0, shared_1.hyphenate)(newName) : newName}$0 />`,
|
| 95 |
+
insertTextFormat: 2,
|
| 96 |
+
additionalEdit,
|
| 97 |
+
};
|
| 98 |
+
},
|
| 99 |
+
};
|
| 100 |
+
},
|
| 101 |
+
};
|
| 102 |
+
}
|
| 103 |
+
exports.create = create;
|
| 104 |
+
//# sourceMappingURL=vue-document-drop.js.map
|
Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/@vue/language-service/lib/plugins/vue-document-links.d.ts
CHANGED
|
@@ -1,3 +1,2 @@
|
|
| 1 |
-
|
| 2 |
-
|
| 3 |
-
size 127
|
|
|
|
| 1 |
+
import type { LanguageServicePlugin } from '@volar/language-service';
|
| 2 |
+
export declare function create(): LanguageServicePlugin;
|
|
|
Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/@vue/language-service/lib/plugins/vue-document-links.js
CHANGED
|
@@ -1,3 +1,66 @@
|
|
| 1 |
-
|
| 2 |
-
|
| 3 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"use strict";
|
| 2 |
+
Object.defineProperty(exports, "__esModule", { value: true });
|
| 3 |
+
exports.create = void 0;
|
| 4 |
+
const language_core_1 = require("@vue/language-core");
|
| 5 |
+
const language_core_2 = require("@vue/language-core");
|
| 6 |
+
function create() {
|
| 7 |
+
return {
|
| 8 |
+
name: 'vue-document-links',
|
| 9 |
+
create(context) {
|
| 10 |
+
return {
|
| 11 |
+
provideDocumentLinks(document) {
|
| 12 |
+
const decoded = context.decodeEmbeddedDocumentUri(document.uri);
|
| 13 |
+
const sourceScript = decoded && context.language.scripts.get(decoded[0]);
|
| 14 |
+
const virtualCode = decoded && sourceScript?.generated?.embeddedCodes.get(decoded[1]);
|
| 15 |
+
if (sourceScript?.generated?.root instanceof language_core_1.VueVirtualCode && virtualCode?.id === 'template') {
|
| 16 |
+
const result = [];
|
| 17 |
+
const codegen = language_core_2.tsCodegen.get(sourceScript.generated.root.sfc);
|
| 18 |
+
const scopedClasses = codegen?.generatedTemplate()?.scopedClasses ?? [];
|
| 19 |
+
const styleClasses = new Map();
|
| 20 |
+
const option = sourceScript.generated.root.vueCompilerOptions.experimentalResolveStyleCssClasses;
|
| 21 |
+
for (let i = 0; i < sourceScript.generated.root.sfc.styles.length; i++) {
|
| 22 |
+
const style = sourceScript.generated.root.sfc.styles[i];
|
| 23 |
+
if (option === 'always' || (option === 'scoped' && style.scoped)) {
|
| 24 |
+
for (const className of style.classNames) {
|
| 25 |
+
if (!styleClasses.has(className.text.substring(1))) {
|
| 26 |
+
styleClasses.set(className.text.substring(1), []);
|
| 27 |
+
}
|
| 28 |
+
styleClasses.get(className.text.substring(1)).push({
|
| 29 |
+
index: i,
|
| 30 |
+
style,
|
| 31 |
+
classOffset: className.offset,
|
| 32 |
+
});
|
| 33 |
+
}
|
| 34 |
+
}
|
| 35 |
+
}
|
| 36 |
+
for (const { className, offset } of scopedClasses) {
|
| 37 |
+
const styles = styleClasses.get(className);
|
| 38 |
+
if (styles) {
|
| 39 |
+
for (const style of styles) {
|
| 40 |
+
const styleDocumentUri = context.encodeEmbeddedDocumentUri(decoded[0], 'style_' + style.index);
|
| 41 |
+
const styleVirtualCode = sourceScript.generated.embeddedCodes.get('style_' + style.index);
|
| 42 |
+
if (!styleVirtualCode) {
|
| 43 |
+
continue;
|
| 44 |
+
}
|
| 45 |
+
const styleDocument = context.documents.get(styleDocumentUri, styleVirtualCode.languageId, styleVirtualCode.snapshot);
|
| 46 |
+
const start = styleDocument.positionAt(style.classOffset);
|
| 47 |
+
const end = styleDocument.positionAt(style.classOffset + className.length + 1);
|
| 48 |
+
result.push({
|
| 49 |
+
range: {
|
| 50 |
+
start: document.positionAt(offset),
|
| 51 |
+
end: document.positionAt(offset + className.length),
|
| 52 |
+
},
|
| 53 |
+
target: context.encodeEmbeddedDocumentUri(decoded[0], 'style_' + style.index) + `#L${start.line + 1},${start.character + 1}-L${end.line + 1},${end.character + 1}`,
|
| 54 |
+
});
|
| 55 |
+
}
|
| 56 |
+
}
|
| 57 |
+
}
|
| 58 |
+
return result;
|
| 59 |
+
}
|
| 60 |
+
},
|
| 61 |
+
};
|
| 62 |
+
},
|
| 63 |
+
};
|
| 64 |
+
}
|
| 65 |
+
exports.create = create;
|
| 66 |
+
//# sourceMappingURL=vue-document-links.js.map
|
Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/@vue/language-service/lib/plugins/vue-extract-file.d.ts
CHANGED
|
@@ -1,3 +1,8 @@
|
|
| 1 |
-
|
| 2 |
-
|
| 3 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import type { ServiceContext, LanguageServicePlugin } from '@volar/language-service';
|
| 2 |
+
import type * as ts from 'typescript';
|
| 3 |
+
export declare function create(ts: typeof import('typescript'), getTsPluginClient?: (context: ServiceContext) => typeof import('@vue/typescript-plugin/lib/client') | undefined): LanguageServicePlugin;
|
| 4 |
+
export declare function getLastImportNode(ts: typeof import('typescript'), sourceFile: ts.SourceFile): ts.Node | undefined;
|
| 5 |
+
export declare function createAddComponentToOptionEdit(ts: typeof import('typescript'), ast: ts.SourceFile, componentName: string): {
|
| 6 |
+
range: import("@vue/language-core").TextRange;
|
| 7 |
+
newText: string;
|
| 8 |
+
} | undefined;
|
Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"use strict";
|
| 2 |
+
Object.defineProperty(exports, "__esModule", { value: true });
|
| 3 |
+
exports.createAddComponentToOptionEdit = exports.getLastImportNode = exports.create = void 0;
|
| 4 |
+
const language_core_1 = require("@vue/language-core");
|
| 5 |
+
const unicodeReg = /\\u/g;
|
| 6 |
+
function create(ts, getTsPluginClient) {
|
| 7 |
+
return {
|
| 8 |
+
name: 'vue-extract-file',
|
| 9 |
+
create(context) {
|
| 10 |
+
const tsPluginClient = getTsPluginClient?.(context);
|
| 11 |
+
return {
|
| 12 |
+
async provideCodeActions(document, range, _context) {
|
| 13 |
+
const startOffset = document.offsetAt(range.start);
|
| 14 |
+
const endOffset = document.offsetAt(range.end);
|
| 15 |
+
if (startOffset === endOffset) {
|
| 16 |
+
return;
|
| 17 |
+
}
|
| 18 |
+
const decoded = context.decodeEmbeddedDocumentUri(document.uri);
|
| 19 |
+
const sourceScript = decoded && context.language.scripts.get(decoded[0]);
|
| 20 |
+
const virtualCode = decoded && sourceScript?.generated?.embeddedCodes.get(decoded[1]);
|
| 21 |
+
if (!(sourceScript?.generated?.root instanceof language_core_1.VueVirtualCode) || virtualCode?.id !== 'template') {
|
| 22 |
+
return;
|
| 23 |
+
}
|
| 24 |
+
const { sfc } = sourceScript.generated.root;
|
| 25 |
+
const script = sfc.scriptSetup ?? sfc.script;
|
| 26 |
+
if (!sfc.template || !script) {
|
| 27 |
+
return;
|
| 28 |
+
}
|
| 29 |
+
const templateCodeRange = selectTemplateCode(startOffset, endOffset, sfc.template);
|
| 30 |
+
if (!templateCodeRange) {
|
| 31 |
+
return;
|
| 32 |
+
}
|
| 33 |
+
return [
|
| 34 |
+
{
|
| 35 |
+
title: 'Extract into new dumb component',
|
| 36 |
+
kind: 'refactor.move.newFile.dumb',
|
| 37 |
+
data: {
|
| 38 |
+
uri: document.uri,
|
| 39 |
+
range: [startOffset, endOffset],
|
| 40 |
+
newName: 'NewComponent',
|
| 41 |
+
},
|
| 42 |
+
},
|
| 43 |
+
];
|
| 44 |
+
},
|
| 45 |
+
async resolveCodeAction(codeAction) {
|
| 46 |
+
const { uri, range, newName } = codeAction.data;
|
| 47 |
+
const [startOffset, endOffset] = range;
|
| 48 |
+
const decoded = context.decodeEmbeddedDocumentUri(uri);
|
| 49 |
+
const sourceScript = decoded && context.language.scripts.get(decoded[0]);
|
| 50 |
+
const virtualCode = decoded && sourceScript?.generated?.embeddedCodes.get(decoded[1]);
|
| 51 |
+
if (!(sourceScript?.generated?.root instanceof language_core_1.VueVirtualCode) || virtualCode?.id !== 'template') {
|
| 52 |
+
return codeAction;
|
| 53 |
+
}
|
| 54 |
+
const document = context.documents.get(uri, virtualCode.languageId, virtualCode.snapshot);
|
| 55 |
+
const sfcDocument = context.documents.get(sourceScript.id, sourceScript.languageId, sourceScript.snapshot);
|
| 56 |
+
const { sfc } = sourceScript.generated.root;
|
| 57 |
+
const script = sfc.scriptSetup ?? sfc.script;
|
| 58 |
+
if (!sfc.template || !script) {
|
| 59 |
+
return codeAction;
|
| 60 |
+
}
|
| 61 |
+
const templateCodeRange = selectTemplateCode(startOffset, endOffset, sfc.template);
|
| 62 |
+
if (!templateCodeRange) {
|
| 63 |
+
return codeAction;
|
| 64 |
+
}
|
| 65 |
+
const toExtract = await tsPluginClient?.collectExtractProps(sourceScript.generated.root.fileName, templateCodeRange) ?? [];
|
| 66 |
+
if (!toExtract) {
|
| 67 |
+
return codeAction;
|
| 68 |
+
}
|
| 69 |
+
const templateInitialIndent = await context.env.getConfiguration('vue.format.template.initialIndent') ?? true;
|
| 70 |
+
const scriptInitialIndent = await context.env.getConfiguration('vue.format.script.initialIndent') ?? false;
|
| 71 |
+
const newUri = sfcDocument.uri.substring(0, sfcDocument.uri.lastIndexOf('/') + 1) + `${newName}.vue`;
|
| 72 |
+
const lastImportNode = getLastImportNode(ts, script.ast);
|
| 73 |
+
let newFileTags = [];
|
| 74 |
+
newFileTags.push(constructTag('template', [], templateInitialIndent, sfc.template.content.substring(templateCodeRange[0], templateCodeRange[1])));
|
| 75 |
+
if (toExtract.length) {
|
| 76 |
+
newFileTags.push(constructTag('script', ['setup', 'lang="ts"'], scriptInitialIndent, generateNewScriptContents()));
|
| 77 |
+
}
|
| 78 |
+
if (sfc.template.startTagEnd > script.startTagEnd) {
|
| 79 |
+
newFileTags = newFileTags.reverse();
|
| 80 |
+
}
|
| 81 |
+
const templateEdits = [
|
| 82 |
+
{
|
| 83 |
+
range: {
|
| 84 |
+
start: document.positionAt(templateCodeRange[0]),
|
| 85 |
+
end: document.positionAt(templateCodeRange[1]),
|
| 86 |
+
},
|
| 87 |
+
newText: generateReplaceTemplate(),
|
| 88 |
+
},
|
| 89 |
+
];
|
| 90 |
+
const sfcEdits = [
|
| 91 |
+
{
|
| 92 |
+
range: lastImportNode ? {
|
| 93 |
+
start: sfcDocument.positionAt(script.startTagEnd + lastImportNode.end),
|
| 94 |
+
end: sfcDocument.positionAt(script.startTagEnd + lastImportNode.end),
|
| 95 |
+
} : {
|
| 96 |
+
start: sfcDocument.positionAt(script.startTagEnd),
|
| 97 |
+
end: sfcDocument.positionAt(script.startTagEnd),
|
| 98 |
+
},
|
| 99 |
+
newText: `\nimport ${newName} from './${newName}.vue'`,
|
| 100 |
+
},
|
| 101 |
+
];
|
| 102 |
+
if (sfc.script) {
|
| 103 |
+
const edit = createAddComponentToOptionEdit(ts, sfc.script.ast, newName);
|
| 104 |
+
if (edit) {
|
| 105 |
+
sfcEdits.push({
|
| 106 |
+
range: {
|
| 107 |
+
start: sfcDocument.positionAt(sfc.script.startTagEnd + edit.range.start),
|
| 108 |
+
end: sfcDocument.positionAt(sfc.script.startTagEnd + edit.range.end),
|
| 109 |
+
},
|
| 110 |
+
newText: edit.newText,
|
| 111 |
+
});
|
| 112 |
+
}
|
| 113 |
+
}
|
| 114 |
+
return {
|
| 115 |
+
...codeAction,
|
| 116 |
+
edit: {
|
| 117 |
+
documentChanges: [
|
| 118 |
+
// editing template virtual document
|
| 119 |
+
{
|
| 120 |
+
textDocument: {
|
| 121 |
+
uri: document.uri,
|
| 122 |
+
version: null,
|
| 123 |
+
},
|
| 124 |
+
edits: templateEdits,
|
| 125 |
+
},
|
| 126 |
+
// editing vue sfc
|
| 127 |
+
{
|
| 128 |
+
textDocument: {
|
| 129 |
+
uri: sourceScript.id,
|
| 130 |
+
version: null,
|
| 131 |
+
},
|
| 132 |
+
edits: sfcEdits,
|
| 133 |
+
},
|
| 134 |
+
// creating new file with content
|
| 135 |
+
{
|
| 136 |
+
uri: newUri,
|
| 137 |
+
kind: 'create',
|
| 138 |
+
},
|
| 139 |
+
{
|
| 140 |
+
textDocument: {
|
| 141 |
+
uri: newUri,
|
| 142 |
+
version: null,
|
| 143 |
+
},
|
| 144 |
+
edits: [
|
| 145 |
+
{
|
| 146 |
+
range: {
|
| 147 |
+
start: { line: 0, character: 0 },
|
| 148 |
+
end: { line: 0, character: 0 },
|
| 149 |
+
},
|
| 150 |
+
newText: newFileTags.join('\n'),
|
| 151 |
+
},
|
| 152 |
+
],
|
| 153 |
+
},
|
| 154 |
+
],
|
| 155 |
+
},
|
| 156 |
+
};
|
| 157 |
+
function generateNewScriptContents() {
|
| 158 |
+
const lines = [];
|
| 159 |
+
const props = toExtract.filter(p => !p.model);
|
| 160 |
+
const models = toExtract.filter(p => p.model);
|
| 161 |
+
if (props.length) {
|
| 162 |
+
lines.push(`defineProps<{ \n\t${props.map(p => `${p.name}: ${p.type};`).join('\n\t')}\n}>()`);
|
| 163 |
+
}
|
| 164 |
+
for (const model of models) {
|
| 165 |
+
lines.push(`const ${model.name} = defineModel<${model.type}>('${model.name}', { required: true })`);
|
| 166 |
+
}
|
| 167 |
+
return lines.join('\n');
|
| 168 |
+
}
|
| 169 |
+
function generateReplaceTemplate() {
|
| 170 |
+
const props = toExtract.filter(p => !p.model);
|
| 171 |
+
const models = toExtract.filter(p => p.model);
|
| 172 |
+
return [
|
| 173 |
+
`<${newName}`,
|
| 174 |
+
...props.map(p => `:${p.name}="${p.name}"`),
|
| 175 |
+
...models.map(p => `v-model:${p.name}="${p.name}"`),
|
| 176 |
+
`/>`,
|
| 177 |
+
].join(' ');
|
| 178 |
+
}
|
| 179 |
+
},
|
| 180 |
+
};
|
| 181 |
+
},
|
| 182 |
+
};
|
| 183 |
+
}
|
| 184 |
+
exports.create = create;
|
| 185 |
+
function selectTemplateCode(startOffset, endOffset, templateBlock) {
|
| 186 |
+
const insideNodes = [];
|
| 187 |
+
templateBlock.ast?.children.forEach(function visit(node) {
|
| 188 |
+
if (node.loc.start.offset >= startOffset
|
| 189 |
+
&& node.loc.end.offset <= endOffset) {
|
| 190 |
+
insideNodes.push(node);
|
| 191 |
+
}
|
| 192 |
+
if ('children' in node) {
|
| 193 |
+
node.children.forEach(node => {
|
| 194 |
+
if (typeof node === 'object') {
|
| 195 |
+
visit(node);
|
| 196 |
+
}
|
| 197 |
+
});
|
| 198 |
+
}
|
| 199 |
+
else if ('branches' in node) {
|
| 200 |
+
node.branches.forEach(visit);
|
| 201 |
+
}
|
| 202 |
+
else if ('content' in node) {
|
| 203 |
+
if (typeof node.content === 'object') {
|
| 204 |
+
visit(node.content);
|
| 205 |
+
}
|
| 206 |
+
}
|
| 207 |
+
});
|
| 208 |
+
if (insideNodes.length) {
|
| 209 |
+
const first = insideNodes.sort((a, b) => a.loc.start.offset - b.loc.start.offset)[0];
|
| 210 |
+
const last = insideNodes.sort((a, b) => b.loc.end.offset - a.loc.end.offset)[0];
|
| 211 |
+
return [first.loc.start.offset, last.loc.end.offset];
|
| 212 |
+
}
|
| 213 |
+
}
|
| 214 |
+
function constructTag(name, attributes, initialIndent, content) {
|
| 215 |
+
if (initialIndent) {
|
| 216 |
+
content = content.split('\n').map(line => `\t${line}`).join('\n');
|
| 217 |
+
}
|
| 218 |
+
const attributesString = attributes.length ? ` ${attributes.join(' ')}` : '';
|
| 219 |
+
return `<${name}${attributesString}>\n${content}\n</${name}>\n`;
|
| 220 |
+
}
|
| 221 |
+
function getLastImportNode(ts, sourceFile) {
|
| 222 |
+
let lastImportNode;
|
| 223 |
+
for (const statement of sourceFile.statements) {
|
| 224 |
+
if (ts.isImportDeclaration(statement)) {
|
| 225 |
+
lastImportNode = statement;
|
| 226 |
+
}
|
| 227 |
+
else {
|
| 228 |
+
break;
|
| 229 |
+
}
|
| 230 |
+
}
|
| 231 |
+
return lastImportNode;
|
| 232 |
+
}
|
| 233 |
+
exports.getLastImportNode = getLastImportNode;
|
| 234 |
+
function createAddComponentToOptionEdit(ts, ast, componentName) {
|
| 235 |
+
const exportDefault = language_core_1.scriptRanges.parseScriptRanges(ts, ast, false, true).exportDefault;
|
| 236 |
+
if (!exportDefault) {
|
| 237 |
+
return;
|
| 238 |
+
}
|
| 239 |
+
// https://github.com/microsoft/TypeScript/issues/36174
|
| 240 |
+
const printer = ts.createPrinter();
|
| 241 |
+
if (exportDefault.componentsOption && exportDefault.componentsOptionNode) {
|
| 242 |
+
const newNode = {
|
| 243 |
+
...exportDefault.componentsOptionNode,
|
| 244 |
+
properties: [
|
| 245 |
+
...exportDefault.componentsOptionNode.properties,
|
| 246 |
+
ts.factory.createShorthandPropertyAssignment(componentName),
|
| 247 |
+
],
|
| 248 |
+
};
|
| 249 |
+
const printText = printer.printNode(ts.EmitHint.Expression, newNode, ast);
|
| 250 |
+
return {
|
| 251 |
+
range: exportDefault.componentsOption,
|
| 252 |
+
newText: unescape(printText.replace(unicodeReg, '%u')),
|
| 253 |
+
};
|
| 254 |
+
}
|
| 255 |
+
else if (exportDefault.args && exportDefault.argsNode) {
|
| 256 |
+
const newNode = {
|
| 257 |
+
...exportDefault.argsNode,
|
| 258 |
+
properties: [
|
| 259 |
+
...exportDefault.argsNode.properties,
|
| 260 |
+
ts.factory.createShorthandPropertyAssignment(`components: { ${componentName} }`),
|
| 261 |
+
],
|
| 262 |
+
};
|
| 263 |
+
const printText = printer.printNode(ts.EmitHint.Expression, newNode, ast);
|
| 264 |
+
return {
|
| 265 |
+
range: exportDefault.args,
|
| 266 |
+
newText: unescape(printText.replace(unicodeReg, '%u')),
|
| 267 |
+
};
|
| 268 |
+
}
|
| 269 |
+
}
|
| 270 |
+
exports.createAddComponentToOptionEdit = createAddComponentToOptionEdit;
|
| 271 |
+
//# sourceMappingURL=vue-extract-file.js.map
|
Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/@vue/language-service/lib/plugins/vue-sfc.d.ts
CHANGED
|
@@ -1,3 +1,7 @@
|
|
| 1 |
-
|
| 2 |
-
|
| 3 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import type { LanguageServicePlugin } from '@volar/language-service';
|
| 2 |
+
import * as vue from '@vue/language-core';
|
| 3 |
+
import type { TextDocument } from 'vscode-languageserver-textdocument';
|
| 4 |
+
export interface Provide {
|
| 5 |
+
'vue/vueFile': (document: TextDocument) => vue.VueVirtualCode | undefined;
|
| 6 |
+
}
|
| 7 |
+
export declare function create(): LanguageServicePlugin;
|
Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/@vue/language-service/lib/plugins/vue-sfc.js
CHANGED
|
@@ -1,3 +1,169 @@
|
|
| 1 |
-
|
| 2 |
-
|
| 3 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"use strict";
|
| 2 |
+
Object.defineProperty(exports, "__esModule", { value: true });
|
| 3 |
+
exports.create = void 0;
|
| 4 |
+
const vue = require("@vue/language-core");
|
| 5 |
+
const volar_service_html_1 = require("volar-service-html");
|
| 6 |
+
const html = require("vscode-html-languageservice");
|
| 7 |
+
const data_1 = require("./data");
|
| 8 |
+
let sfcDataProvider;
|
| 9 |
+
function create() {
|
| 10 |
+
const htmlPlugin = (0, volar_service_html_1.create)({
|
| 11 |
+
documentSelector: ['vue'],
|
| 12 |
+
useDefaultDataProvider: false,
|
| 13 |
+
getCustomData(context) {
|
| 14 |
+
sfcDataProvider ??= html.newHTMLDataProvider('vue', (0, data_1.loadLanguageBlocks)(context.env.locale ?? 'en'));
|
| 15 |
+
return [sfcDataProvider];
|
| 16 |
+
},
|
| 17 |
+
async getFormattingOptions(document, options, context) {
|
| 18 |
+
return await worker(document, context, async (vueCode) => {
|
| 19 |
+
const formatSettings = await context.env.getConfiguration?.('html.format') ?? {};
|
| 20 |
+
const blockTypes = ['template', 'script', 'style'];
|
| 21 |
+
for (const customBlock of vueCode.sfc.customBlocks) {
|
| 22 |
+
blockTypes.push(customBlock.type);
|
| 23 |
+
}
|
| 24 |
+
return {
|
| 25 |
+
...options,
|
| 26 |
+
...formatSettings,
|
| 27 |
+
wrapAttributes: await context.env.getConfiguration?.('vue.format.wrapAttributes') ?? 'auto',
|
| 28 |
+
unformatted: '',
|
| 29 |
+
contentUnformatted: blockTypes.join(','),
|
| 30 |
+
endWithNewline: options.insertFinalNewline ? true
|
| 31 |
+
: options.trimFinalNewlines ? false
|
| 32 |
+
: document.getText().endsWith('\n'),
|
| 33 |
+
};
|
| 34 |
+
}) ?? {};
|
| 35 |
+
},
|
| 36 |
+
});
|
| 37 |
+
return {
|
| 38 |
+
...htmlPlugin,
|
| 39 |
+
name: 'vue-sfc',
|
| 40 |
+
create(context) {
|
| 41 |
+
const htmlPluginInstance = htmlPlugin.create(context);
|
| 42 |
+
return {
|
| 43 |
+
...htmlPluginInstance,
|
| 44 |
+
provide: {
|
| 45 |
+
'vue/vueFile': document => {
|
| 46 |
+
return worker(document, context, vueFile => {
|
| 47 |
+
return vueFile;
|
| 48 |
+
});
|
| 49 |
+
},
|
| 50 |
+
},
|
| 51 |
+
provideDocumentLinks: undefined,
|
| 52 |
+
async resolveEmbeddedCodeFormattingOptions(sourceScript, virtualCode, options) {
|
| 53 |
+
if (sourceScript.generated?.root instanceof vue.VueVirtualCode) {
|
| 54 |
+
if (virtualCode.id === 'scriptFormat' || virtualCode.id === 'scriptSetupFormat') {
|
| 55 |
+
if (await context.env.getConfiguration?.('vue.format.script.initialIndent') ?? false) {
|
| 56 |
+
options.initialIndentLevel++;
|
| 57 |
+
}
|
| 58 |
+
}
|
| 59 |
+
else if (virtualCode.id.startsWith('style_')) {
|
| 60 |
+
if (await context.env.getConfiguration?.('vue.format.style.initialIndent') ?? false) {
|
| 61 |
+
options.initialIndentLevel++;
|
| 62 |
+
}
|
| 63 |
+
}
|
| 64 |
+
else if (virtualCode.id === 'template') {
|
| 65 |
+
if (await context.env.getConfiguration?.('vue.format.template.initialIndent') ?? true) {
|
| 66 |
+
options.initialIndentLevel++;
|
| 67 |
+
}
|
| 68 |
+
}
|
| 69 |
+
}
|
| 70 |
+
return options;
|
| 71 |
+
},
|
| 72 |
+
provideDocumentSymbols(document) {
|
| 73 |
+
return worker(document, context, vueSourceFile => {
|
| 74 |
+
const result = [];
|
| 75 |
+
const descriptor = vueSourceFile.sfc;
|
| 76 |
+
if (descriptor.template) {
|
| 77 |
+
result.push({
|
| 78 |
+
name: 'template',
|
| 79 |
+
kind: 2,
|
| 80 |
+
range: {
|
| 81 |
+
start: document.positionAt(descriptor.template.start),
|
| 82 |
+
end: document.positionAt(descriptor.template.end),
|
| 83 |
+
},
|
| 84 |
+
selectionRange: {
|
| 85 |
+
start: document.positionAt(descriptor.template.start),
|
| 86 |
+
end: document.positionAt(descriptor.template.startTagEnd),
|
| 87 |
+
},
|
| 88 |
+
});
|
| 89 |
+
}
|
| 90 |
+
if (descriptor.script) {
|
| 91 |
+
result.push({
|
| 92 |
+
name: 'script',
|
| 93 |
+
kind: 2,
|
| 94 |
+
range: {
|
| 95 |
+
start: document.positionAt(descriptor.script.start),
|
| 96 |
+
end: document.positionAt(descriptor.script.end),
|
| 97 |
+
},
|
| 98 |
+
selectionRange: {
|
| 99 |
+
start: document.positionAt(descriptor.script.start),
|
| 100 |
+
end: document.positionAt(descriptor.script.startTagEnd),
|
| 101 |
+
},
|
| 102 |
+
});
|
| 103 |
+
}
|
| 104 |
+
if (descriptor.scriptSetup) {
|
| 105 |
+
result.push({
|
| 106 |
+
name: 'script setup',
|
| 107 |
+
kind: 2,
|
| 108 |
+
range: {
|
| 109 |
+
start: document.positionAt(descriptor.scriptSetup.start),
|
| 110 |
+
end: document.positionAt(descriptor.scriptSetup.end),
|
| 111 |
+
},
|
| 112 |
+
selectionRange: {
|
| 113 |
+
start: document.positionAt(descriptor.scriptSetup.start),
|
| 114 |
+
end: document.positionAt(descriptor.scriptSetup.startTagEnd),
|
| 115 |
+
},
|
| 116 |
+
});
|
| 117 |
+
}
|
| 118 |
+
for (const style of descriptor.styles) {
|
| 119 |
+
let name = 'style';
|
| 120 |
+
if (style.scoped) {
|
| 121 |
+
name += ' scoped';
|
| 122 |
+
}
|
| 123 |
+
if (style.module) {
|
| 124 |
+
name += ' module';
|
| 125 |
+
}
|
| 126 |
+
result.push({
|
| 127 |
+
name,
|
| 128 |
+
kind: 2,
|
| 129 |
+
range: {
|
| 130 |
+
start: document.positionAt(style.start),
|
| 131 |
+
end: document.positionAt(style.end),
|
| 132 |
+
},
|
| 133 |
+
selectionRange: {
|
| 134 |
+
start: document.positionAt(style.start),
|
| 135 |
+
end: document.positionAt(style.startTagEnd),
|
| 136 |
+
},
|
| 137 |
+
});
|
| 138 |
+
}
|
| 139 |
+
for (const customBlock of descriptor.customBlocks) {
|
| 140 |
+
result.push({
|
| 141 |
+
name: `${customBlock.type}`,
|
| 142 |
+
kind: 2,
|
| 143 |
+
range: {
|
| 144 |
+
start: document.positionAt(customBlock.start),
|
| 145 |
+
end: document.positionAt(customBlock.end),
|
| 146 |
+
},
|
| 147 |
+
selectionRange: {
|
| 148 |
+
start: document.positionAt(customBlock.start),
|
| 149 |
+
end: document.positionAt(customBlock.startTagEnd),
|
| 150 |
+
},
|
| 151 |
+
});
|
| 152 |
+
}
|
| 153 |
+
return result;
|
| 154 |
+
});
|
| 155 |
+
},
|
| 156 |
+
};
|
| 157 |
+
},
|
| 158 |
+
};
|
| 159 |
+
function worker(document, context, callback) {
|
| 160 |
+
const decoded = context.decodeEmbeddedDocumentUri(document.uri);
|
| 161 |
+
const sourceScript = decoded && context.language.scripts.get(decoded[0]);
|
| 162 |
+
const virtualCode = decoded && sourceScript?.generated?.embeddedCodes.get(decoded[1]);
|
| 163 |
+
if (virtualCode instanceof vue.VueVirtualCode) {
|
| 164 |
+
return callback(virtualCode);
|
| 165 |
+
}
|
| 166 |
+
}
|
| 167 |
+
}
|
| 168 |
+
exports.create = create;
|
| 169 |
+
//# sourceMappingURL=vue-sfc.js.map
|
Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/@vue/language-service/lib/plugins/vue-template.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
-
|
| 2 |
-
|
| 3 |
-
|
|
|
|
| 1 |
+
import type { ServiceContext, ServiceEnvironment } from '@volar/language-service';
|
| 2 |
+
import { LanguageServicePlugin, VueCompilerOptions } from '../types';
|
| 3 |
+
export declare function create(mode: 'html' | 'pug', ts: typeof import('typescript'), getVueOptions: (env: ServiceEnvironment) => VueCompilerOptions, getTsPluginClient?: (context: ServiceContext) => typeof import('@vue/typescript-plugin/lib/client') | undefined): LanguageServicePlugin;
|
Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/@vue/language-service/lib/plugins/vue-template.js
CHANGED
|
@@ -1,3 +1,691 @@
|
|
| 1 |
-
|
| 2 |
-
|
| 3 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"use strict";
|
| 2 |
+
Object.defineProperty(exports, "__esModule", { value: true });
|
| 3 |
+
exports.create = void 0;
|
| 4 |
+
const language_core_1 = require("@vue/language-core");
|
| 5 |
+
const shared_1 = require("@vue/shared");
|
| 6 |
+
const volar_service_html_1 = require("volar-service-html");
|
| 7 |
+
const volar_service_pug_1 = require("volar-service-pug");
|
| 8 |
+
const html = require("vscode-html-languageservice");
|
| 9 |
+
const nameCasing_1 = require("../ideFeatures/nameCasing");
|
| 10 |
+
const types_1 = require("../types");
|
| 11 |
+
const data_1 = require("./data");
|
| 12 |
+
const vscode_uri_1 = require("vscode-uri");
|
| 13 |
+
const common_1 = require("@vue/typescript-plugin/lib/common");
|
| 14 |
+
let builtInData;
|
| 15 |
+
let modelData;
|
| 16 |
+
function create(mode, ts, getVueOptions, getTsPluginClient) {
|
| 17 |
+
let customData = [];
|
| 18 |
+
let extraCustomData = [];
|
| 19 |
+
let lastCompletionComponentNames = new Set();
|
| 20 |
+
const onDidChangeCustomDataListeners = new Set();
|
| 21 |
+
const onDidChangeCustomData = (listener) => {
|
| 22 |
+
onDidChangeCustomDataListeners.add(listener);
|
| 23 |
+
return {
|
| 24 |
+
dispose() {
|
| 25 |
+
onDidChangeCustomDataListeners.delete(listener);
|
| 26 |
+
},
|
| 27 |
+
};
|
| 28 |
+
};
|
| 29 |
+
const baseService = mode === 'pug'
|
| 30 |
+
? (0, volar_service_pug_1.create)({
|
| 31 |
+
getCustomData() {
|
| 32 |
+
return [
|
| 33 |
+
...customData,
|
| 34 |
+
...extraCustomData,
|
| 35 |
+
];
|
| 36 |
+
},
|
| 37 |
+
onDidChangeCustomData,
|
| 38 |
+
})
|
| 39 |
+
: (0, volar_service_html_1.create)({
|
| 40 |
+
documentSelector: ['html', 'markdown'],
|
| 41 |
+
getCustomData() {
|
| 42 |
+
return [
|
| 43 |
+
...customData,
|
| 44 |
+
...extraCustomData,
|
| 45 |
+
];
|
| 46 |
+
},
|
| 47 |
+
onDidChangeCustomData,
|
| 48 |
+
});
|
| 49 |
+
return {
|
| 50 |
+
name: `vue-template (${mode})`,
|
| 51 |
+
triggerCharacters: [
|
| 52 |
+
...baseService.triggerCharacters ?? [],
|
| 53 |
+
'@', // vue event shorthand
|
| 54 |
+
],
|
| 55 |
+
create(context) {
|
| 56 |
+
const tsPluginClient = getTsPluginClient?.(context);
|
| 57 |
+
const baseServiceInstance = baseService.create(context);
|
| 58 |
+
const vueCompilerOptions = getVueOptions(context.env);
|
| 59 |
+
builtInData ??= (0, data_1.loadTemplateData)(context.env.locale ?? 'en');
|
| 60 |
+
modelData ??= (0, data_1.loadModelModifiersData)(context.env.locale ?? 'en');
|
| 61 |
+
// https://vuejs.org/api/built-in-directives.html#v-on
|
| 62 |
+
// https://vuejs.org/api/built-in-directives.html#v-bind
|
| 63 |
+
const eventModifiers = {};
|
| 64 |
+
const propModifiers = {};
|
| 65 |
+
const vOn = builtInData.globalAttributes?.find(x => x.name === 'v-on');
|
| 66 |
+
const vBind = builtInData.globalAttributes?.find(x => x.name === 'v-bind');
|
| 67 |
+
if (vOn) {
|
| 68 |
+
const markdown = (typeof vOn.description === 'string' ? vOn.description : vOn.description?.value) ?? '';
|
| 69 |
+
const modifiers = markdown
|
| 70 |
+
.split('\n- ')[4]
|
| 71 |
+
.split('\n').slice(2, -1);
|
| 72 |
+
for (let text of modifiers) {
|
| 73 |
+
text = text.substring(' - `.'.length);
|
| 74 |
+
const [name, disc] = text.split('` - ');
|
| 75 |
+
eventModifiers[name] = disc;
|
| 76 |
+
}
|
| 77 |
+
}
|
| 78 |
+
if (vBind) {
|
| 79 |
+
const markdown = (typeof vBind.description === 'string' ? vBind.description : vBind.description?.value) ?? '';
|
| 80 |
+
const modifiers = markdown
|
| 81 |
+
.split('\n- ')[4]
|
| 82 |
+
.split('\n').slice(2, -1);
|
| 83 |
+
for (let text of modifiers) {
|
| 84 |
+
text = text.substring(' - `.'.length);
|
| 85 |
+
const [name, disc] = text.split('` - ');
|
| 86 |
+
propModifiers[name] = disc;
|
| 87 |
+
}
|
| 88 |
+
}
|
| 89 |
+
const disposable = context.env.onDidChangeConfiguration?.(() => initializing = undefined);
|
| 90 |
+
let initializing;
|
| 91 |
+
return {
|
| 92 |
+
...baseServiceInstance,
|
| 93 |
+
dispose() {
|
| 94 |
+
baseServiceInstance.dispose?.();
|
| 95 |
+
disposable?.dispose();
|
| 96 |
+
},
|
| 97 |
+
async provideCompletionItems(document, position, completionContext, token) {
|
| 98 |
+
if (!isSupportedDocument(document)) {
|
| 99 |
+
return;
|
| 100 |
+
}
|
| 101 |
+
let sync;
|
| 102 |
+
let currentVersion;
|
| 103 |
+
const decoded = context.decodeEmbeddedDocumentUri(document.uri);
|
| 104 |
+
const sourceScript = decoded && context.language.scripts.get(decoded[0]);
|
| 105 |
+
if (sourceScript?.generated?.root instanceof language_core_1.VueVirtualCode) {
|
| 106 |
+
// #4298: Precompute HTMLDocument before provideHtmlData to avoid parseHTMLDocument requesting component names from tsserver
|
| 107 |
+
baseServiceInstance.provideCompletionItems?.(document, position, completionContext, token);
|
| 108 |
+
sync = (await provideHtmlData(sourceScript.id, sourceScript.generated.root)).sync;
|
| 109 |
+
currentVersion = await sync();
|
| 110 |
+
}
|
| 111 |
+
let htmlComplete = await baseServiceInstance.provideCompletionItems?.(document, position, completionContext, token);
|
| 112 |
+
while (currentVersion !== (currentVersion = await sync?.())) {
|
| 113 |
+
htmlComplete = await baseServiceInstance.provideCompletionItems?.(document, position, completionContext, token);
|
| 114 |
+
}
|
| 115 |
+
if (!htmlComplete) {
|
| 116 |
+
return;
|
| 117 |
+
}
|
| 118 |
+
if (sourceScript?.generated?.root instanceof language_core_1.VueVirtualCode) {
|
| 119 |
+
await afterHtmlCompletion(htmlComplete, context.documents.get(sourceScript.id, sourceScript.languageId, sourceScript.snapshot));
|
| 120 |
+
}
|
| 121 |
+
return htmlComplete;
|
| 122 |
+
},
|
| 123 |
+
async provideInlayHints(document) {
|
| 124 |
+
if (!isSupportedDocument(document)) {
|
| 125 |
+
return;
|
| 126 |
+
}
|
| 127 |
+
const enabled = await context.env.getConfiguration?.('vue.inlayHints.missingProps') ?? false;
|
| 128 |
+
if (!enabled) {
|
| 129 |
+
return;
|
| 130 |
+
}
|
| 131 |
+
const result = [];
|
| 132 |
+
const decoded = context.decodeEmbeddedDocumentUri(document.uri);
|
| 133 |
+
const sourceScript = decoded && context.language.scripts.get(decoded[0]);
|
| 134 |
+
const virtualCode = decoded && sourceScript?.generated?.embeddedCodes.get(decoded[1]);
|
| 135 |
+
if (!virtualCode) {
|
| 136 |
+
return;
|
| 137 |
+
}
|
| 138 |
+
for (const map of context.documents.getMaps(virtualCode)) {
|
| 139 |
+
const code = context.language.scripts.get(map.sourceDocument.uri)?.generated?.root;
|
| 140 |
+
const scanner = getScanner(baseServiceInstance, document);
|
| 141 |
+
if (code instanceof language_core_1.VueVirtualCode && scanner) {
|
| 142 |
+
// visualize missing required props
|
| 143 |
+
const casing = await (0, nameCasing_1.getNameCasing)(context, map.sourceDocument.uri);
|
| 144 |
+
const components = await tsPluginClient?.getComponentNames(code.fileName) ?? [];
|
| 145 |
+
const componentProps = {};
|
| 146 |
+
let token;
|
| 147 |
+
let current;
|
| 148 |
+
while ((token = scanner.scan()) !== html.TokenType.EOS) {
|
| 149 |
+
if (token === html.TokenType.StartTag) {
|
| 150 |
+
const tagName = scanner.getTokenText();
|
| 151 |
+
const checkTag = tagName.indexOf('.') >= 0
|
| 152 |
+
? tagName
|
| 153 |
+
: components.find(component => component === tagName || (0, language_core_1.hyphenateTag)(component) === tagName);
|
| 154 |
+
if (checkTag) {
|
| 155 |
+
componentProps[checkTag] ??= await tsPluginClient?.getComponentProps(code.fileName, checkTag, true) ?? [];
|
| 156 |
+
current = {
|
| 157 |
+
unburnedRequiredProps: [...componentProps[checkTag]],
|
| 158 |
+
labelOffset: scanner.getTokenOffset() + scanner.getTokenLength(),
|
| 159 |
+
insertOffset: scanner.getTokenOffset() + scanner.getTokenLength(),
|
| 160 |
+
};
|
| 161 |
+
}
|
| 162 |
+
}
|
| 163 |
+
else if (token === html.TokenType.AttributeName) {
|
| 164 |
+
if (current) {
|
| 165 |
+
let attrText = scanner.getTokenText();
|
| 166 |
+
if (attrText === 'v-bind') {
|
| 167 |
+
current.unburnedRequiredProps = [];
|
| 168 |
+
}
|
| 169 |
+
else {
|
| 170 |
+
// remove modifiers
|
| 171 |
+
if (attrText.indexOf('.') >= 0) {
|
| 172 |
+
attrText = attrText.split('.')[0];
|
| 173 |
+
}
|
| 174 |
+
// normalize
|
| 175 |
+
if (attrText.startsWith('v-bind:')) {
|
| 176 |
+
attrText = attrText.substring('v-bind:'.length);
|
| 177 |
+
}
|
| 178 |
+
else if (attrText.startsWith(':')) {
|
| 179 |
+
attrText = attrText.substring(':'.length);
|
| 180 |
+
}
|
| 181 |
+
else if (attrText.startsWith('v-model:')) {
|
| 182 |
+
attrText = attrText.substring('v-model:'.length);
|
| 183 |
+
}
|
| 184 |
+
else if (attrText === 'v-model') {
|
| 185 |
+
attrText = vueCompilerOptions.target >= 3 ? 'modelValue' : 'value'; // TODO: support for experimentalModelPropName?
|
| 186 |
+
}
|
| 187 |
+
else if (attrText.startsWith('@')) {
|
| 188 |
+
attrText = 'on-' + (0, language_core_1.hyphenateAttr)(attrText.substring('@'.length));
|
| 189 |
+
}
|
| 190 |
+
current.unburnedRequiredProps = current.unburnedRequiredProps.filter(propName => {
|
| 191 |
+
return attrText !== propName
|
| 192 |
+
&& attrText !== (0, language_core_1.hyphenateAttr)(propName);
|
| 193 |
+
});
|
| 194 |
+
}
|
| 195 |
+
}
|
| 196 |
+
}
|
| 197 |
+
else if (token === html.TokenType.StartTagSelfClose || token === html.TokenType.StartTagClose) {
|
| 198 |
+
if (current) {
|
| 199 |
+
for (const requiredProp of current.unburnedRequiredProps) {
|
| 200 |
+
result.push({
|
| 201 |
+
label: `${requiredProp}!`,
|
| 202 |
+
paddingLeft: true,
|
| 203 |
+
position: document.positionAt(current.labelOffset),
|
| 204 |
+
kind: 2,
|
| 205 |
+
textEdits: [{
|
| 206 |
+
range: {
|
| 207 |
+
start: document.positionAt(current.insertOffset),
|
| 208 |
+
end: document.positionAt(current.insertOffset),
|
| 209 |
+
},
|
| 210 |
+
newText: ` :${casing.attr === types_1.AttrNameCasing.Kebab ? (0, language_core_1.hyphenateAttr)(requiredProp) : requiredProp}=`,
|
| 211 |
+
}],
|
| 212 |
+
});
|
| 213 |
+
}
|
| 214 |
+
current = undefined;
|
| 215 |
+
}
|
| 216 |
+
}
|
| 217 |
+
if (token === html.TokenType.AttributeName || token === html.TokenType.AttributeValue) {
|
| 218 |
+
if (current) {
|
| 219 |
+
current.insertOffset = scanner.getTokenOffset() + scanner.getTokenLength();
|
| 220 |
+
}
|
| 221 |
+
}
|
| 222 |
+
}
|
| 223 |
+
}
|
| 224 |
+
}
|
| 225 |
+
return result;
|
| 226 |
+
},
|
| 227 |
+
provideHover(document, position, token) {
|
| 228 |
+
if (!isSupportedDocument(document)) {
|
| 229 |
+
return;
|
| 230 |
+
}
|
| 231 |
+
if (context.decodeEmbeddedDocumentUri(document.uri)) {
|
| 232 |
+
updateExtraCustomData([]);
|
| 233 |
+
}
|
| 234 |
+
return baseServiceInstance.provideHover?.(document, position, token);
|
| 235 |
+
},
|
| 236 |
+
async provideDiagnostics(document, token) {
|
| 237 |
+
if (!isSupportedDocument(document)) {
|
| 238 |
+
return;
|
| 239 |
+
}
|
| 240 |
+
const originalResult = await baseServiceInstance.provideDiagnostics?.(document, token);
|
| 241 |
+
const decoded = context.decodeEmbeddedDocumentUri(document.uri);
|
| 242 |
+
const sourceScript = decoded && context.language.scripts.get(decoded[0]);
|
| 243 |
+
const virtualCode = decoded && sourceScript?.generated?.embeddedCodes.get(decoded[1]);
|
| 244 |
+
if (!virtualCode) {
|
| 245 |
+
return;
|
| 246 |
+
}
|
| 247 |
+
for (const map of context.documents.getMaps(virtualCode)) {
|
| 248 |
+
const code = context.language.scripts.get(map.sourceDocument.uri)?.generated?.root;
|
| 249 |
+
if (!(code instanceof language_core_1.VueVirtualCode)) {
|
| 250 |
+
continue;
|
| 251 |
+
}
|
| 252 |
+
const templateErrors = [];
|
| 253 |
+
const { template } = code.sfc;
|
| 254 |
+
if (template) {
|
| 255 |
+
for (const error of template.errors) {
|
| 256 |
+
onCompilerError(error, 1);
|
| 257 |
+
}
|
| 258 |
+
for (const warning of template.warnings) {
|
| 259 |
+
onCompilerError(warning, 2);
|
| 260 |
+
}
|
| 261 |
+
function onCompilerError(error, severity) {
|
| 262 |
+
const templateHtmlRange = {
|
| 263 |
+
start: error.loc?.start.offset ?? 0,
|
| 264 |
+
end: error.loc?.end.offset ?? 0,
|
| 265 |
+
};
|
| 266 |
+
let errorMessage = error.message;
|
| 267 |
+
templateErrors.push({
|
| 268 |
+
range: {
|
| 269 |
+
start: document.positionAt(templateHtmlRange.start),
|
| 270 |
+
end: document.positionAt(templateHtmlRange.end),
|
| 271 |
+
},
|
| 272 |
+
severity,
|
| 273 |
+
code: error.code,
|
| 274 |
+
source: 'vue',
|
| 275 |
+
message: errorMessage,
|
| 276 |
+
});
|
| 277 |
+
}
|
| 278 |
+
}
|
| 279 |
+
return [
|
| 280 |
+
...originalResult ?? [],
|
| 281 |
+
...templateErrors,
|
| 282 |
+
];
|
| 283 |
+
}
|
| 284 |
+
},
|
| 285 |
+
provideDocumentSemanticTokens(document, range, legend) {
|
| 286 |
+
if (!isSupportedDocument(document)) {
|
| 287 |
+
return;
|
| 288 |
+
}
|
| 289 |
+
const languageService = context.inject('typescript/languageService');
|
| 290 |
+
if (!languageService) {
|
| 291 |
+
return;
|
| 292 |
+
}
|
| 293 |
+
const decoded = context.decodeEmbeddedDocumentUri(document.uri);
|
| 294 |
+
const sourceScript = decoded && context.language.scripts.get(decoded[0]);
|
| 295 |
+
if (!sourceScript
|
| 296 |
+
|| !(sourceScript.generated?.root instanceof language_core_1.VueVirtualCode)
|
| 297 |
+
|| !sourceScript.generated.root.sfc.template) {
|
| 298 |
+
return [];
|
| 299 |
+
}
|
| 300 |
+
const { template } = sourceScript.generated.root.sfc;
|
| 301 |
+
const spans = common_1.getComponentSpans.call({
|
| 302 |
+
files: context.language.scripts,
|
| 303 |
+
languageService,
|
| 304 |
+
typescript: ts,
|
| 305 |
+
vueOptions: getVueOptions(context.env),
|
| 306 |
+
}, sourceScript.generated.root, template, {
|
| 307 |
+
start: document.offsetAt(range.start),
|
| 308 |
+
length: document.offsetAt(range.end) - document.offsetAt(range.start),
|
| 309 |
+
});
|
| 310 |
+
const classTokenIndex = legend.tokenTypes.indexOf('class');
|
| 311 |
+
return spans.map(span => {
|
| 312 |
+
const start = document.positionAt(span.start);
|
| 313 |
+
return [
|
| 314 |
+
start.line,
|
| 315 |
+
start.character,
|
| 316 |
+
span.length,
|
| 317 |
+
classTokenIndex,
|
| 318 |
+
0,
|
| 319 |
+
];
|
| 320 |
+
});
|
| 321 |
+
},
|
| 322 |
+
};
|
| 323 |
+
async function provideHtmlData(sourceDocumentUri, vueCode) {
|
| 324 |
+
await (initializing ??= initialize());
|
| 325 |
+
const casing = await (0, nameCasing_1.getNameCasing)(context, sourceDocumentUri);
|
| 326 |
+
if (builtInData.tags) {
|
| 327 |
+
for (const tag of builtInData.tags) {
|
| 328 |
+
if (tag.name === 'slot') {
|
| 329 |
+
continue;
|
| 330 |
+
}
|
| 331 |
+
if (tag.name === 'component') {
|
| 332 |
+
continue;
|
| 333 |
+
}
|
| 334 |
+
if (tag.name === 'template') {
|
| 335 |
+
continue;
|
| 336 |
+
}
|
| 337 |
+
if (casing.tag === types_1.TagNameCasing.Kebab) {
|
| 338 |
+
tag.name = (0, language_core_1.hyphenateTag)(tag.name);
|
| 339 |
+
}
|
| 340 |
+
else {
|
| 341 |
+
tag.name = (0, shared_1.camelize)((0, shared_1.capitalize)(tag.name));
|
| 342 |
+
}
|
| 343 |
+
}
|
| 344 |
+
}
|
| 345 |
+
const promises = [];
|
| 346 |
+
const tagInfos = new Map();
|
| 347 |
+
let version = 0;
|
| 348 |
+
let components;
|
| 349 |
+
let templateContextProps;
|
| 350 |
+
updateExtraCustomData([
|
| 351 |
+
html.newHTMLDataProvider('vue-template-built-in', builtInData),
|
| 352 |
+
{
|
| 353 |
+
getId: () => 'vue-template',
|
| 354 |
+
isApplicable: () => true,
|
| 355 |
+
provideTags: () => {
|
| 356 |
+
if (!components) {
|
| 357 |
+
promises.push((async () => {
|
| 358 |
+
components = (await tsPluginClient?.getComponentNames(vueCode.fileName) ?? [])
|
| 359 |
+
.filter(name => name !== 'Transition'
|
| 360 |
+
&& name !== 'TransitionGroup'
|
| 361 |
+
&& name !== 'KeepAlive'
|
| 362 |
+
&& name !== 'Suspense'
|
| 363 |
+
&& name !== 'Teleport');
|
| 364 |
+
lastCompletionComponentNames = new Set(components);
|
| 365 |
+
version++;
|
| 366 |
+
})());
|
| 367 |
+
return [];
|
| 368 |
+
}
|
| 369 |
+
const scriptSetupRanges = vueCode.sfc.scriptSetup ? (0, language_core_1.parseScriptSetupRanges)(ts, vueCode.sfc.scriptSetup.ast, vueCompilerOptions) : undefined;
|
| 370 |
+
const names = new Set();
|
| 371 |
+
const tags = [];
|
| 372 |
+
for (const tag of components) {
|
| 373 |
+
if (casing.tag === types_1.TagNameCasing.Kebab) {
|
| 374 |
+
names.add((0, language_core_1.hyphenateTag)(tag));
|
| 375 |
+
}
|
| 376 |
+
else if (casing.tag === types_1.TagNameCasing.Pascal) {
|
| 377 |
+
names.add(tag);
|
| 378 |
+
}
|
| 379 |
+
}
|
| 380 |
+
for (const binding of scriptSetupRanges?.bindings ?? []) {
|
| 381 |
+
const name = vueCode.sfc.scriptSetup.content.substring(binding.start, binding.end);
|
| 382 |
+
if (casing.tag === types_1.TagNameCasing.Kebab) {
|
| 383 |
+
names.add((0, language_core_1.hyphenateTag)(name));
|
| 384 |
+
}
|
| 385 |
+
else if (casing.tag === types_1.TagNameCasing.Pascal) {
|
| 386 |
+
names.add(name);
|
| 387 |
+
}
|
| 388 |
+
}
|
| 389 |
+
for (const name of names) {
|
| 390 |
+
tags.push({
|
| 391 |
+
name: name,
|
| 392 |
+
attributes: [],
|
| 393 |
+
});
|
| 394 |
+
}
|
| 395 |
+
return tags;
|
| 396 |
+
},
|
| 397 |
+
provideAttributes: tag => {
|
| 398 |
+
const tagInfo = tagInfos.get(tag);
|
| 399 |
+
if (!tagInfo) {
|
| 400 |
+
promises.push((async () => {
|
| 401 |
+
const attrs = await tsPluginClient?.getElementAttrs(vueCode.fileName, tag) ?? [];
|
| 402 |
+
const props = await tsPluginClient?.getComponentProps(vueCode.fileName, tag) ?? [];
|
| 403 |
+
const events = await tsPluginClient?.getComponentEvents(vueCode.fileName, tag) ?? [];
|
| 404 |
+
tagInfos.set(tag, {
|
| 405 |
+
attrs,
|
| 406 |
+
props,
|
| 407 |
+
events,
|
| 408 |
+
});
|
| 409 |
+
version++;
|
| 410 |
+
})());
|
| 411 |
+
return [];
|
| 412 |
+
}
|
| 413 |
+
const { attrs, props, events } = tagInfo;
|
| 414 |
+
const attributes = [];
|
| 415 |
+
const _tsCodegen = language_core_1.tsCodegen.get(vueCode.sfc);
|
| 416 |
+
if (_tsCodegen) {
|
| 417 |
+
if (!templateContextProps) {
|
| 418 |
+
promises.push((async () => {
|
| 419 |
+
templateContextProps = await tsPluginClient?.getTemplateContextProps(vueCode.fileName) ?? [];
|
| 420 |
+
version++;
|
| 421 |
+
})());
|
| 422 |
+
return [];
|
| 423 |
+
}
|
| 424 |
+
let ctxVars = [
|
| 425 |
+
..._tsCodegen.scriptRanges()?.bindings.map(binding => vueCode.sfc.script.content.substring(binding.start, binding.end)) ?? [],
|
| 426 |
+
..._tsCodegen.scriptSetupRanges()?.bindings.map(binding => vueCode.sfc.scriptSetup.content.substring(binding.start, binding.end)) ?? [],
|
| 427 |
+
...templateContextProps,
|
| 428 |
+
];
|
| 429 |
+
ctxVars = [...new Set(ctxVars)];
|
| 430 |
+
const dirs = ctxVars.map(language_core_1.hyphenateAttr).filter(v => v.startsWith('v-'));
|
| 431 |
+
for (const dir of dirs) {
|
| 432 |
+
attributes.push({
|
| 433 |
+
name: dir,
|
| 434 |
+
});
|
| 435 |
+
}
|
| 436 |
+
}
|
| 437 |
+
const propsSet = new Set(props);
|
| 438 |
+
for (const prop of [...props, ...attrs]) {
|
| 439 |
+
const isGlobal = !propsSet.has(prop);
|
| 440 |
+
const name = casing.attr === types_1.AttrNameCasing.Camel ? prop : (0, language_core_1.hyphenateAttr)(prop);
|
| 441 |
+
if ((0, language_core_1.hyphenateAttr)(name).startsWith('on-')) {
|
| 442 |
+
const propNameBase = name.startsWith('on-')
|
| 443 |
+
? name.slice('on-'.length)
|
| 444 |
+
: (name['on'.length].toLowerCase() + name.slice('onX'.length));
|
| 445 |
+
const propKey = createInternalItemId('componentEvent', [isGlobal ? '*' : tag, propNameBase]);
|
| 446 |
+
attributes.push({
|
| 447 |
+
name: 'v-on:' + propNameBase,
|
| 448 |
+
description: propKey,
|
| 449 |
+
}, {
|
| 450 |
+
name: '@' + propNameBase,
|
| 451 |
+
description: propKey,
|
| 452 |
+
});
|
| 453 |
+
}
|
| 454 |
+
{
|
| 455 |
+
const propName = name;
|
| 456 |
+
const propKey = createInternalItemId('componentProp', [isGlobal ? '*' : tag, propName]);
|
| 457 |
+
attributes.push({
|
| 458 |
+
name: propName,
|
| 459 |
+
description: propKey,
|
| 460 |
+
}, {
|
| 461 |
+
name: ':' + propName,
|
| 462 |
+
description: propKey,
|
| 463 |
+
}, {
|
| 464 |
+
name: 'v-bind:' + propName,
|
| 465 |
+
description: propKey,
|
| 466 |
+
});
|
| 467 |
+
}
|
| 468 |
+
}
|
| 469 |
+
for (const event of events) {
|
| 470 |
+
const name = casing.attr === types_1.AttrNameCasing.Camel ? event : (0, language_core_1.hyphenateAttr)(event);
|
| 471 |
+
const propKey = createInternalItemId('componentEvent', [tag, name]);
|
| 472 |
+
attributes.push({
|
| 473 |
+
name: 'v-on:' + name,
|
| 474 |
+
description: propKey,
|
| 475 |
+
});
|
| 476 |
+
attributes.push({
|
| 477 |
+
name: '@' + name,
|
| 478 |
+
description: propKey,
|
| 479 |
+
});
|
| 480 |
+
}
|
| 481 |
+
const models = [];
|
| 482 |
+
for (const prop of [...props, ...attrs]) {
|
| 483 |
+
if (prop.startsWith('onUpdate:')) {
|
| 484 |
+
const isGlobal = !propsSet.has(prop);
|
| 485 |
+
models.push([isGlobal, prop.substring('onUpdate:'.length)]);
|
| 486 |
+
}
|
| 487 |
+
}
|
| 488 |
+
for (const event of events) {
|
| 489 |
+
if (event.startsWith('update:')) {
|
| 490 |
+
models.push([false, event.substring('update:'.length)]);
|
| 491 |
+
}
|
| 492 |
+
}
|
| 493 |
+
for (const [isGlobal, model] of models) {
|
| 494 |
+
const name = casing.attr === types_1.AttrNameCasing.Camel ? model : (0, language_core_1.hyphenateAttr)(model);
|
| 495 |
+
const propKey = createInternalItemId('componentProp', [isGlobal ? '*' : tag, name]);
|
| 496 |
+
attributes.push({
|
| 497 |
+
name: 'v-model:' + name,
|
| 498 |
+
description: propKey,
|
| 499 |
+
});
|
| 500 |
+
if (model === 'modelValue') {
|
| 501 |
+
attributes.push({
|
| 502 |
+
name: 'v-model',
|
| 503 |
+
description: propKey,
|
| 504 |
+
});
|
| 505 |
+
}
|
| 506 |
+
}
|
| 507 |
+
return attributes;
|
| 508 |
+
},
|
| 509 |
+
provideValues: () => [],
|
| 510 |
+
},
|
| 511 |
+
]);
|
| 512 |
+
return {
|
| 513 |
+
async sync() {
|
| 514 |
+
await Promise.all(promises);
|
| 515 |
+
return version;
|
| 516 |
+
}
|
| 517 |
+
};
|
| 518 |
+
}
|
| 519 |
+
async function afterHtmlCompletion(completionList, sourceDocument) {
|
| 520 |
+
const replacement = getReplacement(completionList, sourceDocument);
|
| 521 |
+
if (replacement) {
|
| 522 |
+
const isEvent = replacement.text.startsWith('v-on:') || replacement.text.startsWith('@');
|
| 523 |
+
const isProp = replacement.text.startsWith('v-bind:') || replacement.text.startsWith(':');
|
| 524 |
+
const isModel = replacement.text.startsWith('v-model:') || replacement.text.split('.')[0] === 'v-model';
|
| 525 |
+
const hasModifier = replacement.text.includes('.');
|
| 526 |
+
const validModifiers = isEvent ? eventModifiers
|
| 527 |
+
: isProp ? propModifiers
|
| 528 |
+
: undefined;
|
| 529 |
+
const modifiers = replacement.text.split('.').slice(1);
|
| 530 |
+
const textWithoutModifier = replacement.text.split('.')[0];
|
| 531 |
+
if (validModifiers && hasModifier) {
|
| 532 |
+
for (const modifier in validModifiers) {
|
| 533 |
+
if (modifiers.includes(modifier)) {
|
| 534 |
+
continue;
|
| 535 |
+
}
|
| 536 |
+
const modifierDes = validModifiers[modifier];
|
| 537 |
+
const insertText = textWithoutModifier + modifiers.slice(0, -1).map(m => '.' + m).join('') + '.' + modifier;
|
| 538 |
+
const newItem = {
|
| 539 |
+
label: modifier,
|
| 540 |
+
filterText: insertText,
|
| 541 |
+
documentation: {
|
| 542 |
+
kind: 'markdown',
|
| 543 |
+
value: modifierDes,
|
| 544 |
+
},
|
| 545 |
+
textEdit: {
|
| 546 |
+
range: replacement.textEdit.range,
|
| 547 |
+
newText: insertText,
|
| 548 |
+
},
|
| 549 |
+
kind: 20,
|
| 550 |
+
};
|
| 551 |
+
completionList.items.push(newItem);
|
| 552 |
+
}
|
| 553 |
+
}
|
| 554 |
+
else if (hasModifier && isModel) {
|
| 555 |
+
for (const modifier of modelData.globalAttributes ?? []) {
|
| 556 |
+
if (modifiers.includes(modifier.name)) {
|
| 557 |
+
continue;
|
| 558 |
+
}
|
| 559 |
+
const insertText = textWithoutModifier + modifiers.slice(0, -1).map(m => '.' + m).join('') + '.' + modifier.name;
|
| 560 |
+
const newItem = {
|
| 561 |
+
label: modifier.name,
|
| 562 |
+
filterText: insertText,
|
| 563 |
+
documentation: {
|
| 564 |
+
kind: 'markdown',
|
| 565 |
+
value: (typeof modifier.description === 'object' ? modifier.description.value : modifier.description)
|
| 566 |
+
+ '\n\n' + modifier.references?.map(ref => `[${ref.name}](${ref.url})`).join(' | '),
|
| 567 |
+
},
|
| 568 |
+
textEdit: {
|
| 569 |
+
range: replacement.textEdit.range,
|
| 570 |
+
newText: insertText,
|
| 571 |
+
},
|
| 572 |
+
kind: 20,
|
| 573 |
+
};
|
| 574 |
+
completionList.items.push(newItem);
|
| 575 |
+
}
|
| 576 |
+
}
|
| 577 |
+
}
|
| 578 |
+
for (const item of completionList.items) {
|
| 579 |
+
const itemIdKey = typeof item.documentation === 'string' ? item.documentation : item.documentation?.value;
|
| 580 |
+
const itemId = itemIdKey ? readInternalItemId(itemIdKey) : undefined;
|
| 581 |
+
if (itemId) {
|
| 582 |
+
item.documentation = undefined;
|
| 583 |
+
}
|
| 584 |
+
if (item.kind === 10 && lastCompletionComponentNames.has((0, language_core_1.hyphenateTag)(item.label))) {
|
| 585 |
+
item.kind = 6;
|
| 586 |
+
item.sortText = '\u0000' + (item.sortText ?? item.label);
|
| 587 |
+
}
|
| 588 |
+
else if (itemId && (itemId.type === 'componentProp' || itemId.type === 'componentEvent')) {
|
| 589 |
+
const [componentName] = itemId.args;
|
| 590 |
+
if (componentName !== '*') {
|
| 591 |
+
item.sortText = '\u0000' + (item.sortText ?? item.label);
|
| 592 |
+
}
|
| 593 |
+
if (itemId.type === 'componentProp') {
|
| 594 |
+
if (componentName !== '*') {
|
| 595 |
+
item.kind = 5;
|
| 596 |
+
}
|
| 597 |
+
}
|
| 598 |
+
else {
|
| 599 |
+
item.kind = componentName !== '*' ? 3 : 23;
|
| 600 |
+
}
|
| 601 |
+
}
|
| 602 |
+
else if (item.label === 'v-if'
|
| 603 |
+
|| item.label === 'v-else-if'
|
| 604 |
+
|| item.label === 'v-else'
|
| 605 |
+
|| item.label === 'v-for') {
|
| 606 |
+
item.kind = 14;
|
| 607 |
+
item.sortText = '\u0003' + (item.sortText ?? item.label);
|
| 608 |
+
}
|
| 609 |
+
else if (item.label.startsWith('v-')) {
|
| 610 |
+
item.kind = 3;
|
| 611 |
+
item.sortText = '\u0002' + (item.sortText ?? item.label);
|
| 612 |
+
}
|
| 613 |
+
else {
|
| 614 |
+
item.sortText = '\u0001' + (item.sortText ?? item.label);
|
| 615 |
+
}
|
| 616 |
+
}
|
| 617 |
+
updateExtraCustomData([]);
|
| 618 |
+
}
|
| 619 |
+
async function initialize() {
|
| 620 |
+
customData = await getHtmlCustomData();
|
| 621 |
+
}
|
| 622 |
+
async function getHtmlCustomData() {
|
| 623 |
+
const customData = await context.env.getConfiguration?.('html.customData') ?? [];
|
| 624 |
+
const newData = [];
|
| 625 |
+
for (const customDataPath of customData) {
|
| 626 |
+
const uri = vscode_uri_1.Utils.resolvePath(vscode_uri_1.URI.parse(context.env.workspaceFolder), customDataPath);
|
| 627 |
+
const json = await context.env.fs?.readFile?.(uri.toString());
|
| 628 |
+
if (json) {
|
| 629 |
+
try {
|
| 630 |
+
const data = JSON.parse(json);
|
| 631 |
+
newData.push(html.newHTMLDataProvider(customDataPath, data));
|
| 632 |
+
}
|
| 633 |
+
catch (error) {
|
| 634 |
+
console.error(error);
|
| 635 |
+
}
|
| 636 |
+
}
|
| 637 |
+
}
|
| 638 |
+
return newData;
|
| 639 |
+
}
|
| 640 |
+
},
|
| 641 |
+
};
|
| 642 |
+
function getScanner(service, document) {
|
| 643 |
+
if (mode === 'html') {
|
| 644 |
+
return service.provide['html/languageService']().createScanner(document.getText());
|
| 645 |
+
}
|
| 646 |
+
else {
|
| 647 |
+
const pugDocument = service.provide['pug/pugDocument'](document);
|
| 648 |
+
if (pugDocument) {
|
| 649 |
+
return service.provide['pug/languageService']().createScanner(pugDocument);
|
| 650 |
+
}
|
| 651 |
+
}
|
| 652 |
+
}
|
| 653 |
+
function updateExtraCustomData(extraData) {
|
| 654 |
+
extraCustomData = extraData;
|
| 655 |
+
onDidChangeCustomDataListeners.forEach(l => l());
|
| 656 |
+
}
|
| 657 |
+
function isSupportedDocument(document) {
|
| 658 |
+
if (mode === 'pug') {
|
| 659 |
+
return document.languageId === 'jade';
|
| 660 |
+
}
|
| 661 |
+
else {
|
| 662 |
+
return document.languageId === 'html';
|
| 663 |
+
}
|
| 664 |
+
}
|
| 665 |
+
}
|
| 666 |
+
exports.create = create;
|
| 667 |
+
;
|
| 668 |
+
function createInternalItemId(type, args) {
|
| 669 |
+
return '__VLS_::' + type + '::' + args.join(',');
|
| 670 |
+
}
|
| 671 |
+
function readInternalItemId(key) {
|
| 672 |
+
if (key.startsWith('__VLS_::')) {
|
| 673 |
+
const strs = key.split('::');
|
| 674 |
+
return {
|
| 675 |
+
type: strs[1],
|
| 676 |
+
args: strs[2].split(','),
|
| 677 |
+
};
|
| 678 |
+
}
|
| 679 |
+
}
|
| 680 |
+
function getReplacement(list, doc) {
|
| 681 |
+
for (const item of list.items) {
|
| 682 |
+
if (item.textEdit && 'range' in item.textEdit) {
|
| 683 |
+
return {
|
| 684 |
+
item: item,
|
| 685 |
+
textEdit: item.textEdit,
|
| 686 |
+
text: doc.getText(item.textEdit.range)
|
| 687 |
+
};
|
| 688 |
+
}
|
| 689 |
+
}
|
| 690 |
+
}
|
| 691 |
+
//# sourceMappingURL=vue-template.js.map
|
Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/@vue/language-service/lib/plugins/vue-toggle-v-bind-codeaction.d.ts
CHANGED
|
@@ -1,3 +1,2 @@
|
|
| 1 |
-
|
| 2 |
-
|
| 3 |
-
size 158
|
|
|
|
| 1 |
+
import type { LanguageServicePlugin } from '@volar/language-service';
|
| 2 |
+
export declare function create(ts: typeof import('typescript')): LanguageServicePlugin;
|
|
|
Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/@vue/language-service/lib/plugins/vue-toggle-v-bind-codeaction.js
CHANGED
|
@@ -1,3 +1,129 @@
|
|
| 1 |
-
|
| 2 |
-
|
| 3 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"use strict";
|
| 2 |
+
Object.defineProperty(exports, "__esModule", { value: true });
|
| 3 |
+
exports.create = void 0;
|
| 4 |
+
const language_core_1 = require("@vue/language-core");
|
| 5 |
+
function create(ts) {
|
| 6 |
+
return {
|
| 7 |
+
name: 'vue-toggle-v-bind-codeaction',
|
| 8 |
+
create(context) {
|
| 9 |
+
return {
|
| 10 |
+
provideCodeActions(document, range, _context) {
|
| 11 |
+
const startOffset = document.offsetAt(range.start);
|
| 12 |
+
const endOffset = document.offsetAt(range.end);
|
| 13 |
+
const decoded = context.decodeEmbeddedDocumentUri(document.uri);
|
| 14 |
+
const sourceScript = decoded && context.language.scripts.get(decoded[0]);
|
| 15 |
+
const virtualCode = decoded && sourceScript?.generated?.embeddedCodes.get(decoded[1]);
|
| 16 |
+
if (!(virtualCode instanceof language_core_1.VueVirtualCode)) {
|
| 17 |
+
return;
|
| 18 |
+
}
|
| 19 |
+
const { template } = virtualCode.sfc;
|
| 20 |
+
if (!template?.ast) {
|
| 21 |
+
return;
|
| 22 |
+
}
|
| 23 |
+
const templateStartOffset = template.startTagEnd;
|
| 24 |
+
const result = [];
|
| 25 |
+
for (const node of (0, language_core_1.forEachElementNode)(template.ast)) {
|
| 26 |
+
if (startOffset > templateStartOffset + node.loc.end.offset || endOffset < templateStartOffset + node.loc.start.offset) {
|
| 27 |
+
return;
|
| 28 |
+
}
|
| 29 |
+
for (const prop of node.props) {
|
| 30 |
+
if (startOffset - templateStartOffset >= prop.loc.start.offset
|
| 31 |
+
&& endOffset - templateStartOffset <= prop.loc.end.offset) {
|
| 32 |
+
if (prop.type === 7 && prop.exp) {
|
| 33 |
+
const sourceFile = ts.createSourceFile('/a.ts', prop.exp.loc.source, ts.ScriptTarget.Latest, true);
|
| 34 |
+
const firstStatement = sourceFile.statements[0];
|
| 35 |
+
if (sourceFile.statements.length === 1 && ts.isExpressionStatement(firstStatement) && ts.isStringLiteralLike(firstStatement.expression)) {
|
| 36 |
+
const stringNode = sourceFile.statements[0];
|
| 37 |
+
const removeTextRanges = [
|
| 38 |
+
[prop.loc.start.offset, prop.loc.start.offset + 1],
|
| 39 |
+
// Work correctly with trivias for cases like <input :type=" 'password' " />
|
| 40 |
+
[prop.exp.loc.start.offset, prop.exp.loc.start.offset + stringNode.pos + stringNode.getLeadingTriviaWidth() + 1],
|
| 41 |
+
[prop.exp.loc.start.offset + stringNode.end - 1, prop.exp.loc.end.offset],
|
| 42 |
+
];
|
| 43 |
+
result.push({
|
| 44 |
+
title: 'Remove v-bind from attribute',
|
| 45 |
+
kind: 'refactor.rewrite.removeVBind',
|
| 46 |
+
edit: {
|
| 47 |
+
changes: {
|
| 48 |
+
[document.uri]: removeTextRanges.map(range => ({
|
| 49 |
+
newText: '',
|
| 50 |
+
range: {
|
| 51 |
+
start: document.positionAt(templateStartOffset + range[0]),
|
| 52 |
+
end: document.positionAt(templateStartOffset + range[1]),
|
| 53 |
+
}
|
| 54 |
+
}))
|
| 55 |
+
},
|
| 56 |
+
},
|
| 57 |
+
});
|
| 58 |
+
}
|
| 59 |
+
}
|
| 60 |
+
if (prop.type === 6) {
|
| 61 |
+
const edits = [];
|
| 62 |
+
const addVBindPos = document.positionAt(templateStartOffset + prop.loc.start.offset);
|
| 63 |
+
edits.push({
|
| 64 |
+
newText: ':',
|
| 65 |
+
range: {
|
| 66 |
+
start: addVBindPos,
|
| 67 |
+
end: addVBindPos,
|
| 68 |
+
},
|
| 69 |
+
});
|
| 70 |
+
let newPosition;
|
| 71 |
+
if (prop.value) {
|
| 72 |
+
const valueStart = document.positionAt(templateStartOffset + prop.value.loc.start.offset);
|
| 73 |
+
const valueEnd = document.positionAt(templateStartOffset + prop.value.loc.end.offset);
|
| 74 |
+
if (prop.value.loc.end.offset - prop.value.loc.start.offset !== prop.value.content.length) {
|
| 75 |
+
valueStart.character++;
|
| 76 |
+
valueEnd.character--;
|
| 77 |
+
}
|
| 78 |
+
edits.push({
|
| 79 |
+
newText: "'",
|
| 80 |
+
range: {
|
| 81 |
+
start: valueStart,
|
| 82 |
+
end: valueStart,
|
| 83 |
+
},
|
| 84 |
+
});
|
| 85 |
+
edits.push({
|
| 86 |
+
newText: "'",
|
| 87 |
+
range: {
|
| 88 |
+
start: valueEnd,
|
| 89 |
+
end: valueEnd,
|
| 90 |
+
},
|
| 91 |
+
});
|
| 92 |
+
}
|
| 93 |
+
else {
|
| 94 |
+
const addValuePos = document.positionAt(templateStartOffset + prop.loc.end.offset);
|
| 95 |
+
newPosition = {
|
| 96 |
+
line: addValuePos.line,
|
| 97 |
+
character: addValuePos.character + ':'.length + '="'.length,
|
| 98 |
+
};
|
| 99 |
+
edits.push({
|
| 100 |
+
newText: '=""',
|
| 101 |
+
range: {
|
| 102 |
+
start: addValuePos,
|
| 103 |
+
end: addValuePos
|
| 104 |
+
},
|
| 105 |
+
});
|
| 106 |
+
}
|
| 107 |
+
result.push({
|
| 108 |
+
title: 'Add v-bind to attribute',
|
| 109 |
+
kind: 'refactor.rewrite.addVBind',
|
| 110 |
+
edit: {
|
| 111 |
+
changes: { [document.uri]: edits },
|
| 112 |
+
},
|
| 113 |
+
command: newPosition ? context?.commands.setSelection.create(newPosition) : undefined,
|
| 114 |
+
});
|
| 115 |
+
}
|
| 116 |
+
}
|
| 117 |
+
}
|
| 118 |
+
}
|
| 119 |
+
return result;
|
| 120 |
+
},
|
| 121 |
+
transformCodeAction(item) {
|
| 122 |
+
return item; // ignore mapping
|
| 123 |
+
},
|
| 124 |
+
};
|
| 125 |
+
},
|
| 126 |
+
};
|
| 127 |
+
}
|
| 128 |
+
exports.create = create;
|
| 129 |
+
//# sourceMappingURL=vue-toggle-v-bind-codeaction.js.map
|
Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/@vue/language-service/lib/plugins/vue-twoslash-queries.d.ts
CHANGED
|
@@ -1,3 +1,2 @@
|
|
| 1 |
-
|
| 2 |
-
|
| 3 |
-
size 287
|
|
|
|
| 1 |
+
import type { ServiceContext, LanguageServicePlugin } from '@volar/language-service';
|
| 2 |
+
export declare function create(ts: typeof import('typescript'), getTsPluginClient?: (context: ServiceContext) => typeof import('@vue/typescript-plugin/lib/client') | undefined): LanguageServicePlugin;
|
|
|
Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/@vue/language-service/lib/plugins/vue-twoslash-queries.js
CHANGED
|
@@ -1,3 +1,53 @@
|
|
| 1 |
-
|
| 2 |
-
|
| 3 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"use strict";
|
| 2 |
+
Object.defineProperty(exports, "__esModule", { value: true });
|
| 3 |
+
exports.create = void 0;
|
| 4 |
+
const vue = require("@vue/language-core");
|
| 5 |
+
const twoslashReg = /<!--\s*\^\?\s*-->/g;
|
| 6 |
+
function create(ts, getTsPluginClient) {
|
| 7 |
+
return {
|
| 8 |
+
name: 'vue-twoslash-queries',
|
| 9 |
+
create(context) {
|
| 10 |
+
const tsPluginClient = getTsPluginClient?.(context);
|
| 11 |
+
return {
|
| 12 |
+
async provideInlayHints(document, range) {
|
| 13 |
+
const decoded = context.decodeEmbeddedDocumentUri(document.uri);
|
| 14 |
+
const sourceScript = decoded && context.language.scripts.get(decoded[0]);
|
| 15 |
+
const virtualCode = decoded && sourceScript?.generated?.embeddedCodes.get(decoded[1]);
|
| 16 |
+
if (!(sourceScript?.generated?.root instanceof vue.VueVirtualCode) || virtualCode?.id !== 'template') {
|
| 17 |
+
return;
|
| 18 |
+
}
|
| 19 |
+
const hoverOffsets = [];
|
| 20 |
+
const inlayHints = [];
|
| 21 |
+
for (const pointer of document.getText(range).matchAll(twoslashReg)) {
|
| 22 |
+
const offset = pointer.index + pointer[0].indexOf('^?') + document.offsetAt(range.start);
|
| 23 |
+
const position = document.positionAt(offset);
|
| 24 |
+
hoverOffsets.push([position, document.offsetAt({
|
| 25 |
+
line: position.line - 1,
|
| 26 |
+
character: position.character,
|
| 27 |
+
})]);
|
| 28 |
+
}
|
| 29 |
+
for (const [pointerPosition, hoverOffset] of hoverOffsets) {
|
| 30 |
+
for (const [_1, [_2, map]] of context.language.maps.forEach(virtualCode)) {
|
| 31 |
+
for (const [sourceOffset] of map.getSourceOffsets(hoverOffset)) {
|
| 32 |
+
const quickInfo = await tsPluginClient?.getQuickInfoAtPosition(sourceScript.generated.root.fileName, sourceOffset);
|
| 33 |
+
if (quickInfo) {
|
| 34 |
+
inlayHints.push({
|
| 35 |
+
position: { line: pointerPosition.line, character: pointerPosition.character + 2 },
|
| 36 |
+
label: ts.displayPartsToString(quickInfo.displayParts),
|
| 37 |
+
paddingLeft: true,
|
| 38 |
+
paddingRight: false,
|
| 39 |
+
});
|
| 40 |
+
break;
|
| 41 |
+
}
|
| 42 |
+
}
|
| 43 |
+
break;
|
| 44 |
+
}
|
| 45 |
+
}
|
| 46 |
+
return inlayHints;
|
| 47 |
+
},
|
| 48 |
+
};
|
| 49 |
+
},
|
| 50 |
+
};
|
| 51 |
+
}
|
| 52 |
+
exports.create = create;
|
| 53 |
+
//# sourceMappingURL=vue-twoslash-queries.js.map
|
Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/@vue/language-service/lib/plugins/vue-visualize-hidden-callback-param.d.ts
CHANGED
|
@@ -1,3 +1,2 @@
|
|
| 1 |
-
|
| 2 |
-
|
| 3 |
-
size 112
|
|
|
|
| 1 |
+
import type { LanguageServicePlugin } from '../types';
|
| 2 |
+
export declare function create(): LanguageServicePlugin;
|
|
|
Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/@vue/language-service/lib/plugins/vue-visualize-hidden-callback-param.js
CHANGED
|
@@ -1,3 +1,48 @@
|
|
| 1 |
-
|
| 2 |
-
|
| 3 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"use strict";
|
| 2 |
+
Object.defineProperty(exports, "__esModule", { value: true });
|
| 3 |
+
exports.create = void 0;
|
| 4 |
+
function create() {
|
| 5 |
+
return {
|
| 6 |
+
name: 'vue-inlay-hints-hidden-callback-param',
|
| 7 |
+
create(context) {
|
| 8 |
+
return {
|
| 9 |
+
async provideInlayHints(document, range) {
|
| 10 |
+
const settings = {};
|
| 11 |
+
const result = [];
|
| 12 |
+
const decoded = context.decodeEmbeddedDocumentUri(document.uri);
|
| 13 |
+
const sourceScript = decoded && context.language.scripts.get(decoded[0]);
|
| 14 |
+
const vitualCode = decoded && sourceScript?.generated?.embeddedCodes.get(decoded[1]);
|
| 15 |
+
if (vitualCode) {
|
| 16 |
+
const start = document.offsetAt(range.start);
|
| 17 |
+
const end = document.offsetAt(range.end);
|
| 18 |
+
for (const mapping of vitualCode.mappings) {
|
| 19 |
+
const hint = mapping.data.__hint;
|
| 20 |
+
if (mapping.generatedOffsets[0] >= start
|
| 21 |
+
&& mapping.generatedOffsets[mapping.generatedOffsets.length - 1] + mapping.lengths[mapping.lengths.length - 1] <= end
|
| 22 |
+
&& hint) {
|
| 23 |
+
settings[hint.setting] ??= await context.env.getConfiguration?.(hint.setting) ?? false;
|
| 24 |
+
if (!settings[hint.setting]) {
|
| 25 |
+
continue;
|
| 26 |
+
}
|
| 27 |
+
result.push({
|
| 28 |
+
label: hint.label,
|
| 29 |
+
paddingRight: hint.paddingRight,
|
| 30 |
+
paddingLeft: hint.paddingLeft,
|
| 31 |
+
position: document.positionAt(mapping.generatedOffsets[0]),
|
| 32 |
+
kind: 2,
|
| 33 |
+
tooltip: {
|
| 34 |
+
kind: 'markdown',
|
| 35 |
+
value: hint.tooltip,
|
| 36 |
+
},
|
| 37 |
+
});
|
| 38 |
+
}
|
| 39 |
+
}
|
| 40 |
+
}
|
| 41 |
+
return result;
|
| 42 |
+
},
|
| 43 |
+
};
|
| 44 |
+
},
|
| 45 |
+
};
|
| 46 |
+
}
|
| 47 |
+
exports.create = create;
|
| 48 |
+
//# sourceMappingURL=vue-visualize-hidden-callback-param.js.map
|
Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/@vue/language-service/lib/types.d.ts
CHANGED
|
@@ -1,3 +1,10 @@
|
|
| 1 |
-
|
| 2 |
-
|
| 3 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
export declare enum TagNameCasing {
|
| 2 |
+
Kebab = 0,
|
| 3 |
+
Pascal = 1
|
| 4 |
+
}
|
| 5 |
+
export declare enum AttrNameCasing {
|
| 6 |
+
Kebab = 0,
|
| 7 |
+
Camel = 1
|
| 8 |
+
}
|
| 9 |
+
export * from '@volar/language-service/lib/types';
|
| 10 |
+
export * from '@vue/language-core/lib/types';
|
Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/@vue/language-service/lib/types.js
CHANGED
|
@@ -1,3 +1,31 @@
|
|
| 1 |
-
|
| 2 |
-
|
| 3 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"use strict";
|
| 2 |
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
| 3 |
+
if (k2 === undefined) k2 = k;
|
| 4 |
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
| 5 |
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
| 6 |
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
| 7 |
+
}
|
| 8 |
+
Object.defineProperty(o, k2, desc);
|
| 9 |
+
}) : (function(o, m, k, k2) {
|
| 10 |
+
if (k2 === undefined) k2 = k;
|
| 11 |
+
o[k2] = m[k];
|
| 12 |
+
}));
|
| 13 |
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
| 14 |
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
| 15 |
+
};
|
| 16 |
+
Object.defineProperty(exports, "__esModule", { value: true });
|
| 17 |
+
exports.AttrNameCasing = exports.TagNameCasing = void 0;
|
| 18 |
+
var TagNameCasing;
|
| 19 |
+
(function (TagNameCasing) {
|
| 20 |
+
TagNameCasing[TagNameCasing["Kebab"] = 0] = "Kebab";
|
| 21 |
+
TagNameCasing[TagNameCasing["Pascal"] = 1] = "Pascal";
|
| 22 |
+
})(TagNameCasing || (exports.TagNameCasing = TagNameCasing = {}));
|
| 23 |
+
var AttrNameCasing;
|
| 24 |
+
(function (AttrNameCasing) {
|
| 25 |
+
AttrNameCasing[AttrNameCasing["Kebab"] = 0] = "Kebab";
|
| 26 |
+
AttrNameCasing[AttrNameCasing["Camel"] = 1] = "Camel";
|
| 27 |
+
})(AttrNameCasing || (exports.AttrNameCasing = AttrNameCasing = {}));
|
| 28 |
+
// only export types of depend packages
|
| 29 |
+
__exportStar(require("@volar/language-service/lib/types"), exports);
|
| 30 |
+
__exportStar(require("@vue/language-core/lib/types"), exports);
|
| 31 |
+
//# sourceMappingURL=types.js.map
|
Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/@vue/language-service/node_modules/@vscode/l10n/README.md
CHANGED
|
@@ -1,3 +1,42 @@
|
|
| 1 |
-
|
| 2 |
-
|
| 3 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# @vscode/l10n
|
| 2 |
+
|
| 3 |
+
Library used for loading the translations into subprocesses of your extension. These usages also get picked up by [l10n-dev](https://github.com/microsoft/vscode-l10n/tree/main/l10n-dev) string extraction tooling.
|
| 4 |
+
|
| 5 |
+
> **Note**
|
| 6 |
+
>
|
| 7 |
+
> You should _NOT_ use this library in your extension's main process. The translations are loaded into the main process by VS Code itself.
|
| 8 |
+
|
| 9 |
+
## Usage
|
| 10 |
+
|
| 11 |
+
```typescript
|
| 12 |
+
import * as l10n from '@vscode/l10n';
|
| 13 |
+
|
| 14 |
+
// Load the translations for the current locale
|
| 15 |
+
l10n.config({
|
| 16 |
+
contents: JSON.parse(process.env.BUNDLE_FROM_EXTENSION)
|
| 17 |
+
});
|
| 18 |
+
// or
|
| 19 |
+
l10n.config({
|
| 20 |
+
fsPath: process.env.FSPATH_TO_BUNDLE_FROM_EXTENSION
|
| 21 |
+
});
|
| 22 |
+
// or (warning, this is async)
|
| 23 |
+
await l10n.config({
|
| 24 |
+
uri: JSON.parse(process.env.BUNDLE_URI_FROM_EXTENSION)
|
| 25 |
+
});
|
| 26 |
+
|
| 27 |
+
// returns the translated string or the original string if no translation is available
|
| 28 |
+
l10n.t('Hello World');
|
| 29 |
+
|
| 30 |
+
// supports arguments just like the vscode API
|
| 31 |
+
l10n.t('Hello {0}', 'John');
|
| 32 |
+
|
| 33 |
+
// supports comments for translators
|
| 34 |
+
l10n.t({
|
| 35 |
+
message: 'Hello {0}',
|
| 36 |
+
args: ['John'],
|
| 37 |
+
comment: ['This is a comment']
|
| 38 |
+
});
|
| 39 |
+
```
|
| 40 |
+
|
| 41 |
+
The input for `l10n.config` pairs nicely with the `bundle` and `uri` properties on the `l10n` namespace that are provided by the [VS Code API](https://code.visualstudio.com/api/references/vscode-api#l10n).
|
| 42 |
+
You should send the value of one of these properties from your extension to your subprocess that is consuming `@vscode/l10n`.
|
Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/@vue/language-service/node_modules/@vscode/l10n/dist/browser.js
CHANGED
|
@@ -1,3 +1,103 @@
|
|
| 1 |
-
|
| 2 |
-
|
| 3 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
// src/browser/reader.ts
|
| 2 |
+
async function readFileFromUri(uri) {
|
| 3 |
+
if (uri.protocol === "http:" || uri.protocol === "https:") {
|
| 4 |
+
const res = await fetch(uri);
|
| 5 |
+
return await res.text();
|
| 6 |
+
}
|
| 7 |
+
throw new Error("Unsupported protocol");
|
| 8 |
+
}
|
| 9 |
+
function readFileFromFsPath(_) {
|
| 10 |
+
throw new Error("Unsupported in browser");
|
| 11 |
+
}
|
| 12 |
+
|
| 13 |
+
// src/main.ts
|
| 14 |
+
var bundle;
|
| 15 |
+
function config(config2) {
|
| 16 |
+
if ("contents" in config2) {
|
| 17 |
+
if (typeof config2.contents === "string") {
|
| 18 |
+
bundle = JSON.parse(config2.contents);
|
| 19 |
+
} else {
|
| 20 |
+
bundle = config2.contents;
|
| 21 |
+
}
|
| 22 |
+
return;
|
| 23 |
+
}
|
| 24 |
+
if ("fsPath" in config2) {
|
| 25 |
+
const fileContent = readFileFromFsPath(config2.fsPath);
|
| 26 |
+
const content = JSON.parse(fileContent);
|
| 27 |
+
bundle = isBuiltinExtension(content) ? content.contents.bundle : content;
|
| 28 |
+
return;
|
| 29 |
+
}
|
| 30 |
+
if (config2.uri) {
|
| 31 |
+
let uri = config2.uri;
|
| 32 |
+
if (typeof config2.uri === "string") {
|
| 33 |
+
uri = new URL(config2.uri);
|
| 34 |
+
}
|
| 35 |
+
return new Promise((resolve, reject) => {
|
| 36 |
+
readFileFromUri(uri).then((uriContent) => {
|
| 37 |
+
try {
|
| 38 |
+
const content = JSON.parse(uriContent);
|
| 39 |
+
bundle = isBuiltinExtension(content) ? content.contents.bundle : content;
|
| 40 |
+
resolve();
|
| 41 |
+
} catch (err) {
|
| 42 |
+
reject(err);
|
| 43 |
+
}
|
| 44 |
+
}).catch((err) => {
|
| 45 |
+
reject(err);
|
| 46 |
+
});
|
| 47 |
+
});
|
| 48 |
+
}
|
| 49 |
+
}
|
| 50 |
+
function t(...args) {
|
| 51 |
+
const firstArg = args[0];
|
| 52 |
+
let key;
|
| 53 |
+
let message;
|
| 54 |
+
let formatArgs;
|
| 55 |
+
if (typeof firstArg === "string") {
|
| 56 |
+
key = firstArg;
|
| 57 |
+
message = firstArg;
|
| 58 |
+
args.splice(0, 1);
|
| 59 |
+
formatArgs = !args || typeof args[0] !== "object" ? args : args[0];
|
| 60 |
+
} else if (firstArg instanceof Array) {
|
| 61 |
+
const replacements = args.slice(1);
|
| 62 |
+
if (firstArg.length !== replacements.length + 1) {
|
| 63 |
+
throw new Error("expected a string as the first argument to l10n.t");
|
| 64 |
+
}
|
| 65 |
+
let str = firstArg[0];
|
| 66 |
+
for (let i = 1; i < firstArg.length; i++) {
|
| 67 |
+
str += `{${i - 1}}` + firstArg[i];
|
| 68 |
+
}
|
| 69 |
+
return t(str, ...replacements);
|
| 70 |
+
} else {
|
| 71 |
+
message = firstArg.message;
|
| 72 |
+
key = message;
|
| 73 |
+
if (firstArg.comment && firstArg.comment.length > 0) {
|
| 74 |
+
key += `/${Array.isArray(firstArg.comment) ? firstArg.comment.join("") : firstArg.comment}`;
|
| 75 |
+
}
|
| 76 |
+
formatArgs = firstArg.args ?? {};
|
| 77 |
+
}
|
| 78 |
+
const messageFromBundle = bundle?.[key];
|
| 79 |
+
if (!messageFromBundle) {
|
| 80 |
+
return format(message, formatArgs);
|
| 81 |
+
}
|
| 82 |
+
if (typeof messageFromBundle === "string") {
|
| 83 |
+
return format(messageFromBundle, formatArgs);
|
| 84 |
+
}
|
| 85 |
+
if (messageFromBundle.comment) {
|
| 86 |
+
return format(messageFromBundle.message, formatArgs);
|
| 87 |
+
}
|
| 88 |
+
return format(message, formatArgs);
|
| 89 |
+
}
|
| 90 |
+
var _format2Regexp = /{([^}]+)}/g;
|
| 91 |
+
function format(template, values) {
|
| 92 |
+
if (Object.keys(values).length === 0) {
|
| 93 |
+
return template;
|
| 94 |
+
}
|
| 95 |
+
return template.replace(_format2Regexp, (match, group) => values[group] ?? match);
|
| 96 |
+
}
|
| 97 |
+
function isBuiltinExtension(json) {
|
| 98 |
+
return !!(typeof json?.contents?.bundle === "object" && typeof json?.version === "string");
|
| 99 |
+
}
|
| 100 |
+
export {
|
| 101 |
+
config,
|
| 102 |
+
t
|
| 103 |
+
};
|
Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/@vue/language-service/node_modules/@vscode/l10n/dist/main.d.ts
CHANGED
|
@@ -1,3 +1,130 @@
|
|
| 1 |
-
|
| 2 |
-
|
| 3 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/**
|
| 2 |
+
* @public
|
| 3 |
+
* Loads the bundle from the given contents. Must be run before the first call to any `l10n.t()` variant.
|
| 4 |
+
* **Note** The best way to set this is to pass the value of the VS Code API `vscode.l10n.contents`
|
| 5 |
+
* to the process that uses `@vscode/l10n`.
|
| 6 |
+
* @param config - An object that contains one property, contents, which should contain the contents of the bundle.
|
| 7 |
+
*/
|
| 8 |
+
export declare function config(config: {
|
| 9 |
+
contents: string | l10nJsonFormat;
|
| 10 |
+
}): void;
|
| 11 |
+
|
| 12 |
+
/**
|
| 13 |
+
* @public
|
| 14 |
+
* Loads the bundle from the given fsPath. Must be run before the first call to any `l10n.t()` variant.
|
| 15 |
+
* **Warning** This is not implemented in the browser and will throw an Error.
|
| 16 |
+
* **Note** The best way to set this is to pass the value of the VS Code API `vscode.l10n.uri.fsPath`
|
| 17 |
+
* to the process that uses `@vscode/l10n`.
|
| 18 |
+
* @param config - An object that contains one property, fsPath, which should be a path to a file that contains the bundle.
|
| 19 |
+
*/
|
| 20 |
+
export declare function config(config: {
|
| 21 |
+
fsPath: string;
|
| 22 |
+
}): void;
|
| 23 |
+
|
| 24 |
+
/**
|
| 25 |
+
* @public
|
| 26 |
+
* Loads the bundle from the given URI using an asynchronous fetch request.
|
| 27 |
+
* **Warning** Since this is an asynchronous API, you need to ensure that it resolves before
|
| 28 |
+
* the first call to any `l10n.t()` variant.
|
| 29 |
+
* **Note** The best way to set this is to pass the value of the VS Code API `vscode.l10n.uri.toString()`
|
| 30 |
+
* to the process that uses `@vscode/l10n`.
|
| 31 |
+
* @param config - An object that contains one property, uri, which should be a URL to the bundle.
|
| 32 |
+
*/
|
| 33 |
+
export declare function config(config: {
|
| 34 |
+
uri: string | URL;
|
| 35 |
+
}): Promise<void>;
|
| 36 |
+
|
| 37 |
+
/**
|
| 38 |
+
* @public
|
| 39 |
+
* The format of package.nls.json and l10n bundle files.
|
| 40 |
+
*/
|
| 41 |
+
export declare interface l10nJsonFormat {
|
| 42 |
+
[key: string]: l10nJsonMessageFormat;
|
| 43 |
+
}
|
| 44 |
+
|
| 45 |
+
/**
|
| 46 |
+
* @public
|
| 47 |
+
* The format of a message in a bundle.
|
| 48 |
+
*/
|
| 49 |
+
export declare type l10nJsonMessageFormat = string | {
|
| 50 |
+
message: string;
|
| 51 |
+
comment: string[];
|
| 52 |
+
};
|
| 53 |
+
|
| 54 |
+
/**
|
| 55 |
+
* @public
|
| 56 |
+
* Type that can be used as replacements in `l10n.t()` calls.
|
| 57 |
+
*/
|
| 58 |
+
export declare type L10nReplacement = string | number | boolean;
|
| 59 |
+
|
| 60 |
+
/**
|
| 61 |
+
* @public
|
| 62 |
+
* Marks a string for localization. If the bundle has a localized value for this message, then that localized
|
| 63 |
+
* value will be returned (with injected `args` values for any templated values).
|
| 64 |
+
* @param message - The message to localize. Supports index templating where strings like `{0}` and `{1}` are
|
| 65 |
+
* replaced by the item at that index in the `args` array.
|
| 66 |
+
* @param args - The arguments to be used in the localized string. The index of the argument is used to
|
| 67 |
+
* match the template placeholder in the localized string.
|
| 68 |
+
* @returns localized string with injected arguments.
|
| 69 |
+
* @example `l10n.localize('hello', 'Hello {0}!', 'World');`
|
| 70 |
+
*/
|
| 71 |
+
export declare function t(message: string, ...args: Array<L10nReplacement>): string;
|
| 72 |
+
|
| 73 |
+
/**
|
| 74 |
+
* @public
|
| 75 |
+
* Marks a string for localization. If the bundle has a localized value for this message, then that localized
|
| 76 |
+
* value will be returned (with injected `args` values for any templated values).
|
| 77 |
+
* @param message - The message to localize. Supports named templating where strings like `{foo}` and `{bar}` are
|
| 78 |
+
* replaced by the value in the Record for that key (foo, bar, etc).
|
| 79 |
+
* @param args - The arguments to be used in the localized string. The name of the key in the record is used to
|
| 80 |
+
* match the template placeholder in the localized string.
|
| 81 |
+
* @returns localized string with injected arguments.
|
| 82 |
+
* @example `l10n.t('Hello {name}', { name: 'Erich' });`
|
| 83 |
+
*/
|
| 84 |
+
export declare function t(message: string, args: Record<string, L10nReplacement>): string;
|
| 85 |
+
|
| 86 |
+
/**
|
| 87 |
+
* @public
|
| 88 |
+
* Marks a string for localization. This function signature is made for usage
|
| 89 |
+
* with tagged template literals.
|
| 90 |
+
*
|
| 91 |
+
* The more verbose overload should still be used if comments are required.
|
| 92 |
+
* @example
|
| 93 |
+
* ```
|
| 94 |
+
* l10n.t`Hello ${name}!`
|
| 95 |
+
* ```
|
| 96 |
+
* @param message - String message components
|
| 97 |
+
* @param args - Replacement components in the string
|
| 98 |
+
* @returns localized string with injected arguments.
|
| 99 |
+
*/
|
| 100 |
+
export declare function t(strs: TemplateStringsArray, ...replacements: L10nReplacement[]): string;
|
| 101 |
+
|
| 102 |
+
/**
|
| 103 |
+
* @public
|
| 104 |
+
* Marks a string for localization. If the bundle has a localized value for this message, then that localized
|
| 105 |
+
* value will be returned (with injected args values for any templated values).
|
| 106 |
+
* @param options - The options to use when localizing the message.
|
| 107 |
+
* @returns localized string with injected arguments.
|
| 108 |
+
* @example `l10n.t({ message: 'Hello {0}', args: ['Erich'], comment: 'This is a comment' } );`
|
| 109 |
+
*/
|
| 110 |
+
export declare function t(options: {
|
| 111 |
+
/**
|
| 112 |
+
* The message to localize. If `args` is an array, this message supports index templating where strings like
|
| 113 |
+
* `{0}` and `{1}` are replaced by the item at that index in the `args` array. If `args` is a `Record<string, any>`,
|
| 114 |
+
* this supports named templating where strings like `{foo}` and `{bar}` are replaced by the value in
|
| 115 |
+
* the Record for that key (foo, bar, etc).
|
| 116 |
+
*/
|
| 117 |
+
message: string;
|
| 118 |
+
/**
|
| 119 |
+
* The arguments to be used in the localized string. As an array, the index of the argument is used to
|
| 120 |
+
* match the template placeholder in the localized string. As a Record, the key is used to match the template
|
| 121 |
+
* placeholder in the localized string.
|
| 122 |
+
*/
|
| 123 |
+
args?: Array<string | number | boolean> | Record<string, any>;
|
| 124 |
+
/**
|
| 125 |
+
* A comment to help translators understand the context of the message.
|
| 126 |
+
*/
|
| 127 |
+
comment: string | string[];
|
| 128 |
+
}): string;
|
| 129 |
+
|
| 130 |
+
export { }
|
Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/@vue/language-service/node_modules/@vscode/l10n/dist/main.js
CHANGED
|
@@ -1,3 +1,151 @@
|
|
| 1 |
-
|
| 2 |
-
|
| 3 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"use strict";
|
| 2 |
+
var __defProp = Object.defineProperty;
|
| 3 |
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
| 4 |
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
| 5 |
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
| 6 |
+
var __export = (target, all) => {
|
| 7 |
+
for (var name in all)
|
| 8 |
+
__defProp(target, name, { get: all[name], enumerable: true });
|
| 9 |
+
};
|
| 10 |
+
var __copyProps = (to, from, except, desc) => {
|
| 11 |
+
if (from && typeof from === "object" || typeof from === "function") {
|
| 12 |
+
for (let key of __getOwnPropNames(from))
|
| 13 |
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
| 14 |
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
| 15 |
+
}
|
| 16 |
+
return to;
|
| 17 |
+
};
|
| 18 |
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
| 19 |
+
|
| 20 |
+
// src/main.ts
|
| 21 |
+
var main_exports = {};
|
| 22 |
+
__export(main_exports, {
|
| 23 |
+
config: () => config,
|
| 24 |
+
t: () => t
|
| 25 |
+
});
|
| 26 |
+
module.exports = __toCommonJS(main_exports);
|
| 27 |
+
|
| 28 |
+
// src/node/reader.ts
|
| 29 |
+
var import_fs = require("fs");
|
| 30 |
+
var import_promises = require("fs/promises");
|
| 31 |
+
async function readFileFromUri(uri) {
|
| 32 |
+
if (uri.protocol === "file:") {
|
| 33 |
+
return await (0, import_promises.readFile)(uri, "utf8");
|
| 34 |
+
}
|
| 35 |
+
if (uri.protocol === "http:" || uri.protocol === "https:") {
|
| 36 |
+
const res = await fetch(uri.toString(), {
|
| 37 |
+
headers: {
|
| 38 |
+
"Accept-Encoding": "gzip, deflate",
|
| 39 |
+
"Accept": "application/json"
|
| 40 |
+
},
|
| 41 |
+
redirect: "follow"
|
| 42 |
+
});
|
| 43 |
+
if (!res.ok) {
|
| 44 |
+
let error = `Unexpected ${res.status} response while trying to read ${uri}`;
|
| 45 |
+
try {
|
| 46 |
+
error += `: ${await res.text()}`;
|
| 47 |
+
} catch {
|
| 48 |
+
}
|
| 49 |
+
throw new Error(error);
|
| 50 |
+
}
|
| 51 |
+
const decoded = await res.text();
|
| 52 |
+
return decoded;
|
| 53 |
+
}
|
| 54 |
+
throw new Error("Unsupported protocol");
|
| 55 |
+
}
|
| 56 |
+
function readFileFromFsPath(fsPath) {
|
| 57 |
+
return (0, import_fs.readFileSync)(fsPath, "utf8");
|
| 58 |
+
}
|
| 59 |
+
|
| 60 |
+
// src/main.ts
|
| 61 |
+
var bundle;
|
| 62 |
+
function config(config2) {
|
| 63 |
+
if ("contents" in config2) {
|
| 64 |
+
if (typeof config2.contents === "string") {
|
| 65 |
+
bundle = JSON.parse(config2.contents);
|
| 66 |
+
} else {
|
| 67 |
+
bundle = config2.contents;
|
| 68 |
+
}
|
| 69 |
+
return;
|
| 70 |
+
}
|
| 71 |
+
if ("fsPath" in config2) {
|
| 72 |
+
const fileContent = readFileFromFsPath(config2.fsPath);
|
| 73 |
+
const content = JSON.parse(fileContent);
|
| 74 |
+
bundle = isBuiltinExtension(content) ? content.contents.bundle : content;
|
| 75 |
+
return;
|
| 76 |
+
}
|
| 77 |
+
if (config2.uri) {
|
| 78 |
+
let uri = config2.uri;
|
| 79 |
+
if (typeof config2.uri === "string") {
|
| 80 |
+
uri = new URL(config2.uri);
|
| 81 |
+
}
|
| 82 |
+
return new Promise((resolve, reject) => {
|
| 83 |
+
readFileFromUri(uri).then((uriContent) => {
|
| 84 |
+
try {
|
| 85 |
+
const content = JSON.parse(uriContent);
|
| 86 |
+
bundle = isBuiltinExtension(content) ? content.contents.bundle : content;
|
| 87 |
+
resolve();
|
| 88 |
+
} catch (err) {
|
| 89 |
+
reject(err);
|
| 90 |
+
}
|
| 91 |
+
}).catch((err) => {
|
| 92 |
+
reject(err);
|
| 93 |
+
});
|
| 94 |
+
});
|
| 95 |
+
}
|
| 96 |
+
}
|
| 97 |
+
function t(...args) {
|
| 98 |
+
const firstArg = args[0];
|
| 99 |
+
let key;
|
| 100 |
+
let message;
|
| 101 |
+
let formatArgs;
|
| 102 |
+
if (typeof firstArg === "string") {
|
| 103 |
+
key = firstArg;
|
| 104 |
+
message = firstArg;
|
| 105 |
+
args.splice(0, 1);
|
| 106 |
+
formatArgs = !args || typeof args[0] !== "object" ? args : args[0];
|
| 107 |
+
} else if (firstArg instanceof Array) {
|
| 108 |
+
const replacements = args.slice(1);
|
| 109 |
+
if (firstArg.length !== replacements.length + 1) {
|
| 110 |
+
throw new Error("expected a string as the first argument to l10n.t");
|
| 111 |
+
}
|
| 112 |
+
let str = firstArg[0];
|
| 113 |
+
for (let i = 1; i < firstArg.length; i++) {
|
| 114 |
+
str += `{${i - 1}}` + firstArg[i];
|
| 115 |
+
}
|
| 116 |
+
return t(str, ...replacements);
|
| 117 |
+
} else {
|
| 118 |
+
message = firstArg.message;
|
| 119 |
+
key = message;
|
| 120 |
+
if (firstArg.comment && firstArg.comment.length > 0) {
|
| 121 |
+
key += `/${Array.isArray(firstArg.comment) ? firstArg.comment.join("") : firstArg.comment}`;
|
| 122 |
+
}
|
| 123 |
+
formatArgs = firstArg.args ?? {};
|
| 124 |
+
}
|
| 125 |
+
const messageFromBundle = bundle?.[key];
|
| 126 |
+
if (!messageFromBundle) {
|
| 127 |
+
return format(message, formatArgs);
|
| 128 |
+
}
|
| 129 |
+
if (typeof messageFromBundle === "string") {
|
| 130 |
+
return format(messageFromBundle, formatArgs);
|
| 131 |
+
}
|
| 132 |
+
if (messageFromBundle.comment) {
|
| 133 |
+
return format(messageFromBundle.message, formatArgs);
|
| 134 |
+
}
|
| 135 |
+
return format(message, formatArgs);
|
| 136 |
+
}
|
| 137 |
+
var _format2Regexp = /{([^}]+)}/g;
|
| 138 |
+
function format(template, values) {
|
| 139 |
+
if (Object.keys(values).length === 0) {
|
| 140 |
+
return template;
|
| 141 |
+
}
|
| 142 |
+
return template.replace(_format2Regexp, (match, group) => values[group] ?? match);
|
| 143 |
+
}
|
| 144 |
+
function isBuiltinExtension(json) {
|
| 145 |
+
return !!(typeof json?.contents?.bundle === "object" && typeof json?.version === "string");
|
| 146 |
+
}
|
| 147 |
+
// Annotate the CommonJS export names for ESM import in node:
|
| 148 |
+
0 && (module.exports = {
|
| 149 |
+
config,
|
| 150 |
+
t
|
| 151 |
+
});
|
Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/@vue/language-service/node_modules/@vscode/l10n/dist/tsdoc-metadata.json
CHANGED
|
@@ -1,3 +1,11 @@
|
|
| 1 |
-
|
| 2 |
-
|
| 3 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
// This file is read by tools that parse documentation comments conforming to the TSDoc standard.
|
| 2 |
+
// It should be published with your NPM package. It should not be tracked by Git.
|
| 3 |
+
{
|
| 4 |
+
"tsdocVersion": "0.12",
|
| 5 |
+
"toolPackages": [
|
| 6 |
+
{
|
| 7 |
+
"packageName": "@microsoft/api-extractor",
|
| 8 |
+
"packageVersion": "7.36.3"
|
| 9 |
+
}
|
| 10 |
+
]
|
| 11 |
+
}
|
Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/@vue/language-service/node_modules/@vscode/l10n/package.json
CHANGED
|
@@ -1,3 +1,50 @@
|
|
| 1 |
-
|
| 2 |
-
|
| 3 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"name": "@vscode/l10n",
|
| 3 |
+
"version": "0.0.18",
|
| 4 |
+
"description": "A helper library to assist in localizing subprocesses spun up by VS Code extensions",
|
| 5 |
+
"author": "Microsoft Corporation",
|
| 6 |
+
"license": "MIT",
|
| 7 |
+
"repository": {
|
| 8 |
+
"type": "git",
|
| 9 |
+
"url": "https://github.com/Microsoft/vscode-l10n.git"
|
| 10 |
+
},
|
| 11 |
+
"bugs": {
|
| 12 |
+
"url": "https://github.com/Microsoft/vscode-l10n/issues"
|
| 13 |
+
},
|
| 14 |
+
"main": "./dist/main.js",
|
| 15 |
+
"sideEffects": false,
|
| 16 |
+
"browser": {
|
| 17 |
+
"./dist/main.js": "./dist/browser.js",
|
| 18 |
+
"./src/node/reader": "./src/browser/reader"
|
| 19 |
+
},
|
| 20 |
+
"types": "dist/main.d.ts",
|
| 21 |
+
"files": [
|
| 22 |
+
"dist/*"
|
| 23 |
+
],
|
| 24 |
+
"devDependencies": {
|
| 25 |
+
"@jest/globals": "^29.7.0",
|
| 26 |
+
"@microsoft/api-extractor": "^7.32.1",
|
| 27 |
+
"@types/mock-fs": "^4.13.1",
|
| 28 |
+
"@types/node": "^18",
|
| 29 |
+
"@typescript-eslint/eslint-plugin": "^6.13.2",
|
| 30 |
+
"@typescript-eslint/parser": "^6.13.2",
|
| 31 |
+
"esbuild": "^0.15.5",
|
| 32 |
+
"eslint": "^7.29.0",
|
| 33 |
+
"http-proxy-agent": "^5.0.0",
|
| 34 |
+
"https-proxy-agent": "^5.0.1",
|
| 35 |
+
"jest": "^29.7.0",
|
| 36 |
+
"jest-fetch-mock": "^3.0.3",
|
| 37 |
+
"mock-fs": "^5.1.4",
|
| 38 |
+
"rimraf": "^3.0.2",
|
| 39 |
+
"ts-jest": "^29.1.1",
|
| 40 |
+
"typescript": "^4.7.4"
|
| 41 |
+
},
|
| 42 |
+
"scripts": {
|
| 43 |
+
"clean": "rimraf dist && rimraf lib",
|
| 44 |
+
"compile": "npm run clean && tsc --emitDeclarationOnly --outDir lib && node .esbuild.config.js",
|
| 45 |
+
"lint": "eslint src --ext ts",
|
| 46 |
+
"watch": "node .esbuild.config.js --watch",
|
| 47 |
+
"test": "jest --preset ts-jest",
|
| 48 |
+
"prepublishOnly": "npm run lint && npm run compile && npm run test"
|
| 49 |
+
}
|
| 50 |
+
}
|
Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/@vue/language-service/node_modules/vscode-html-languageservice/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,78 @@
|
|
| 1 |
-
|
| 2 |
-
|
| 3 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
|
| 2 |
+
|
| 3 |
+
5.2.0 / 2024-03-22
|
| 4 |
+
================
|
| 5 |
+
* Added `HTMLFormatConfiguration.templating` now also take a list of template languages.
|
| 6 |
+
|
| 7 |
+
5.1.0 / 2022-09-11
|
| 8 |
+
================
|
| 9 |
+
* Added `LanguageService.findDocumentSymbols2`. Returns the symbols found in a document as `DocumentSymbol[]`.
|
| 10 |
+
|
| 11 |
+
5.0.0 / 2022-05-18
|
| 12 |
+
================
|
| 13 |
+
* Update to `vscode-languageserver-types@3.17`
|
| 14 |
+
|
| 15 |
+
4.2.0 / 2021-11-29
|
| 16 |
+
==================
|
| 17 |
+
* Added new API `htmlLanguageService.doQuoteComplete`. Called after an `attribute=`, it will compute either `""` or `''` depending on `CompletionConfiguration.attributeDefaultValue` or null, if no quote completion should be performed.
|
| 18 |
+
|
| 19 |
+
4.1.0 / 2021-09-27
|
| 20 |
+
==================
|
| 21 |
+
* New settings `CompletionConfiguration.attributeDefaultValue`. Defines how attribute values are completed: With single or double quotes, or no quotes.
|
| 22 |
+
|
| 23 |
+
|
| 24 |
+
4.0.0 / 2020-12-14
|
| 25 |
+
==================
|
| 26 |
+
* Update to `vscode-languageserver-types@3.16`
|
| 27 |
+
|
| 28 |
+
3.2.0 / 2020-11-30
|
| 29 |
+
==================
|
| 30 |
+
* New parameter `HoverSettings` for `LanguageService.doHover`: Defines whether the hover contains element documentation and/or a reference to MDN.
|
| 31 |
+
* Deprecated `LanguageService.findOnTypeRenameRanges`, replaced by New API `LanguageService.findLinkedEditingRanges`.
|
| 32 |
+
|
| 33 |
+
3.1.0 / 2020-07-29
|
| 34 |
+
==================
|
| 35 |
+
* Use `TextDocument` from `vscode-languageserver-textdocument`
|
| 36 |
+
* Fix formatting for `<p>` tags with optional closing
|
| 37 |
+
* New API `LanguageService.findOnTypeRenameRanges`. For a given position, find the matching close tag so they can be renamed synchronously.
|
| 38 |
+
* New API `LanguageServiceOptions.customDataProviders` to add the knowledge of custom tags, attributes and attribute-values and `LanguageService.setDataProviders` to update the data providers.
|
| 39 |
+
* New API `getDefaultHTMLDataProvider` to get the default HTML data provider and `newHTMLDataProvider` to create a new provider from data.
|
| 40 |
+
* New API `LanguageServiceOptions.fileSystemProvider` with `FileSystemProvider` to query the file system (currently used for path completion)
|
| 41 |
+
* New API `LanguageService.doComplete2` which is synchronous and also returns path completion proposals when `LanguageServiceOptions.fileSystemProvider` is provided.
|
| 42 |
+
|
| 43 |
+
3.0.3 / 2019-07-25
|
| 44 |
+
==================
|
| 45 |
+
* `DocumentContext.resolveReference` can also return undefined (if the ref is invalid)
|
| 46 |
+
|
| 47 |
+
3.0.0 / 2019-06-12
|
| 48 |
+
==================
|
| 49 |
+
* Added API `htmlLanguageService.getSelectionRanges` returning selection ranges for a set of positions
|
| 50 |
+
* New API `newHTMLDataProvider`
|
| 51 |
+
|
| 52 |
+
2.1.3 / 2018-04-16
|
| 53 |
+
==================
|
| 54 |
+
* Added API `htmlLanguageService.getFoldingRanges` returning folding ranges for the given document
|
| 55 |
+
|
| 56 |
+
2.1.0 / 2018-03-08
|
| 57 |
+
==================
|
| 58 |
+
* Added API `htmlLanguageService.setCompletionParticipants` that allows participation in code completion
|
| 59 |
+
* provide ES modules in lib/esm
|
| 60 |
+
|
| 61 |
+
2.0.6 / 2017-08-25
|
| 62 |
+
==================
|
| 63 |
+
* Added new API `htmlLanguageService.doTagComplete`. Called behind a `>` or `\`, `doTagComplete` will compute a closing tag. The result is a snippet string that can be inserted behind the position, or null, if no tag completion should be performed.
|
| 64 |
+
* New settings `CompletionConfiguration.hideAutoCompleteProposals`. If set, `doComplete` will not propose a closing tag proposals on `>`.
|
| 65 |
+
* These APIs are experimental and might be improved.
|
| 66 |
+
|
| 67 |
+
2.0.3 / 2017-03-21
|
| 68 |
+
==================
|
| 69 |
+
* Fix indentation issues when formatting a range
|
| 70 |
+
|
| 71 |
+
2.0.1 / 2017-02-21
|
| 72 |
+
==================
|
| 73 |
+
* Support for [base URLs](https://developer.mozilla.org/de/docs/Web/HTML/Element/base). `DocumentContext.resolveReference` now gets the base URI to take into account when resolving a reference. Refer to [links.test.ts](https://github.com/Microsoft/vscode-html-languageservice/blob/master/src/test/links.test.ts) for guidance on how to implement a `DocumentContext`.
|
| 74 |
+
* Added `htmlLanguageService.findDocumentSymbols`: Returns a symbol for each tag in the document. Symbol name is in the form `tag(#id)?(.class)+`.
|
| 75 |
+
|
| 76 |
+
2.0.0 / 2017-02-17
|
| 77 |
+
==================
|
| 78 |
+
* Updating to [language server type 3.0](https://github.com/Microsoft/vscode-languageserver-node/tree/master/types) API
|
Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/@vue/language-service/node_modules/vscode-html-languageservice/LICENSE.md
CHANGED
|
@@ -1,3 +1,21 @@
|
|
| 1 |
-
|
| 2 |
-
|
| 3 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
The MIT License (MIT)
|
| 2 |
+
|
| 3 |
+
Copyright (c) Microsoft
|
| 4 |
+
|
| 5 |
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
| 6 |
+
of this software and associated documentation files (the "Software"), to deal
|
| 7 |
+
in the Software without restriction, including without limitation the rights
|
| 8 |
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
| 9 |
+
copies of the Software, and to permit persons to whom the Software is
|
| 10 |
+
furnished to do so, subject to the following conditions:
|
| 11 |
+
|
| 12 |
+
The above copyright notice and this permission notice shall be included in all
|
| 13 |
+
copies or substantial portions of the Software.
|
| 14 |
+
|
| 15 |
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
| 16 |
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
| 17 |
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
| 18 |
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
| 19 |
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
| 20 |
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
| 21 |
+
SOFTWARE.
|
Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/@vue/language-service/node_modules/vscode-html-languageservice/README.md
CHANGED
|
@@ -1,3 +1,69 @@
|
|
| 1 |
-
|
| 2 |
-
|
| 3 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# vscode-html-languageservice
|
| 2 |
+
HTML language service extracted from VSCode to be reused, e.g in the Monaco editor.
|
| 3 |
+
|
| 4 |
+
[](https://www.npmjs.org/package/vscode-html-languageservice)
|
| 5 |
+
[](https://npmjs.org/package/vscode-html-languageservice)
|
| 6 |
+
[](https://github.com/microsoft/vscode-html-languageservice/actions)
|
| 7 |
+
[](https://opensource.org/licenses/MIT)
|
| 8 |
+
|
| 9 |
+
Why?
|
| 10 |
+
----
|
| 11 |
+
|
| 12 |
+
The _vscode-html-languageservice_ contains the language smarts behind the HTML editing experience of Visual Studio Code
|
| 13 |
+
and the Monaco editor.
|
| 14 |
+
|
| 15 |
+
- *doComplete* / *doComplete2* (async) provide completion proposals for a given location.
|
| 16 |
+
- *setCompletionParticipants* allows participant to provide suggestions for specific tokens.
|
| 17 |
+
- *doHover* provides hover information at a given location.
|
| 18 |
+
|
| 19 |
+
- *format* formats the code at the given range.
|
| 20 |
+
- *findDocumentLinks* finds all links in the document.
|
| 21 |
+
- *findDocumentSymbols* finds all the symbols in the document.
|
| 22 |
+
- *getFoldingRanges* return folding ranges for the given document.
|
| 23 |
+
- *getSelectionRanges* return the selection ranges for the given document.
|
| 24 |
+
...
|
| 25 |
+
|
| 26 |
+
For the complete API see [htmlLanguageService.ts](./src/htmlLanguageService.ts) and [htmlLanguageTypes.ts](./src/htmlLanguageTypes.ts)
|
| 27 |
+
|
| 28 |
+
Installation
|
| 29 |
+
------------
|
| 30 |
+
|
| 31 |
+
npm install --save vscode-html-languageservice
|
| 32 |
+
|
| 33 |
+
Development
|
| 34 |
+
-----------
|
| 35 |
+
|
| 36 |
+
- clone this repo, run `npm i``
|
| 37 |
+
- `npm test` to compile and run tests
|
| 38 |
+
|
| 39 |
+
|
| 40 |
+
How can I run and debug the service?
|
| 41 |
+
|
| 42 |
+
- open the folder in VSCode.
|
| 43 |
+
- set breakpoints, e.g. in `htmlCompletion.ts`
|
| 44 |
+
- run the Unit tests from the run viewlet and wait until a breakpoint is hit:
|
| 45 |
+

|
| 46 |
+
|
| 47 |
+
|
| 48 |
+
How can I run and debug the service inside an instance of VSCode?
|
| 49 |
+
|
| 50 |
+
- run VSCode out of sources setup as described here: https://github.com/Microsoft/vscode/wiki/How-to-Contribute
|
| 51 |
+
- link the folder of the `vscode-html-languageservice` repo to `vscode/extensions/html-language-features/server` to run VSCode with the latest changes from that folder:
|
| 52 |
+
- cd `vscode-html-languageservice`, `npm link`
|
| 53 |
+
- cd `vscode/extensions/html-language-features/server`, `npm link vscode-html-languageservice`
|
| 54 |
+
- run VSCode out of source (`vscode/scripts/code.sh|bat`) and open a `.html` file
|
| 55 |
+
- in VSCode window that is open on the `vscode-html-languageservice` sources, run command `Debug: Attach to Node process` and pick the `code-oss` process with the `html-language-features` path
|
| 56 |
+

|
| 57 |
+
- set breakpoints, e.g. in `htmlCompletion.ts`
|
| 58 |
+
- in the instance run from sources, invoke code completion in the `.html` file
|
| 59 |
+
|
| 60 |
+
|
| 61 |
+
License
|
| 62 |
+
-------
|
| 63 |
+
|
| 64 |
+
(MIT License)
|
| 65 |
+
|
| 66 |
+
Copyright 2016-2023, Microsoft
|
| 67 |
+
|
| 68 |
+
`src/languageFacts/data/webCustomData.ts` (shipped as `lib/esm/languageFacts/data/webCustomData.ts` and `lib/umd/languageFacts/data/webCustomData.ts`)
|
| 69 |
+
are built upon content from [Mozilla Developer Network](https://developer.mozilla.org/en-US/docs/Web) and distributed under CC BY-SA 2.5.
|
Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/@vue/language-service/node_modules/vscode-html-languageservice/SECURITY.md
CHANGED
|
@@ -1,3 +1,41 @@
|
|
| 1 |
-
|
| 2 |
-
|
| 3 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<!-- BEGIN MICROSOFT SECURITY.MD V0.0.8 BLOCK -->
|
| 2 |
+
|
| 3 |
+
## Security
|
| 4 |
+
|
| 5 |
+
Microsoft takes the security of our software products and services seriously, which includes all source code repositories managed through our GitHub organizations, which include [Microsoft](https://github.com/microsoft), [Azure](https://github.com/Azure), [DotNet](https://github.com/dotnet), [AspNet](https://github.com/aspnet), [Xamarin](https://github.com/xamarin), and [our GitHub organizations](https://opensource.microsoft.com/).
|
| 6 |
+
|
| 7 |
+
If you believe you have found a security vulnerability in any Microsoft-owned repository that meets [Microsoft's definition of a security vulnerability](https://aka.ms/opensource/security/definition), please report it to us as described below.
|
| 8 |
+
|
| 9 |
+
## Reporting Security Issues
|
| 10 |
+
|
| 11 |
+
**Please do not report security vulnerabilities through public GitHub issues.**
|
| 12 |
+
|
| 13 |
+
Instead, please report them to the Microsoft Security Response Center (MSRC) at [https://msrc.microsoft.com/create-report](https://aka.ms/opensource/security/create-report).
|
| 14 |
+
|
| 15 |
+
If you prefer to submit without logging in, send email to [secure@microsoft.com](mailto:secure@microsoft.com). If possible, encrypt your message with our PGP key; please download it from the [Microsoft Security Response Center PGP Key page](https://aka.ms/opensource/security/pgpkey).
|
| 16 |
+
|
| 17 |
+
You should receive a response within 24 hours. If for some reason you do not, please follow up via email to ensure we received your original message. Additional information can be found at [microsoft.com/msrc](https://aka.ms/opensource/security/msrc).
|
| 18 |
+
|
| 19 |
+
Please include the requested information listed below (as much as you can provide) to help us better understand the nature and scope of the possible issue:
|
| 20 |
+
|
| 21 |
+
* Type of issue (e.g. buffer overflow, SQL injection, cross-site scripting, etc.)
|
| 22 |
+
* Full paths of source file(s) related to the manifestation of the issue
|
| 23 |
+
* The location of the affected source code (tag/branch/commit or direct URL)
|
| 24 |
+
* Any special configuration required to reproduce the issue
|
| 25 |
+
* Step-by-step instructions to reproduce the issue
|
| 26 |
+
* Proof-of-concept or exploit code (if possible)
|
| 27 |
+
* Impact of the issue, including how an attacker might exploit the issue
|
| 28 |
+
|
| 29 |
+
This information will help us triage your report more quickly.
|
| 30 |
+
|
| 31 |
+
If you are reporting for a bug bounty, more complete reports can contribute to a higher bounty award. Please visit our [Microsoft Bug Bounty Program](https://aka.ms/opensource/security/bounty) page for more details about our active programs.
|
| 32 |
+
|
| 33 |
+
## Preferred Languages
|
| 34 |
+
|
| 35 |
+
We prefer all communications to be in English.
|
| 36 |
+
|
| 37 |
+
## Policy
|
| 38 |
+
|
| 39 |
+
Microsoft follows the principle of [Coordinated Vulnerability Disclosure](https://aka.ms/opensource/security/cvd).
|
| 40 |
+
|
| 41 |
+
<!-- END MICROSOFT SECURITY.MD BLOCK -->
|
Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/@vue/language-service/node_modules/vscode-html-languageservice/docs/customData.md
CHANGED
|
@@ -1,3 +1,107 @@
|
|
| 1 |
-
|
| 2 |
-
|
| 3 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Custom Data for HTML Language Service
|
| 2 |
+
|
| 3 |
+
In VS Code, there are two ways of loading custom HTML datasets:
|
| 4 |
+
|
| 5 |
+
1. With setting `html.customData`
|
| 6 |
+
2. With an extension that contributes `contributes.html.customData`
|
| 7 |
+
|
| 8 |
+
Both setting point to a list of JSON files. This document describes the shape of the JSON files.
|
| 9 |
+
|
| 10 |
+
You can read more about custom data at: https://github.com/microsoft/vscode-custom-data.
|
| 11 |
+
|
| 12 |
+
## Custom Data Format
|
| 13 |
+
|
| 14 |
+
The JSON have one required property, `version` and 3 other top level properties:
|
| 15 |
+
|
| 16 |
+
```jsonc
|
| 17 |
+
{
|
| 18 |
+
"version": 1.1,
|
| 19 |
+
"tags": [],
|
| 20 |
+
"globalAttributes": [],
|
| 21 |
+
"valueSets": []
|
| 22 |
+
}
|
| 23 |
+
```
|
| 24 |
+
|
| 25 |
+
Version denotes the schema version you are using. The latest schema version is `V1.1`.
|
| 26 |
+
|
| 27 |
+
You can find other properties' shapes at [htmlLanguageTypes.ts](../src/htmlLanguageTypes.ts) or the [JSON Schema](./customData.schema.json).
|
| 28 |
+
|
| 29 |
+
When working with VSCode, you should suffix your custom data file with `.html-data.json`, so VS Code will load the most recent schema for the JSON file.
|
| 30 |
+
|
| 31 |
+
[html5.ts](../src/languageFacts/data/webCustomData.ts) contains that built-in dataset that conforms to the spec.
|
| 32 |
+
|
| 33 |
+
## Language Features
|
| 34 |
+
|
| 35 |
+
Custom data receives the following language features:
|
| 36 |
+
|
| 37 |
+
- Completion on tag, attribute and attribute value
|
| 38 |
+
- Hover on tag (here's the [issue](https://github.com/Microsoft/vscode-html-languageservice/issues/47) for hover on attribute / attribute-name)
|
| 39 |
+
|
| 40 |
+
For example, for the following custom data:
|
| 41 |
+
|
| 42 |
+
```json
|
| 43 |
+
{
|
| 44 |
+
"tags": [
|
| 45 |
+
{
|
| 46 |
+
"name": "foo",
|
| 47 |
+
"description": "The foo element",
|
| 48 |
+
"attributes": [
|
| 49 |
+
{ "name": "bar" },
|
| 50 |
+
{
|
| 51 |
+
"name": "baz",
|
| 52 |
+
"values": [
|
| 53 |
+
{
|
| 54 |
+
"name": "baz-val-1"
|
| 55 |
+
}
|
| 56 |
+
]
|
| 57 |
+
}
|
| 58 |
+
]
|
| 59 |
+
}
|
| 60 |
+
],
|
| 61 |
+
"globalAttributes": [
|
| 62 |
+
{ "name": "fooAttr", "description": "Foo Attribute" },
|
| 63 |
+
{ "name": "xattr", "description": "X attributes", "valueSet": "x" }
|
| 64 |
+
],
|
| 65 |
+
"valueSets": [
|
| 66 |
+
{
|
| 67 |
+
"name": "x",
|
| 68 |
+
"values": [
|
| 69 |
+
{
|
| 70 |
+
"name": "xval",
|
| 71 |
+
"description": "x value"
|
| 72 |
+
}
|
| 73 |
+
]
|
| 74 |
+
}
|
| 75 |
+
]
|
| 76 |
+
}
|
| 77 |
+
```
|
| 78 |
+
|
| 79 |
+
- Completion on `<|` will provide `foo`
|
| 80 |
+
- Completion on `<foo |` will provide `bar` and `baz`
|
| 81 |
+
- Completion on `<foo baz=|` will provide `baz-val-1`
|
| 82 |
+
- Completion on `<foo |` will also provide the global attributes `fooAttr` and `xattr`
|
| 83 |
+
- Completion on `<foo xattr=>` will provide all values in valueSet `x`, which is `xval`
|
| 84 |
+
- Hover on `foo` will show `The foo element`
|
| 85 |
+
|
| 86 |
+
### Additional properties
|
| 87 |
+
|
| 88 |
+
For either `tag`, `attribute` or `attributeValue`, you can provide a `references` property of the following form
|
| 89 |
+
|
| 90 |
+
```json
|
| 91 |
+
{
|
| 92 |
+
"tags": [
|
| 93 |
+
{
|
| 94 |
+
"name": "foo",
|
| 95 |
+
"description": "The foo element",
|
| 96 |
+
"references": [
|
| 97 |
+
{
|
| 98 |
+
"name": "My foo element reference",
|
| 99 |
+
"url": "https://www.foo.com/element/foo"
|
| 100 |
+
}
|
| 101 |
+
]
|
| 102 |
+
}
|
| 103 |
+
]
|
| 104 |
+
}
|
| 105 |
+
```
|
| 106 |
+
|
| 107 |
+
It will be displayed in Markdown form in completion and hover as `[My foo element reference](https://www.foo.com/element/foo)`.
|