Skip to content

vue slot 里面插入slot上面的默认内容显示不出来,而且我在我的项目里还会出现undefined #12153

@wuli-collov

Description

@wuli-collov

Version

2.6.14

Reproduction link

https://codesandbox.io/s/amazing-easley-n35zm?file=/src/components/HelloWorld.vue

Steps to reproduce

组件里面写两个slot

插槽默认内容

hello

父页面调用组件

123

就显示不出来插槽默认内容

What is expected?

不要出现这个bug

What is actually happening?

出现了slot bug

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions