import postStyle from './postStyle/index'
import drag from './drag'
import roll from './roll'

const install = function (Vue) {
    Vue.directive('postStyle', postStyle);
    Vue.directive('drag', drag)
    Vue.directive('vsroll', roll)
}

if (window.Vue) {
    window['postStyle'] = postStyle
    window['drag'] = drag;
    Vue.use(install); // eslint-disable-line
}

export default install