摘要:
# 自定义ref 可以在响应式的逻辑过程中添加逻辑 import { customRef } from '@vue/reactivity' export default { name: 'Demo', setup(){ function myRef(value){ return customRef( 阅读全文
posted @ 2021-12-09 16:59
竹石2020
阅读(390)
评论(0)
推荐(0)
摘要:
vue3中的其他组合api 阅读全文
posted @ 2021-12-09 14:48
竹石2020
阅读(22)
评论(0)
推荐(0)
摘要:
# toRef可以将对象的属性变为响应式的  <script> import { reactive,toRefs } 阅读全文
posted @ 2021-12-09 13:01
竹石2020
阅读(466)
评论(0)
推荐(0)
摘要:
## vue3中的hook的使用 import { reactive,onMounted,onBeforeUnmount } from "vue"; export default function(){ let point = reactive({ x:0, y:0 }) function MyPo 阅读全文
posted @ 2021-12-09 12:59
竹石2020
阅读(511)
评论(0)
推荐(0)
浙公网安备 33010602011771号