Skip to content

Commit

Permalink
fix: 修改FormItem组件包裹label组件为View,解决label为非text的React.ReactNodeshif时无法正…
Browse files Browse the repository at this point in the history
…常展示 (#477)
  • Loading branch information
751848178 authored Mar 20, 2023
1 parent 26e954c commit e40a1b8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions packages/vantui-cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@
"antmjs"
],
"scripts": {
"watch": "rm -rf build && npx tsc -p tsconfig.cjs.json --watch --sourceMap",
"build": "rm -rf build && npx tsc -p tsconfig.cjs.json",
"watch": "rimraf build && npx tsc -p tsconfig.cjs.json --watch --sourceMap",
"build": "rimraf build && npx tsc -p tsconfig.cjs.json",
"test:watch": "",
"test": ""
},
Expand Down
2 changes: 1 addition & 1 deletion packages/vantui/src/form-item/label.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export default function Label(props: Iprops) {
</>
) : null}
</View>
<Text>{label}</Text>
<View>{label}</View>
</View>
)
}

0 comments on commit e40a1b8

Please sign in to comment.