You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/about/faq.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -48,7 +48,7 @@ In stress-testing scenarios, Vue outperforms React and Angular by a decent margi
48
48
49
49
Do note that synthetic benchmarks like the above focus on raw rendering performance with dedicated optimizations and may not be fully representative of real-world performance results. If you care more about page load performance, you are welcome to audit this very website using [WebPageTest](https://www.webpagetest.org/lighthouse) or [PageSpeed Insights](https://pagespeed.web.dev/). This website is powered by Vue itself, with SSG pre-rendering, full page hydration and SPA client-side navigation. It scores 100 in performance on an emulated Moto G4 with 4x CPU throttling over slow 4G networks.
50
50
51
-
You can learn more about how Vue automatically optimizes runtime performance in the [Rendering Mechanism](/guide/extras/rendering-mechanism.html) section, and how to optimize a Vue app in particularly demanding cases in the [Performance Optimization Guide](/guide/best-practices/performance).
51
+
You can learn more about how Vue automatically optimizes runtime performance in the [Rendering Mechanism](/guide/extras/rendering-mechanism) section, and how to optimize a Vue app in particularly demanding cases in the [Performance Optimization Guide](/guide/best-practices/performance).
52
52
53
53
## Is Vue lightweight? {#is-vue-lightweight}
54
54
@@ -78,7 +78,7 @@ We appreciate your interest! Please check out our [Community Guide](/about/commu
78
78
79
79
## Should I use Options API or Composition API? {#should-i-use-options-api-or-composition-api}
80
80
81
-
If you are new to Vue, we provide a high-level comparison between the two styles [here](/guide/introduction.html#which-to-choose).
81
+
If you are new to Vue, we provide a high-level comparison between the two styles [here](/guide/introduction#which-to-choose).
82
82
83
83
If you have previously used Options API and are currently evaluating Composition API, check out [this FAQ](/guide/extras/composition-api-faq).
@@ -59,7 +59,7 @@ Mounts the application instance in a container element.
59
59
60
60
Ifthecomponenthasatemplateorarenderfunction defined, it will replace any existing DOM nodes inside the container. Otherwise, if the runtime compiler is available, the `innerHTML` of the container will be used as the template.
Copy file name to clipboardExpand all lines: src/api/built-in-components.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -150,7 +150,7 @@ Provides transition effects for **multiple** elements or components in a list.
150
150
151
151
By default, `<TransitionGroup>` doesn't render a wrapper DOM element, but one can be defined via the `tag` prop.
152
152
153
-
Note that every child in a `<transition-group>` must be [**uniquely keyed**](/guide/essentials/list.html#maintaining-state-with-key) for the animations to work properly.
153
+
Note that every child in a `<transition-group>` must be [**uniquely keyed**](/guide/essentials/list#maintaining-state-with-key) for the animations to work properly.
154
154
155
155
`<TransitionGroup>` supports moving transitions via CSS transform. When a child's position on screen has changed after an update, it will get applied a moving CSS class (auto generated from the `name` attribute or configured with the `move-class` prop). If the CSS `transform` property is "transition-able" when the moving class is applied, the element will be smoothly animated to its destination using the [FLIP technique](https://aerotwist.com/blog/flip-your-animations/).
156
156
@@ -323,6 +323,6 @@ Used for orchestrating nested async dependencies in a component tree.
323
323
324
324
`<Suspense>` accepts two slots: the `#default` slot and the `#fallback` slot. It will display the content of the fallback slot while rendering the default slot in memory.
325
325
326
-
If it encounters async dependencies ([Async Components](/guide/components/async) and components with [`async setup()`](/guide/built-ins/suspense.html#async-setup)) while rendering the default slot, it will wait until all of them are resolved before displaying the default slot.
326
+
If it encounters async dependencies ([Async Components](/guide/components/async) and components with [`async setup()`](/guide/built-ins/suspense#async-setup)) while rendering the default slot, it will wait until all of them are resolved before displaying the default slot.
Copy file name to clipboardExpand all lines: src/api/built-in-directives.md
+17-17Lines changed: 17 additions & 17 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,7 +8,7 @@ Update the element's text content.
8
8
9
9
-**Details**
10
10
11
-
`v-text` works by setting the element's [textContent](https://developer.mozilla.org/en-US/docs/Web/API/Node/textContent) property, so it will overwrite any existing content inside the element. If you need to update the part of `textContent`, you should use [mustache interpolations](/guide/essentials/template-syntax.html#text-interpolation) instead.
11
+
`v-text` works by setting the element's [textContent](https://developer.mozilla.org/en-US/docs/Web/API/Node/textContent) property, so it will overwrite any existing content inside the element. If you need to update the part of `textContent`, you should use [mustache interpolations](/guide/essentials/template-syntax#text-interpolation) instead.
12
12
13
13
-**Example**
14
14
@@ -18,7 +18,7 @@ Update the element's text content.
18
18
<span>{{msg}}</span>
19
19
```
20
20
21
-
-**See also:**[Template Syntax - Text Interpolation](/guide/essentials/template-syntax.html#text-interpolation)
21
+
-**See also:**[Template Syntax - Text Interpolation](/guide/essentials/template-syntax#text-interpolation)
22
22
23
23
## v-html {#v-html}
24
24
@@ -34,15 +34,15 @@ Update the element's [innerHTML](https://developer.mozilla.org/en-US/docs/Web/AP
34
34
Dynamically rendering arbitrary HTML on your website can be very dangerous because it can easily lead to [XSS attacks](https://en.wikipedia.org/wiki/Cross-site_scripting). Only use `v-html` on trusted content and **never** on user-provided content.
35
35
:::
36
36
37
-
In [Single-File Components](/guide/scaling-up/sfc), `scoped` styles will not apply to content inside `v-html`, because that HTML is not processed by Vue's template compiler. If you want to target `v-html` content with scoped CSS, you can instead use [CSS modules](./sfc-css-features.html#css-modules) or an additional, global `<style>` element with a manual scoping strategy such as BEM.
37
+
In [Single-File Components](/guide/scaling-up/sfc), `scoped` styles will not apply to content inside `v-html`, because that HTML is not processed by Vue's template compiler. If you want to target `v-html` content with scoped CSS, you can instead use [CSS modules](./sfc-css-features#css-modules) or an additional, global `<style>` element with a manual scoping strategy such as BEM.
38
38
39
39
-**Example:**
40
40
41
41
```vue-html
42
42
<div v-html="html"></div>
43
43
```
44
44
45
-
-**See also:**[Template Syntax - Raw HTML](/guide/essentials/template-syntax.html#raw-html)
45
+
-**See also:**[Template Syntax - Raw HTML](/guide/essentials/template-syntax#raw-html)
46
46
47
47
## v-show {#v-show}
48
48
@@ -54,7 +54,7 @@ Toggle the element's visibility based on the truthy-ness of the expression value
54
54
55
55
`v-show` works by setting the `display` CSS property via inline styles, and will try to respect the initial `display` value when the element is visible. It also triggers transitions when its condition changes.
@@ -70,9 +70,9 @@ Conditionally render an element or a template fragment based on the truthy-ness
70
70
71
71
This directive triggers transitions when its condition changes.
72
72
73
-
When used together, `v-if` has a higher priority than `v-for`. We don't recommend using these two directives together on one element — see the [list rendering guide](/guide/essentials/list.html#v-for-with-v-if) for details.
73
+
When used together, `v-if` has a higher priority than `v-for`. We don't recommend using these two directives together on one element — see the [list rendering guide](/guide/essentials/list#v-for-with-v-if) for details.
@@ -273,7 +273,7 @@ Dynamically bind one or more attributes, or a component prop to an expression.
273
273
274
274
When used to bind the `class` or `style` attribute, `v-bind` supports additional value types such as Array or Objects. See linked guide section below for more details.
275
275
276
-
When setting a binding on an element, Vue by default checks whether the element has the key defined as a property using an `in` operator check. If the property is defined, Vue will set the value as a DOM property instead of an attribute. This should work in most cases, but you can override this behavior by explicitly using `.prop` or `.attr` modifiers. This is sometimes necessary, especially when [working with custom elements](/guide/extras/web-components.html#passing-dom-properties).
276
+
When setting a binding on an element, Vue by default checks whether the element has the key defined as a property using an `in` operator check. If the property is defined, Vue will set the value as a DOM property instead of an attribute. This should work in most cases, but you can override this behavior by explicitly using `.prop` or `.attr` modifiers. This is sometimes necessary, especially when [working with custom elements](/guide/extras/web-components#passing-dom-properties).
277
277
278
278
When used for component prop binding, the prop must be properly declared in the child component.
279
279
@@ -338,7 +338,7 @@ Dynamically bind one or more attributes, or a component prop to an expression.
338
338
339
339
-**See also:**
340
340
-[Class and Style Bindings](/guide/essentials/class-and-style)
Used for binding [dynamic components](/guide/essentials/component-basics.html#dynamic-components).
90
+
Used for binding [dynamic components](/guide/essentials/component-basics#dynamic-components).
91
91
92
92
-**Expects:**`string | Component`
93
93
94
94
-**Usage on native elements** <supclass="vt-badge">3.1+</sup>
95
95
96
96
When the `is` attribute is used on a native HTML element, it will be interpreted as a [Customized built-in element](https://html.spec.whatwg.org/multipage/custom-elements.html#custom-elements-customized-builtin-example), which is a native web platform feature.
97
97
98
-
There is, however, a use case where you may need Vue to replace a native element with a Vue component, as explained in [DOM Template Parsing Caveats](/guide/essentials/component-basics.html#dom-template-parsing-caveats). You can prefix the value of the `is` attribute with `vue:` so that Vue will render the element as a Vue component instead:
98
+
There is, however, a use case where you may need Vue to replace a native element with a Vue component, as explained in [DOM Template Parsing Caveats](/guide/essentials/component-basics#dom-template-parsing-caveats). You can prefix the value of the `is` attribute with `vue:` so that Vue will render the element as a Vue component instead:
99
99
100
100
```vue-html
101
101
<table>
@@ -105,5 +105,5 @@ Used for binding [dynamic components](/guide/essentials/component-basics.html#dy
105
105
106
106
-**See also:**
107
107
108
-
-[Built-in Special Element - `<component>`](/api/built-in-special-elements.html#component)
0 commit comments