mini-vue icon indicating copy to clipboard operation
mini-vue copied to clipboard

runtime-core 中 updateElement 无法处理 Text to Array 的情况

Open KairuiLiu opened this issue 1 year ago • 0 comments

测试用例

// @example/patchChildren/TextToArray.js
const prevChildren = 'oldChild';
const nextChildren = [h('div', {}, 'A'), h('div', {}, 'B')];

export default {
  name: 'TextToArray',
  setup() {
    const isChange = ref(false);
    window.isChange = isChange;

    return {
      isChange,
    };
  },
  render() {
    const self = this;

    return self.isChange === true
      ? h('div', {}, nextChildren)
      : h('div', {}, prevChildren);
  },
};

深度截图_选择区域_20221014225546

KairuiLiu avatar Oct 14 '22 14:10 KairuiLiu