提交 | 用户 | age | ||
36b711 | 1 | import drag from './drag' |
L | 2 | |
3 | const install = function(Vue) { | |
4 | Vue.directive('el-drag-dialog', drag) | |
5 | } | |
6 | ||
7 | if (window.Vue) { | |
8 | window['el-drag-dialog'] = drag | |
9 | Vue.use(install); // eslint-disable-line | |
10 | } | |
11 | ||
12 | drag.install = install | |
13 | export default drag |