Skip to content

Input 组件的 slot 标签存在 children 导致微信小程序编译失败 #1284

Closed
@liuweiGL

Description

组件

Input

基础库版本

微信小程序 3.5.8

设备机型

手机系统

  • iOS
  • Android
  • HarmonyOS

APP

微信

组件库版本

2.36.6

预期行为

Input 组件不报错正常展示

复现步骤

  1. npm 安装 antd-mini
  2. 在页面中引用 Input 组件

原因

微信小程序的 slot 标签不允许存在 children

<slot name="prefix">{{prefix}}</slot>

<slot name="suffix">{{suffix}}</slot>

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