fix: update util
parent
51b2d2f5ad
commit
24ef11afb9
|
@ -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);
|
||||
});
|
||||
},
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue