huibing.xie | 1f1606f | 2018-08-20 15:46:55 +0800 | [diff] [blame^] | 1 | import drag from './drag' |
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 |