Closed tanukihee closed 1 year ago
react-vant
react-vant-icons
3.3.1
https://codesandbox.io/s/cell-field-number-0-test-2sc4vk?file=/src/App.tsx
Cell 组件与 Field 组件的 children 不显示数字 0
Cell
Field
children
0
import { Cell, Field } from "react-vant"; export default function App() { return ( <div className="App"> <Cell title="title" value={0} /> <Cell title="title">{0}</Cell> <Cell title="title" children={"0"} /> <Field label="field">{0}</Field> <Field label="field">{"0"}</Field> </div> ); }
效果图
Which React Vant packages are impacted?
react-vant
(React Vant core)react-vant-icons
(React Vant Icon)What version of React Vant are you using?
3.3.1
Reproduce live demo(codesandebox or stackblitz)?
https://codesandbox.io/s/cell-field-number-0-test-2sc4vk?file=/src/App.tsx
Descripition
Cell
组件与Field
组件的children
不显示数字0
效果图![image](https://github.com/3lang3/react-vant/assets/34062491/0ede2d21-8b8b-42e9-8f91-1a87ca4bbb8e)