eddiemf / vue-affix

A Vue.js plugin that affixes an element on the window while scrolling based on a relative element
MIT License
405 stars 38 forks source link

How can i use with ssr #45

Open jane0219 opened 5 years ago

archieDeveloper commented 4 years ago
let Affix = {
  template: '<div><slot/></div>'
};
if (process.client) {
  Affix = require('vue-affix').Affix;
}
export default {
  components: {
    Affix,
  },
};