Skip to content

在小程序端,v-ifv-slot:xxx 表现异常 #4847

@skiyee

Description

@skiyee
// content.vue
<template v-if="$slots.header">
  <div style="backgroundColor: red">
    <slot name="header">
    you can see this color
  </div>
</template>

// index.vue
<template v-if="false" #header>
  <view>
    Hello There
  </view>
</template>

H5端正确渲染,插槽正确消除
微信小程序端,插槽依旧可见

v-if 小于 v-slot 优先级

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingmpmini programuni api

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions