|
| 1 | +# Vue3 Support |
| 2 | +> HBuilderX's support for vue3 is still compatible with vue2, this means our enhancement of vue2 can still be used in vue3. See [Vue support](/Tutorial/Language/vue.md) for vue2 support. |
| 3 | +
|
| 4 | +## Vue3.x API Hint and Help |
| 5 | + |
| 6 | +The prompt is not only to be complete, but also to be accurate. You can't guess all the words and list them out, there will be what there should be, clear and trustworthy. |
| 7 | + |
| 8 | +Write fast and write well. |
| 9 | + |
| 10 | +In addition to the perfect tips, you can also see a clear help description on the right side of the code assistant, explaining the api, and the api link of the vue official website. Click to go directly to the specified page of the vue official website. |
| 11 | + |
| 12 | +Very suitable for getting start. |
| 13 | + |
| 14 | +<img src="/static/snapshots/vue_next/1.jpg" style="zoom: 30%;border: 1px solid #eee;" /> |
| 15 | +## Composition API Support |
| 16 | +Accurate type derivation of composition functions such as `ref` and `reactive`, and support `go to definition` (Alt + click). |
| 17 | + |
| 18 | +<img src="/static/snapshots/vue_next/2.jpg" style="zoom: 30%;border: 1px solid #eee;" /> |
| 19 | + |
| 20 | +<img src="/static/snapshots/vue_next/3.jpg" style="zoom: 30%;border: 1px solid #eee;" /> |
| 21 | + |
| 22 | +## State-Driven Dynamic CSS Support |
| 23 | +Support the use of v-bind function hint in CSS, variable hint in parameters and `go to definition` (Alt + click). |
| 24 | + |
| 25 | +<img src="/static/snapshots/vue_next/4.jpg" style="zoom: 30%;border: 1px solid #eee;" /> |
| 26 | + |
| 27 | +<img src="/static/snapshots/vue_next/5.jpg" style="zoom: 30%;border: 1px solid #eee;" /> |
| 28 | + |
| 29 | +## Script Setup Support |
| 30 | +The setup syntax recommended by vue3 is also fully supported. |
| 31 | + |
| 32 | +<img src="/static/snapshots/vue_next/6.jpg" style="zoom: 30%;border: 1px solid #eee;" /> |
| 33 | + |
| 34 | +## Vars & Functions Hint in Template |
| 35 | +Variables defined in data, props and setup and functions defined in methods and setup can suggest and `go to definition`(alt + click) in template. |
| 36 | + |
| 37 | +<img src="/static/snapshots/vue_next/7.jpg" style="zoom: 30%;border: 1px solid #eee;" /> |
| 38 | + |
| 39 | +<img src="/static/snapshots/vue_next/8.jpg" style="zoom: 30%;border: 1px solid #eee;" /> |
0 commit comments