megalo icon indicating copy to clipboard operation
megalo copied to clipboard

多层自定义组件嵌套编译成支付宝小程序页面报错

Open qubitsky opened this issue 6 years ago • 6 comments

基于megalo-demo项目增加一个页面用于slot测试

slot页按照官网代码编写 1547179311522

各组件模板内容如下

// slot/index.vue
<template>
  <Container>
    <Card>
      <div slot="head">{{ title }}</div>
      <div>I'm body</div>
      <div slot="foot">I'm footer</div>
    </Card>
  </Container>
</template>

// container.vue
<template>
  <div style="backgroud: gray">
      <slot />
  </div>
</template>

// card.vue
<template>
  <div>
      <slot name="head"></slot>
      <slot></slot>
      <slot name="foot"></slot>
  </div>
</template>

跳转到slot测试页后发现如下图报错 1547179417565

qubitsky avatar Jan 11 '19 04:01 qubitsky

看问题应该和百度小程序的原因一样,存在循环引用的模版。 #108

elcarim5efil avatar Jan 14 '19 02:01 elcarim5efil

看问题应该和百度小程序的原因一样,存在循环引用的模版。 #108

希望能尽早解决下_(:з」∠)_

qubitsky avatar Jan 14 '19 06:01 qubitsky

遇到同样的问题,更新到最新版发现还是没有解决,还存在这个问题,请问什么时候可以解决一下?

okxiaoliang4 avatar Mar 07 '19 07:03 okxiaoliang4

看版本0.9.0-3有更新。但升级0.9.0-3依然存在该问题

e8wow avatar Mar 11 '19 09:03 e8wow

正在想方法修复,问题有一些难度。

elcarim5efil avatar Mar 12 '19 05:03 elcarim5efil

你好想问下,这个问题处理的怎么样了 @elcarim5efil

e8wow avatar Jul 25 '19 07:07 e8wow