x-ui-design 0.4.31 → 0.4.32
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.
|
@@ -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, ...props }: FormItemProps): React.JSX.Element;
|
|
5
|
+
({ prefixCls, name, label, rules, children, className, layout, style, dependencies, initialValue, feedbackIcons, extra, ...props }: FormItemProps): React.JSX.Element;
|
|
6
6
|
displayName: string;
|
|
7
7
|
};
|
|
8
8
|
export default FormItem;
|
package/dist/index.esm.js
CHANGED
|
@@ -936,6 +936,7 @@ const FormItem$1 = ({
|
|
|
936
936
|
dependencies = [],
|
|
937
937
|
initialValue,
|
|
938
938
|
feedbackIcons,
|
|
939
|
+
extra,
|
|
939
940
|
...props
|
|
940
941
|
}) => {
|
|
941
942
|
const formContext = useContext(FormContext);
|
|
@@ -1024,9 +1025,9 @@ const FormItem$1 = ({
|
|
|
1024
1025
|
// @ts-expect-error
|
|
1025
1026
|
,
|
|
1026
1027
|
size: childProps.size || props.size
|
|
1027
|
-
})),
|
|
1028
|
+
})), extra ? /*#__PURE__*/React.createElement("div", {
|
|
1028
1029
|
className: `${prefixCls}-extra`
|
|
1029
|
-
},
|
|
1030
|
+
}, extra) : null);
|
|
1030
1031
|
}
|
|
1031
1032
|
return child;
|
|
1032
1033
|
}), !props.noStyle && errorMessage && /*#__PURE__*/React.createElement("span", {
|