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

slot插槽内的自定义组件数据无法渲染 #284

Closed
donglinkai opened this issue Apr 14, 2018 · 10 comments
Closed

slot插槽内的自定义组件数据无法渲染 #284

donglinkai opened this issue Apr 14, 2018 · 10 comments
Labels
wontfix This will not be worked on

Comments

@donglinkai
Copy link

donglinkai commented Apr 14, 2018

[问题简单描述]

// 父组件

<template lang='pug'>
  .main
    action-sheet
      x-cart(
        :title = 'title'
      )
</template>

// 子组件 x-cart

<template lang='pug'>
  .cart
    .header
      .right
        .title {{title}}
</template>

<script>
export default {
  name: 'product-cart',
  data () {
    return {
    }
  },
  props: {
    title: {
      type: String,
      default: ''
    }
  },
  async mounted () {
    console.log(this.title) // 可以输出title “张三”
  }
}
版本信息
{
    "mpvue": "^1.0.8",
    "mpvue-loader": "^1.0.11",
    "mpvue-template-compiler": "^1.0.8"
}

屏幕截图和动态 GIF 图
imgggg
![复现步骤的屏幕截图和动态 GIF 图](图片的 url)

@donglinkai
Copy link
Author

demo代码我调整过跟截图有部分小差异

@chenjinxinlove
Copy link

我也遇到那个问题了

@a573367014
Copy link

me to ...

@fishedman
Copy link

感觉slot支持的不是很好,还有有的时候插槽会缓存住,修改,页面刷新没有将新的内容刷出来。

@lavyun
Copy link

lavyun commented Apr 20, 2018

up up up

@monsuns
Copy link

monsuns commented Apr 21, 2018

同在slot使用中遇到一些莫名其妙的问题,头疼

@LeftShoot
Copy link

发现slot内的自定义组件,里面绑定点击事件会失效。

@mdsb100
Copy link

mdsb100 commented May 7, 2018

#365

@Stupidism
Copy link
Contributor

这个应该是props 和 data 的问题 #427

aOrz added a commit that referenced this issue May 19, 2018
@mpvue-bot mpvue-bot bot added the wontfix This will not be worked on label Oct 23, 2018
@mpvue-bot
Copy link

mpvue-bot bot commented Oct 23, 2018

issue超过30天无更新或响应,7天后将自动关闭,如果问题状态有更新请及时更新issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

9 participants