随笔分类 -  Vue

摘要:<a-select //可以在选择框中输入 show-search //模糊查询(默认根据下拉框的内容) option-filter-prop = 'children' //模糊查询(自定义) label是后面option觉得 //option-filter-prop = 'label' v-mod 阅读全文
posted @ 2022-05-06 10:57 无效_rank 阅读(942) 评论(0) 推荐(0) 编辑
摘要:输入框 <a-inout placeholder="请输入资源名称" v-model = "search" @input="judgeLength" @change = "judege" /> @input和@change都可 //判断长度 judeLength(){ let len = this. 阅读全文
posted @ 2022-05-06 10:57 无效_rank 阅读(418) 评论(0) 推荐(0) 编辑
摘要:方法一:通过ref直接调用子组件的方法 1 //在父组件中 2 <template> 3 <a @click = 'openConfigure'> 4 <a-icon type = 'setting'/> 5 配置 6 <add-or-update ref='addOrUpdate'> 7 </a> 阅读全文
posted @ 2022-03-08 15:53 无效_rank 阅读(295) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示