element/packages/popover/index.js

15 lines
361 B
JavaScript
Raw Normal View History

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