问题描述
限时送ChatGPT账号..我有兴趣在 Vue.js v3 发布之前深入了解它.某处是否有(WIP)API 文档?喜欢这个:
I'm interested in having a deeper look into Vue.js v3 even before it's released. Is there an (WIP) API documentation somewhere? Like this one:
https://vuejs/v2/api/
我只能找到一些文章和半官方出版物.尝试了这个 repository,但没有名为 dev 之类的分支.
All I could find were some articles and semi-official publications. Tried this repository, but there's no branch named dev or such.
我知道它仍在进行中,但仍然没有内部保存的文档吗?
i know it's still work in progress, but still, is there no in-house kept doc?
推荐答案
自 2020 年 7 月起您可以通过此链接找到 Vue 3 的官方文档 v3.vuejs
你可以查看composition api官方文档,这个文章 来自 vuedose.tips,这个播放列表来自Vue 精通 YouTube 频道或此 YouTube 视频.
You could check the composition api official doc, this article from vuedose.tips, this playlist from Vue mastery youtube channel or this youtube video.
还有一个基本示例,展示了该 api 的外观:
And a basic example that shows how that api looks :
<template>
<button @click="increment">
Count is: {{ state.count }}, double is: {{ state.double }}
</button>
</template>
<script>
import { reactive, computed } from 'vue'
export default {
setup() {
const state = reactive({
count: 0,
double: computed(() => state.count * 2)
})
function increment() {
state.count++
}
return {
state,
increment
}
}
}
</script>
这篇关于Vuejs 3 API 文档的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
更多推荐
[db:关键词]
发布评论