Skip to content

Commit f8bb241

Browse files
committed
docs: a few improvements
improved multi-root component custom directive warning's clarity changed confusing † to *
1 parent 42f3656 commit f8bb241

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

src/guide/migration/attribute-coercion.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -60,16 +60,16 @@ The following table describes the new behavior:
6060

6161
| Binding expression | `foo` <sup>normal</sup> | `draggable` <sup>enumerated</sup> |
6262
| ------------------- | -------------------------- | --------------------------------- |
63-
| `:attr="null"` | / | / <sup></sup> |
63+
| `:attr="null"` | / | / <sup>*</sup> |
6464
| `:attr="undefined"` | / | / |
6565
| `:attr="true"` | `foo="true"` | `draggable="true"` |
66-
| `:attr="false"` | `foo="false"` <sup></sup> | `draggable="false"` |
67-
| `:attr="0"` | `foo="0"` | `draggable="0"` <sup></sup> |
68-
| `attr=""` | `foo=""` | `draggable=""` <sup></sup> |
69-
| `attr="foo"` | `foo="foo"` | `draggable="foo"` <sup></sup> |
70-
| `attr` | `foo=""` | `draggable=""` <sup></sup> |
66+
| `:attr="false"` | `foo="false"` <sup>*</sup> | `draggable="false"` |
67+
| `:attr="0"` | `foo="0"` | `draggable="0"` <sup>*</sup> |
68+
| `attr=""` | `foo=""` | `draggable=""` <sup>*</sup> |
69+
| `attr="foo"` | `foo="foo"` | `draggable="foo"` <sup>*</sup> |
70+
| `attr` | `foo=""` | `draggable=""` <sup>*</sup> |
7171

72-
<small>: changed</small>
72+
<small>*: changed</small>
7373

7474
Coercion for boolean attributes is left untouched.
7575

src/guide/migration/custom-directives.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,5 +100,5 @@ mounted(el, binding, vnode) {
100100
```
101101

102102
:::warning
103-
With [fragments](/guide/migration/fragments.html#overview) support, components can potentially have more than one root node. When applied to a multi-root component, a directive will be ignored and a warning will be logged.
103+
With [fragments](/guide/migration/fragments.html#overview) support, components can potentially have more than one root node. When applied to a multi-root component, a custom directive will be ignored and a warning will be logged.
104104
:::

0 commit comments

Comments
 (0)