Skip to content

Commit c6f7631

Browse files
committed
docs: add stability
1 parent b476e5b commit c6f7631

12 files changed

+35
-8
lines changed

docs/features/better-define.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# betterDefine
22

3+
<small>Stability: <code class="!text-green-600">stable</code></small>
4+
35
With enabling `betterDefine`, imported types is supported in `<script setup>` type-based-macros.
46

57
[Related issue](https://github.com/vuejs/core/issues/4294)

docs/features/hoist-static.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# hoistStatic
22

3+
<small>Stability: <code class="!text-green-600">stable</code></small>
4+
35
With enabling `hoistStatic`, constants declared in macros of `<script setup>` can be referenced.
46

57
If you support this feature, feel free to hit like :+1: or comment on the [Vue PR](https://github.com/vuejs/core/pull/5752). Thanks!

docs/features/named-template.md

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
1-
# namedTemplate <WarnBadge>Experimental, use at your risk</WarnBadge>
1+
# namedTemplate
22

3-
::: warning
4-
5-
:construction: WIP
6-
7-
:::
3+
<small mr-2>
4+
Stability: <code class="!text-red-600">experimental</code>
5+
</small>
6+
<WarnBadge>Experimental, use at your risk</WarnBadge>
87

98
With enabling `namedTemplate`, `<template>` can be referenced like a variable.
109

docs/macros/define-model.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# defineModel
22

3+
<small>Stability: <code class="!text-green-600">stable</code></small>
4+
35
Declaring and mutate `v-model` props as the same as normal variable using the `defineModel`.
46

57
| Features | Supported |

docs/macros/define-options.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# defineOptions
22

3+
<small>Stability: <code class="!text-green-600">stable</code></small>
4+
35
Options API can be declared using the `defineOptions` in `<script setup>`, specifically to be able to set `name`, `props`, `emits`, and `render` inside of one function.
46

57
If you support this feature, feel free to hit like :+1: or comment on the [RFC Discussion](https://github.com/vuejs/rfcs/discussions/430). Thanks!

docs/macros/define-props.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# defineProps
22

3+
<small>Stability: <code class="!text-yellow-600">unstable</code></small>
4+
35
Correct types of destructured props using `$defineProps`.
46

57
See also [Vue issue](https://github.com/vuejs/core/issues/6876), [Reactivity Transform RFC](https://github.com/vuejs/rfcs/blob/reactivity-transform/active-rfcs/0000-reactivity-transform.md#defineprops-destructure-details).

docs/macros/define-render.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# defineRender
22

3+
<small>Stability: <code class="!text-green-600">stable</code></small>
4+
35
Defining render function in `<script setup>` using the `defineRender`.
46

57
| Features | Supported |

docs/macros/define-slots.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# defineSlots
22

3+
<small>Stability: <code class="!text-yellow-600">unstable</code></small>
4+
35
Declaring type of SFC slots in `<script setup>` using the `defineSlots`.
46

57
| Features | Supported |

docs/macros/setup-component.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
1-
# setupComponent <WarnBadge>Experimental, use at your risk</WarnBadge>
1+
# setupComponent
2+
3+
<small mr-2>
4+
Stability: <code class="!text-red-600">experimental</code>
5+
</small>
6+
<WarnBadge>Experimental, use at your risk</WarnBadge>
27

38
::: tip
49

docs/macros/setup-sfc.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
1-
# setupSFC <WarnBadge>Experimental, use at your risk</WarnBadge>
1+
# setupSFC
2+
3+
<small mr-2>
4+
Stability: <code class="!text-red-600">experimental</code>
5+
</small>
6+
<WarnBadge>Experimental, use at your risk</WarnBadge>
27

38
::: tip
49

0 commit comments

Comments
 (0)