@hw-component/form 1.9.5 → 1.9.6
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.
|
@@ -102,11 +102,12 @@ var Index = function Index(props) {
|
|
|
102
102
|
if (hideItem) {
|
|
103
103
|
return null;
|
|
104
104
|
}
|
|
105
|
+
var colStyle = disHide ? {
|
|
106
|
+
display: "none"
|
|
107
|
+
} : {};
|
|
105
108
|
return jsx(Col, _objectSpread(_objectSpread({}, itemSpan), {}, {
|
|
106
109
|
className: "".concat(colClassName, " ").concat(itemClassName),
|
|
107
|
-
style:
|
|
108
|
-
display: disHide ? "none" : "block"
|
|
109
|
-
},
|
|
110
|
+
style: colStyle,
|
|
110
111
|
children: jsx(Form.Item, _objectSpread(_objectSpread({
|
|
111
112
|
className: className,
|
|
112
113
|
label: !hideLabel && jsx(Index$1, {
|
|
@@ -105,11 +105,12 @@ var Index = function Index(props) {
|
|
|
105
105
|
if (hideItem) {
|
|
106
106
|
return null;
|
|
107
107
|
}
|
|
108
|
+
var colStyle = disHide ? {
|
|
109
|
+
display: "none"
|
|
110
|
+
} : {};
|
|
108
111
|
return jsxRuntime.jsx(antd.Col, _objectSpread(_objectSpread({}, itemSpan), {}, {
|
|
109
112
|
className: "".concat(colClassName, " ").concat(itemClassName),
|
|
110
|
-
style:
|
|
111
|
-
display: disHide ? "none" : "block"
|
|
112
|
-
},
|
|
113
|
+
style: colStyle,
|
|
113
114
|
children: jsxRuntime.jsx(antd.Form.Item, _objectSpread(_objectSpread({
|
|
114
115
|
className: className,
|
|
115
116
|
label: !hideLabel && jsxRuntime.jsx(Label.default, {
|
package/package.json
CHANGED
|
@@ -79,12 +79,11 @@ const Index: React.FC<HFormItemProps> = (props) => {
|
|
|
79
79
|
if (hideItem) {
|
|
80
80
|
return null;
|
|
81
81
|
}
|
|
82
|
+
const colStyle=disHide?{display:"none"}:{};
|
|
82
83
|
return (
|
|
83
84
|
<Col {...itemSpan}
|
|
84
85
|
className={`${colClassName} ${itemClassName}`}
|
|
85
|
-
style={
|
|
86
|
-
display:disHide?"none":"block"
|
|
87
|
-
}}
|
|
86
|
+
style={colStyle}
|
|
88
87
|
>
|
|
89
88
|
<Form.Item
|
|
90
89
|
className={className}
|