Thanks to visit codestin.com
Credit goes to github.com

Skip to content

slot v-if overwrite #11294

@ShanZiJun

Description

@ShanZiJun

Vue version

3.1.0

Link to minimal reproduction

https://stackblitz.com/edit/vue-3-composition-api-demo-vaedev?file=src%2FApp.vue,package.json

Steps to reproduce

涉及到slot的时候
外面的slot内容延迟渲染,就会导致无法覆盖slot内部的默认内容
v-if="showOutBtn"

What is expected?

外面的slot内容覆盖slot的默认内容

What is actually happening?

image

System Info

No response

Any additional comments?

No response

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