ant-design-vue/components/_util/antRefDirective.js
2018-05-25 11:27:54 +08:00

16 lines
342 B
JavaScript

export default {
install: (Vue, options) => {
Vue.directive('ant-ref', {
bind: function (el, binding, vnode) {
binding.value(vnode)
},
update: function (el, binding, vnode) {
binding.value(vnode)
},
unbind: function (el, binding, vnode) {
binding.value(null)
},
})
},
}