element/packages/popover/index.js

15 lines
336 B
JavaScript
Raw Normal View History

import Popover from './src/main';
import directive from './src/directive';
import Vue from 'vue';
2016-10-20 14:35:12 +08:00
Vue.directive('popover', directive);
2016-07-27 14:15:02 +08:00
2016-10-19 22:48:35 +08:00
/* istanbul ignore next */
2016-07-27 14:15:02 +08:00
Popover.install = function(Vue) {
2016-10-20 14:35:12 +08:00
Vue.directive('popover', directive);
2016-07-27 14:15:02 +08:00
Vue.component(Popover.name, Popover);
};
2016-10-20 14:35:12 +08:00
Popover.directive = directive;
2016-07-27 14:15:02 +08:00
export default Popover;