nutui-react icon indicating copy to clipboard operation
nutui-react copied to clipboard

Form.item中的label,使用ReactNode没有正确渲染出来

Open Niubility-SunLight opened this issue 6 months ago • 0 comments

NutUI React 包名

@nutui/nutui-react-taro

NutUI React 版本号

3.0.16

平台

weapp

重现链接

https://codesandbox.io/p/devbox/charming-wright-xl4w6q?file=%2Fsrc%2FApp.tsx%3A20%2C40

重现步骤

1.Form.item中的label,使用ReactNode没有正确渲染出来 2.手动设置Form.Item的required为false,在已有rules必选校验的情况下,取消不掉

期望的结果是什么?

1.Form.item中的label,使用ReactNode能够正确渲染出ReactNode节点 2..手动设置Form.Item的required为false可生效

实际的结果是什么?

1.Form.item中的label,使用ReactNode渲染出的节点有结构但是不显示 2..手动设置Form.Item的required为false 必选星号符还存在

环境信息

Taro CLI 4.1.1 environment info: System: OS: Windows 11 10.0.26100 Binaries: Node: 20.11.0 - C:\nvm4w\nodejs\node.EXE npm: 10.2.4 - C:\nvm4w\nodejs\npm.CMD npmPackages: @tarojs/cli: 4.1.1 => 4.1.1 @tarojs/components: 4.1.1 => 4.1.1 @tarojs/helper: 4.1.1 => 4.1.1 @tarojs/plugin-framework-react: 4.1.1 => 4.1.1 @tarojs/plugin-html: 4.1.1 => 4.1.1 @tarojs/plugin-platform-alipay: 4.1.1 => 4.1.1 @tarojs/plugin-platform-h5: 4.1.1 => 4.1.1 @tarojs/plugin-platform-jd: 4.1.1 => 4.1.1 @tarojs/plugin-platform-qq: 4.1.1 => 4.1.1 @tarojs/plugin-platform-swan: 4.1.1 => 4.1.1 @tarojs/plugin-platform-tt: 4.1.1 => 4.1.1 @tarojs/plugin-platform-weapp: 4.1.1 => 4.1.1 @tarojs/react: 4.1.1 => 4.1.1 @tarojs/runtime: 4.1.1 => 4.1.1 @tarojs/shared: 4.1.1 => 4.1.1 @tarojs/taro: 4.1.1 => 4.1.1 @tarojs/taro-loader: 4.1.1 => 4.1.1 @tarojs/webpack5-runner: 4.1.1 => 4.1.1 babel-preset-taro: 4.1.1 => 4.1.1 eslint-config-taro: 4.1.1 => 4.1.1 react: ^18.0.0 => 18.3.1

其他补充信息

No response

Niubility-SunLight avatar Jul 07 '25 09:07 Niubility-SunLight