会员
周边
捐助
新闻
博问
闪存
赞助商
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
学者先要会疑
博客园
首页
新随笔
联系
管理
2018年2月9日
使用vue的v-model自定义 checkbox组件
摘要: 1 2 3 4 5 Vue.component('my-checkbox', { 6 template:'#c', 7 model: { 8 prop: 'checked', 9 event: 'change' //要触发的事件 10 }, 11 props: { 12 checked:Bool...
阅读全文
posted @ 2018-02-09 20:52 c3tc3tc3t
阅读(3344)
评论(0)
推荐(0)
编辑