Blame view

src/directive/clipboard/index.js 260 Bytes
d7d9c38c2   Adam   auto commit the c...
1
2
3
4
5
6
7
8
9
10
11
12
13
  import Clipboard from './clipboard'
  
  const install = function(Vue) {
    Vue.directive('Clipboard', Clipboard)
  }
  
  if (window.Vue) {
    window.clipboard = Clipboard
    Vue.use(install); // eslint-disable-line
  }
  
  Clipboard.install = install
  export default Clipboard