提交 6d2be09e 编写于 作者: DCloud-WZF's avatar DCloud-WZF 💬

refactor(ref): add annotation

上级 52c485c7
......@@ -8,12 +8,14 @@
</template>
<script setup lang='uts'>
// 基础数据类型可自动推导类型
const count1 = ref(0)
const count2 = ref(count1)
type Counter = {
count : number
}
// TODO: Android 待编译器支持通过泛型指定类型
const counter = ref({
count: 0
} as Counter)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册
新手
引导
客服 返回
顶部