Skip to content

Commit

Permalink
Merge pull request #195 from jimengio/cp-194
Browse files Browse the repository at this point in the history
Cp 194
  • Loading branch information
rebirthO authored May 11, 2022
2 parents 9683f3d + a79c889 commit f216090
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@jimengio/meson-form",
"version": "0.5.2-legacy4",
"version": "0.5.2-legacy5",
"description": "",
"main": "./lib/index.js",
"types": "./lib/index.d.ts",
Expand Down
1 change: 1 addition & 0 deletions src/model/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ export interface IMesonFieldBaseProps<T> {
shouldHide?: (form: T) => boolean;
disabled?: boolean;
className?: string;
labelClassName?: string;
style?: React.CSSProperties;
hideLabel?: boolean;
fullWidth?: boolean;
Expand Down
4 changes: 2 additions & 2 deletions src/renderer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -443,9 +443,9 @@ export function renderItemLayout<T>(
width?: ReactText
) {
let labelNode = hideLabel ? null : item.label == null ? (
<div className={cx(styleLabel, labelClassName)} />
<div className={cx(styleLabel, labelClassName, item.labelClassName)} />
) : (
<div className={cx(styleLabel, labelClassName)}>
<div className={cx(styleLabel, labelClassName, item.labelClassName)}>
{item.required ? <RequiredMark /> : null}
{item.label}:
</div>
Expand Down

0 comments on commit f216090

Please sign in to comment.