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: docs/introduction/migration.md
+6-5Lines changed: 6 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,10 +2,11 @@
2
2
3
3
## Migration from `vue-jsx`
4
4
5
-
1. Don't support hyphenated prop name and hyphenated component name.
6
-
2.`v-model` don't support Array Expression, use `v-model:$name$_trim={foo}` instead.
7
-
3. Don't support `v-models` directive.
8
-
4. Destructing props:
5
+
1. Use `defineVaporComponent` instead of `defineComponent` to define Vapor components. The setup function of `defineVaporComponent` now returns a JSX expression directly—there is no need to return a function anymore.
6
+
2. Don't support hyphenated prop name and hyphenated component name.
7
+
3.`v-model` don't support Array Expression, use `v-model:$name$_trim={foo}` instead.
8
+
4. Don't support `v-models` directive.
9
+
5. Destructing props:
9
10
10
11
> [!CAUTION]
11
12
> ❌ The destructuring of props in a functional component will cause loss of reactivity.
@@ -36,7 +37,7 @@ export default () => {
36
37
}
37
38
```
38
39
39
-
2. ✅ Set the macros option to true, then use the `defineComponent` macro for wrapping.
40
+
2. ✅ Set the macros option to true, then use the `defineVaporComponent` macro for wrapping.
0 commit comments