From 832d13eb0cb6af36e9b31bbd7443fcf7ffca029a Mon Sep 17 00:00:00 2001 From: tangjinzhou <415800467@qq.com> Date: Sun, 11 Feb 2018 11:15:12 +0800 Subject: [PATCH] fix spin --- components/spin/Spin.vue | 46 +++++++++++++++------------------------- 1 file changed, 17 insertions(+), 29 deletions(-) diff --git a/components/spin/Spin.vue b/components/spin/Spin.vue index a911b710a..bd776bc46 100644 --- a/components/spin/Spin.vue +++ b/components/spin/Spin.vue @@ -2,7 +2,8 @@ import PropTypes from '../_util/vue-types' import BaseMixin from '../_util/BaseMixin' import isCssAnimationSupported from '../_util/isCssAnimationSupported' -import animate from '../_util/css-animation' +import { filterEmpty } from '../_util/vnode' +import getTransitionProps from '../_util/getTransitionProps' export default { name: 'Spin', @@ -25,8 +26,11 @@ export default { } }, methods: { - getHasDefaultSlots () { - return this.$slots && this.$slots.default + getChildren () { + if (this.$slots && this.$slots.default) { + return filterEmpty(this.$slots.default) + } + return null }, }, mounted () { @@ -96,8 +100,8 @@ export default { {tip ?