x-ui-design 0.5.23 → 0.5.24
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/esm/types/components/Form/Item/Item.d.ts +1 -1
- package/dist/esm/types/types/form.d.ts +1 -0
- package/dist/index.esm.js +2 -1
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +2 -1
- package/dist/index.js.map +1 -1
- package/lib/components/Form/Item/Item.tsx +2 -1
- package/lib/types/form.ts +1 -0
- package/package.json +1 -1
- package/src/app/page.tsx +5 -5
|
@@ -2,7 +2,7 @@ import React from 'react';
|
|
|
2
2
|
import { FormItemProps } from '../../../types/form';
|
|
3
3
|
import './style.css';
|
|
4
4
|
declare const FormItem: {
|
|
5
|
-
({ prefixCls, name, label, rules, children, className, layout, style, dependencies, initialValue, feedbackIcons, extra, removeErrorMessageHeight, ...props }: FormItemProps): React.JSX.Element;
|
|
5
|
+
({ prefixCls, name, label, rules, children, className, layout, style, dependencies, initialValue, feedbackIcons, extra, hideLabel, removeErrorMessageHeight, ...props }: FormItemProps): React.JSX.Element;
|
|
6
6
|
displayName: string;
|
|
7
7
|
};
|
|
8
8
|
export default FormItem;
|
|
@@ -67,6 +67,7 @@ export type FormItemProps = DefaultProps & {
|
|
|
67
67
|
normalize?: (value: RuleType, prevValue: RuleType, allValues: RuleType) => RuleType;
|
|
68
68
|
feedbackIcons?: boolean;
|
|
69
69
|
extra?: ReactNode;
|
|
70
|
+
hideLabel?: boolean;
|
|
70
71
|
removeErrorMessageHeight?: boolean;
|
|
71
72
|
};
|
|
72
73
|
export interface FormItemChildComponentProps {
|
package/dist/index.esm.js
CHANGED
|
@@ -979,6 +979,7 @@ const FormItem$1 = ({
|
|
|
979
979
|
initialValue,
|
|
980
980
|
feedbackIcons,
|
|
981
981
|
extra,
|
|
982
|
+
hideLabel = false,
|
|
982
983
|
removeErrorMessageHeight = false,
|
|
983
984
|
...props
|
|
984
985
|
}) => {
|
|
@@ -1038,7 +1039,7 @@ const FormItem$1 = ({
|
|
|
1038
1039
|
[className]: className,
|
|
1039
1040
|
noStyle: props.noStyle
|
|
1040
1041
|
}])
|
|
1041
|
-
}, !props.noStyle && (label || name) && /*#__PURE__*/React.createElement("label", {
|
|
1042
|
+
}, !props.noStyle && (label || name) && !hideLabel && /*#__PURE__*/React.createElement("label", {
|
|
1042
1043
|
className: `${prefixCls}-label`,
|
|
1043
1044
|
htmlFor: name
|
|
1044
1045
|
}, label || name, isRequired && /*#__PURE__*/React.createElement("span", {
|