随笔分类 -  vue

摘要:不知道为啥,官方文档里竟然没写... 直接上代码 template里 <a-form-item field="repeatPassword" :rules="[{ validator: validateRepeatPassword, trigger: 'change' }]"> script里 fu 阅读全文
posted @ 2022-12-03 21:42 alpiny 阅读(1276) 评论(0) 推荐(0)
摘要:const name = 'c1' const currentComponent = shallowRef() const components = import.meta.glob("./a/*.vue"); currentComponent.value = defineAsyncComponen 阅读全文
posted @ 2022-10-18 05:30 alpiny 阅读(2232) 评论(0) 推荐(0)
摘要:vue3网上的教程都是setup()方式的,使用<script setup> 方式时略有不同。 父组件: <Son ref="sonRef" /> <script setup> import {ref} from 'vue' const sonRef = ref() console.log(sonR 阅读全文
posted @ 2021-11-02 19:47 alpiny 阅读(1733) 评论(0) 推荐(1)