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

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

Open
1 of 3 tasks
liuweiGL opened this issue Sep 25, 2024 · 0 comments
Open
1 of 3 tasks

Comments

@liuweiGL
Copy link

liuweiGL commented Sep 25, 2024

组件

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>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant