Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Components didn't display in browser when i use nested tag <template> in .vue with version 1.0.17 #2435

Closed
sharkrice opened this issue Mar 9, 2016 · 1 comment

Comments

@sharkrice
Copy link

in Home.vue

<template>
  <div>
    <mui-content :options="options.content">
      <mui-slider v-if="options.slider.display" :options="options.slider"></mui-slider>
      <mui-category></mui-category>
      <mui-list></mui-list>
    </mui-content>
  </div>
</template>

in content.vue

<template>
  <div class="mui-content" :class="{ 'mui-scroll-wrapper': options.scroll, 'index': options.index }">
    <template v-if="options.scroll">
      <div class="mui-scroll">
        <slot></slot>
      </div>
    </template>
    <template v-else>
      <slot></slot>
    </template>
  </div>
</template>

当升级到vue1.0.17时,在.vue文件里用这种template嵌套template加slot标签时,网页不会显示这些放进slot的组件,也不会报错。
用旧版本就没有这个问题。

@thecrypticace
Copy link

Woah… I didn't know this was a bug. I was bit by this too (inadvertently… but still). Good to know it's fixed!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants