Commit a237e5bd7efc938edc0a57ec33a8f779e68e44a4
Merge branch '2.0' of https://github.com/huanghong1125/iview into 2.0
Showing
2 changed files
with
2 additions
and
4 deletions
Show diff stats
src/components/base/popper.js
| ... | ... | @@ -3,8 +3,7 @@ |
| 3 | 3 | * */ |
| 4 | 4 | import Vue from 'vue'; |
| 5 | 5 | const isServer = Vue.prototype.$isServer; |
| 6 | -// const Popper = isServer ? function() {} : require('popper.js'); // eslint-disable-line | |
| 7 | -import Popper from 'popper.js'; | |
| 6 | +const Popper = isServer ? function() {} : require('popper.js/dist/umd/popper.js'); // eslint-disable-line | |
| 8 | 7 | |
| 9 | 8 | export default { |
| 10 | 9 | props: { | ... | ... |
src/components/select/dropdown.vue
| ... | ... | @@ -5,8 +5,7 @@ |
| 5 | 5 | import Vue from 'vue'; |
| 6 | 6 | const isServer = Vue.prototype.$isServer; |
| 7 | 7 | import { getStyle } from '../../utils/assist'; |
| 8 | - // const Popper = isServer ? function() {} : require('popper.js'); // eslint-disable-line | |
| 9 | - import Popper from 'popper.js'; | |
| 8 | + const Popper = isServer ? function() {} : require('popper.js/dist/umd/popper.js'); // eslint-disable-line | |
| 10 | 9 | |
| 11 | 10 | export default { |
| 12 | 11 | name: 'Drop', | ... | ... |