SSR support

This commit is contained in:
Aresn 2018-03-15 10:43:25 +08:00 committed by GitHub
parent 3684e716eb
commit 11d3867623
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -5,8 +5,7 @@
import Vue from 'vue';
const isServer = Vue.prototype.$isServer;
import { getStyle } from '../../utils/assist';
// const Popper = isServer ? function() {} : require('popper.js'); // eslint-disable-line
import Popper from 'popper.js';
const Popper = isServer ? function() {} : require('popper.js/dist/umd/popper.js'); // eslint-disable-line
export default {
name: 'Drop',