diff --git a/components/common/openAnimation.js b/components/common/openAnimation.js index ab3b4fe0f0..dc6c529a5d 100644 --- a/components/common/openAnimation.js +++ b/components/common/openAnimation.js @@ -1,4 +1,7 @@ -import velocity from 'velocity-animate'; +let velocity; +if (typeof document !== 'undefined' && typeof window !== 'undefined') { + velocity = require('velocity-animate'); +} function animate(node, show, transitionName, done) { let ok; @@ -37,4 +40,4 @@ const animation = { }, }; -export default animation; +module.exports = animation; diff --git a/style/components/popover.less b/style/components/popover.less index 633d8624d2..f990e90d21 100644 --- a/style/components/popover.less +++ b/style/components/popover.less @@ -125,7 +125,7 @@ &-message { padding: 8px 0 16px; font-size: 12px; - color: text-color; + color: @text-color; .anticon { margin-right: 8px; color: @error-color;