fix: update util

pull/2386/head
tanjinzhou 2020-06-09 18:29:34 +08:00
parent 51b2d2f5ad
commit 24ef11afb9
2 changed files with 3 additions and 3 deletions

View File

@ -1,6 +1,6 @@
import cssAnimation from './css-animation';
import raf from 'raf';
import Vue from 'vue';
import { nextTick } from 'vue';
function animate(node, show, done) {
let height;
@ -55,7 +55,7 @@ function animate(node, show, done) {
const animation = {
enter(node, done) {
Vue.nextTick(() => {
nextTick(() => {
animate(node, true, done);
});
},

View File

@ -269,7 +269,7 @@ export function getComponentName(opts) {
}
export function isEmptyElement(c) {
return typeof c.type === 'symbol' && c.children.trim() === '';
return typeof c.type.toString() === 'Symbol(Text)' && c.children.trim() === '';
}
export function isStringElement(c) {