摘要: 如果想注册局部指令,组件中也接受一个 directives 的选项: directives: { drag: { // 指令的定义 bind: function (el, binding, vnode) { // el 代表绑定的dom对象,可以修改 // binding 是一个对象,不可修改 // 阅读全文
posted @ 2020-11-25 10:04 shetoutou 阅读(1825) 评论(0) 推荐(0) 编辑