Vnode

function isVNode(node) {
  return node !== null && typeof node === 'object' && hasOwn(node, 'componentOptions');
};
if (isVNode(instance.message)) {
    instance.$slots.default = [instance.message];
    instance.message = null;
  }

 

posted @ 2020-07-10 09:14  雲天望垂墨傾池  阅读(147)  评论(0编辑  收藏  举报